Public | Automated Build

Last pushed: 5 days ago
Dockerfile
# Docker image file that describes an OpenSUSE 42.1 (AKA leap 42.1) image with PowerShell installed from PowerShell Release FROM opensuse:42.2 ARG POWERSHELL_VERSION=6.0.0_beta.6 ARG POWERSHELL_RELEASE=v6.0.0-beta.6 ARG FORK=PowerShell ARG POWERSHELL_PACKAGE=powershell-$POWERSHELL_VERSION-1.suse.42.1.x86_64.rpm ARG IMAGE_NAME=microsoft/powershell:opensuse42.2 LABEL maintainer="PowerShell Team <powershellteam@hotmail.com>" \ readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md" \ description="This Dockerfile will install the latest release of PS." \ org.label-schema.usage="https://github.com/PowerShell/PowerShell/tree/master/docker#run-the-docker-image-you-built" \ org.label-schema.url="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md" \ org.label-schema.vcs-url="https://github.com/PowerShell/PowerShell" \ org.label-schema.name="powershell" \ org.label-schema.vendor="PowerShell" \ org.label-schema.version=${POWERSHELL_VERSION} \ org.label-schema.schema-version="1.0" \ org.label-schema.docker.cmd="docker run ${IMAGE_NAME} powershell -c '$psversiontable'" \ org.label-schema.docker.cmd.devel="docker run ${IMAGE_NAME}" \ org.label-schema.docker.cmd.test="docker run ${IMAGE_NAME} powershell -c Invoke-Pester" \ org.label-schema.docker.cmd.help="docker run ${IMAGE_NAME} powershell -c Get-Help" # TODO: addd LABEL org.label-schema.vcs-ref=${VCS_REF} # Update, Install packages to generate localedef and CURL which is used by RPM # add the Microsoft key as trusted to install packgages using RPM # Install PowerShell then clean up RUN zypper --non-interactive update --skip-interactive \ && zypper --non-interactive install \ glibc-locale \ glibc-i18ndata \ curl \ && rpm --import https://packages.microsoft.com/keys/microsoft.asc \ && zypper --non-interactive install https://github.com/$FORK/PowerShell/releases/download/$POWERSHELL_RELEASE/$POWERSHELL_PACKAGE \ && zypper --non-interactive clean --all # Setup the locale ENV LANG en_US.UTF-8 ENV LC_ALL $LANG RUN localedef --charmap=UTF-8 --inputfile=en_US $LANG CMD [ "powershell" ]
Source Repository