Public | Automated Build

Last pushed: 5 days ago
# 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 <>" \"" \ description="This Dockerfile will install the latest release of PS." \ org.label-schema.usage="" \ org.label-schema.url="" \ org.label-schema.vcs-url="" \"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" \"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 \ && zypper --non-interactive install$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