File tree 8 files changed +36
-19
lines changed
unstable/oraclelinux/docker 8 files changed +36
-19
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ ENV \
26
26
27
27
# Installation
28
28
RUN \
29
- # download PowerShell rpm package
30
- curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
31
29
# update package list
32
- && yum update -y \
30
+ yum update -y \
33
31
# install dependencies
34
32
&& yum install -y \
35
33
# required for help in PowerShell
36
34
less \
35
+ # required for SSH
36
+ openssh-clients \
37
37
# install EPEL repository
38
38
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
39
39
# update package list from EPEL repository
42
42
&& yum install -y \
43
43
# install gssntlmssp package
44
44
gssntlmssp \
45
+ # download the powershell package
46
+ && curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
45
47
# install powershell package
46
48
&& yum install -y /tmp/powershell-linux.rpm \
47
49
# remove powershell package
Original file line number Diff line number Diff line change 42
42
FROM archlinux:latest
43
43
44
44
# Copy only the files we need from the previous stage
45
- COPY --from=installer-env ["/tmp/gss-ntlmssp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz " , "/tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz " ]
45
+ COPY --from=installer-env ["/tmp/gss-ntlmssp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.zst " , "/tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.zst " ]
46
46
47
47
# Define Args for the needed to add the package
48
48
ARG PS_VERSION=7.0.1
@@ -80,11 +80,13 @@ RUN \
80
80
core/icu \
81
81
# required for SSL
82
82
openssl-1.0 \
83
+ # required for SSH
84
+ openssh \
83
85
# install gss-ntlmssp package from the previous stage
84
- && pacman -U --noconfirm /tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz \
86
+ && pacman -U --noconfirm /tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.zst \
85
87
# create powershell folder
86
88
&& mkdir -p ${PS_INSTALL_FOLDER} \
87
- # Pull down the powershell linux tar file
89
+ # download the powershell linux compressed package
88
90
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.tar.gz \
89
91
# uncompress powershell linux tar file
90
92
&& tar zxf /tmp/powershell-linux.tar.gz -C ${PS_INSTALL_FOLDER} -v \
Original file line number Diff line number Diff line change 43
43
FROM archlinux:latest
44
44
45
45
# Copy only the files we need from the previous stage
46
- COPY --from=installer-env ["/tmp/gss-ntlmssp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz " , "/tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz " ]
46
+ COPY --from=installer-env ["/tmp/gss-ntlmssp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.zst " , "/tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.zst " ]
47
47
48
48
# Define Args for the needed for BlackArch Linux
49
49
ARG BlackArch_Strap_URL=https://blackarch.org/strap.sh
@@ -95,11 +95,13 @@ RUN \
95
95
core/icu \
96
96
# required for SSL
97
97
openssl-1.0 \
98
+ # required for SSH
99
+ openssh \
98
100
# install gss-ntlmssp package from the previous stage
99
- && pacman -U --noconfirm /tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz \
101
+ && pacman -U --noconfirm /tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.zst \
100
102
# create powershell folder
101
103
&& mkdir -p ${PS_INSTALL_FOLDER} \
102
- # Pull down the powershell linux tar file
104
+ # download the powershell linux compressed package
103
105
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.tar.gz \
104
106
# uncompress powershell linux tar file
105
107
&& tar zxf /tmp/powershell-linux.tar.gz -C ${PS_INSTALL_FOLDER} \
Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
32
32
RUN \
33
33
# install dependencies
34
34
swupd bundle-add \
35
+ # required for help in PowerShell
35
36
less \
37
+ # required for SSH
38
+ openssh-client \
36
39
# create powershell folder
37
40
&& mkdir -p ${PS_INSTALL_FOLDER} \
38
41
# uncompress powershell linux tar file
Original file line number Diff line number Diff line change 35
35
# install dependencies
36
36
&& apt-get install --no-install-recommends -y \
37
37
# required for HttpClientHandler
38
- libcurl4 \
38
+ curl \
39
39
# required for SSL
40
40
ca-certificates \
41
41
# required for help in powershell
@@ -44,14 +44,16 @@ RUN \
44
44
locales \
45
45
# required to support NTLM for PSRemoting
46
46
gss-ntlmssp \
47
- wget \
47
+ # required for International Components for Unicode
48
48
libicu63 \
49
+ # required for SSH
50
+ openssh-client \
49
51
# enable en_US.UTF-8 locale
50
52
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
51
53
# generate locale
52
54
&& locale-gen && update-locale \
53
55
# download the powershell package
54
- && wget -O /tmp/powershell.deb --no-check-certificate ${PS_PACKAGE_URL} \
56
+ && curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.deb \
55
57
# install powershell package
56
58
&& apt-get install --no-install-recommends -y /tmp/powershell.deb \
57
59
# remove powershell package
Original file line number Diff line number Diff line change @@ -38,23 +38,25 @@ RUN \
38
38
# install dependencies
39
39
&& apt install --no-install-recommends -y \
40
40
# required for HttpClientHandler
41
- libcurl4 \
41
+ curl \
42
42
# required for help in powershell
43
43
less \
44
44
# required to setup the locale
45
45
locales \
46
46
# required to support NTLM for PSRemoting
47
47
gss-ntlmssp \
48
- wget \
48
+ # required for International Components for Unicode
49
49
libicu63 \
50
+ # required for SSH
51
+ openssh-client \
50
52
# enable en_US.UTF-8 locale
51
53
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
52
54
# generate locale
53
55
&& locale-gen && update-locale \
54
56
# upgrade distro
55
57
&& parrot-upgrade \
56
- # Download the Debian9 PowerShell Core package and save it
57
- && wget -O /tmp/powershell.deb --no-check-certificate ${PS_PACKAGE_URL} \
58
+ # download the powershell package
59
+ && curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.deb \
58
60
# install powershell package
59
61
&& apt install --no-install-recommends -y /tmp/powershell.deb \
60
62
# remove powershell package
Original file line number Diff line number Diff line change 72
72
less \
73
73
# required for xterm library
74
74
ncurses-terminfo-6.1-2.ph3.x86_64 \
75
+ # required for SSH
76
+ openssh-clients \
75
77
# generate locale
76
78
&& locale-gen.sh \
77
79
# create the pwsh symbolic link that points to powershell
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ ENV \
26
26
27
27
# Installation
28
28
RUN \
29
- # download PowerShell rpm package
30
- curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
31
29
# update package list
32
- && yum update \
30
+ yum update -y \
33
31
# install dependencies
34
32
&& yum install -y \
35
33
# required for help in powershell
36
34
less \
35
+ # required for SSH
36
+ openssh-clients \
37
37
# install EPEL repository
38
38
oracle-epel-release-el7 \
39
39
# update package list from EPEL repository
42
42
&& yum install -y \
43
43
# install gssntlmssp package
44
44
gssntlmssp \
45
+ # download the powershell package
46
+ && curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
45
47
# install powershell package
46
48
&& yum install -y /tmp/powershell-linux.rpm \
47
49
# remove powershell package
You can’t perform that action at this time.
0 commit comments