Skip to content

Commit 7ceb5f5

Browse files
authored
Add OpenSSH client package to linux community-stable images (#465)
1 parent d78d60f commit 7ceb5f5

File tree

8 files changed

+36
-19
lines changed

8 files changed

+36
-19
lines changed

release/community-stable/amazonlinux/docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ ENV \
2626

2727
# Installation
2828
RUN \
29-
# download PowerShell rpm package
30-
curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
3129
# update package list
32-
&& yum update -y \
30+
yum update -y \
3331
# install dependencies
3432
&& yum install -y \
3533
# required for help in PowerShell
3634
less \
35+
# required for SSH
36+
openssh-clients \
3737
# install EPEL repository
3838
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
3939
# update package list from EPEL repository
@@ -42,6 +42,8 @@ RUN \
4242
&& yum install -y \
4343
# install gssntlmssp package
4444
gssntlmssp \
45+
# download the powershell package
46+
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
4547
# install powershell package
4648
&& yum install -y /tmp/powershell-linux.rpm \
4749
# remove powershell package

release/community-stable/archlinux/docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN \
4242
FROM archlinux:latest
4343

4444
# 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"]
4646

4747
# Define Args for the needed to add the package
4848
ARG PS_VERSION=7.0.1
@@ -80,11 +80,13 @@ RUN \
8080
core/icu \
8181
# required for SSL
8282
openssl-1.0 \
83+
# required for SSH
84+
openssh \
8385
# 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 \
8587
# create powershell folder
8688
&& mkdir -p ${PS_INSTALL_FOLDER} \
87-
# Pull down the powershell linux tar file
89+
# download the powershell linux compressed package
8890
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.tar.gz \
8991
# uncompress powershell linux tar file
9092
&& tar zxf /tmp/powershell-linux.tar.gz -C ${PS_INSTALL_FOLDER} -v \

release/community-stable/blackarch/docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN \
4343
FROM archlinux:latest
4444

4545
# 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"]
4747

4848
# Define Args for the needed for BlackArch Linux
4949
ARG BlackArch_Strap_URL=https://blackarch.org/strap.sh
@@ -95,11 +95,13 @@ RUN \
9595
core/icu \
9696
# required for SSL
9797
openssl-1.0 \
98+
# required for SSH
99+
openssh \
98100
# 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 \
100102
# create powershell folder
101103
&& mkdir -p ${PS_INSTALL_FOLDER} \
102-
# Pull down the powershell linux tar file
104+
# download the powershell linux compressed package
103105
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.tar.gz \
104106
# uncompress powershell linux tar file
105107
&& tar zxf /tmp/powershell-linux.tar.gz -C ${PS_INSTALL_FOLDER} \

release/community-stable/clearlinux/docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
3232
RUN \
3333
# install dependencies
3434
swupd bundle-add \
35+
# required for help in PowerShell
3536
less \
37+
# required for SSH
38+
openssh-client \
3639
# create powershell folder
3740
&& mkdir -p ${PS_INSTALL_FOLDER} \
3841
# uncompress powershell linux tar file

release/community-stable/kalilinux/docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN \
3535
# install dependencies
3636
&& apt-get install --no-install-recommends -y \
3737
# required for HttpClientHandler
38-
libcurl4 \
38+
curl \
3939
# required for SSL
4040
ca-certificates \
4141
# required for help in powershell
@@ -44,14 +44,16 @@ RUN \
4444
locales \
4545
# required to support NTLM for PSRemoting
4646
gss-ntlmssp \
47-
wget \
47+
# required for International Components for Unicode
4848
libicu63 \
49+
# required for SSH
50+
openssh-client \
4951
# enable en_US.UTF-8 locale
5052
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
5153
# generate locale
5254
&& locale-gen && update-locale \
5355
# 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 \
5557
# install powershell package
5658
&& apt-get install --no-install-recommends -y /tmp/powershell.deb \
5759
# remove powershell package

release/community-stable/parrotsec/docker/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,25 @@ RUN \
3838
# install dependencies
3939
&& apt install --no-install-recommends -y \
4040
# required for HttpClientHandler
41-
libcurl4 \
41+
curl \
4242
# required for help in powershell
4343
less \
4444
# required to setup the locale
4545
locales \
4646
# required to support NTLM for PSRemoting
4747
gss-ntlmssp \
48-
wget \
48+
# required for International Components for Unicode
4949
libicu63 \
50+
# required for SSH
51+
openssh-client \
5052
# enable en_US.UTF-8 locale
5153
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
5254
# generate locale
5355
&& locale-gen && update-locale \
5456
# upgrade distro
5557
&& 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 \
5860
# install powershell package
5961
&& apt install --no-install-recommends -y /tmp/powershell.deb \
6062
# remove powershell package

release/community-stable/photon/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ RUN \
7272
less \
7373
# required for xterm library
7474
ncurses-terminfo-6.1-2.ph3.x86_64 \
75+
# required for SSH
76+
openssh-clients \
7577
# generate locale
7678
&& locale-gen.sh \
7779
# create the pwsh symbolic link that points to powershell

release/unstable/oraclelinux/docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ ENV \
2626

2727
# Installation
2828
RUN \
29-
# download PowerShell rpm package
30-
curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
3129
# update package list
32-
&& yum update \
30+
yum update -y \
3331
# install dependencies
3432
&& yum install -y \
3533
# required for help in powershell
3634
less \
35+
# required for SSH
36+
openssh-clients \
3737
# install EPEL repository
3838
oracle-epel-release-el7 \
3939
# update package list from EPEL repository
@@ -42,6 +42,8 @@ RUN \
4242
&& yum install -y \
4343
# install gssntlmssp package
4444
gssntlmssp \
45+
# download the powershell package
46+
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.rpm \
4547
# install powershell package
4648
&& yum install -y /tmp/powershell-linux.rpm \
4749
# remove powershell package

0 commit comments

Comments
 (0)