Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SSH client package to community-stable images #462

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Add openssh package for archlinux
kiazhi committed Jul 22, 2020
commit 40227d75dfcaabc75bc91820cf289edb6a69aea5
7 changes: 5 additions & 2 deletions release/community-stable/archlinux/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -50,6 +50,9 @@ ARG PS_PACKAGE=powershell-${PS_VERSION}-linux-x64.tar.gz
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}
ARG PS_INSTALL_VERSION=7

# Download the PowerShell Core Linux tar.gz and save it
ADD ${PS_PACKAGE_URL} /tmp/powershell-linux.tar.gz

# Define Args and Env needed to create links
ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
\
@@ -80,12 +83,12 @@ RUN \
core/icu \
# required for SSL
openssl-1.0 \
# required for SSH
openssh \
# install gss-ntlmssp package from the previous stage
&& pacman -U --noconfirm /tmp/gss-ntlmssp-0.8.0.r3.g2251a72-1-x86_64.pkg.tar.xz \
# create powershell folder
&& mkdir -p ${PS_INSTALL_FOLDER} \
# Pull down the powershell linux tar file
&& curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell-linux.tar.gz \
# uncompress powershell linux tar file
&& tar zxf /tmp/powershell-linux.tar.gz -C ${PS_INSTALL_FOLDER} -v \
# remove powershell linux tar file