Improve release testing Docker images (#9942)

This commit is contained in:
Reece Dunham 2019-06-20 13:16:45 -04:00 committed by Travis Plunk
parent 4ae04335a4
commit 66e571b19f
9 changed files with 21 additions and 11 deletions

View file

@ -14,7 +14,8 @@ RUN apt-get update \
curl \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8
@ -23,6 +24,6 @@ RUN locale-gen $LANG && update-locale
RUN curl -L -o $PACKAGENAME $PACKAGELOCATION/$PACKAGENAME
RUN dpkg -i $PACKAGENAME || :
RUN apt-get install -y -f
RUN apt-get install -y -f --no-install-recommends
RUN $TESTDOWNLOADCOMMAND
RUN pwsh$PREVIEWSUFFIX -c "Import-Module /PowerShell/build.psm1;\$dir='/usr/local/share/powershell/Modules';\$null=New-Item -Type Directory -Path \$dir -ErrorAction SilentlyContinue;Restore-PSPester -Destination \$dir;exit (Invoke-Pester $TESTLIST -PassThru).FailedCount"

View file

@ -13,7 +13,8 @@ RUN apt-get update \
ca-certificates \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8

View file

@ -13,7 +13,8 @@ RUN apt-get update \
ca-certificates \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8

View file

@ -13,14 +13,16 @@ RUN apt-get update \
ca-certificates \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Install dotnet-runtime
ADD https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb .
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
dotnet-runtime-2.1
dotnet-runtime-2.1 \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8

View file

@ -13,7 +13,8 @@ RUN apt-get update \
ca-certificates \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8

View file

@ -14,7 +14,8 @@ RUN apt-get update \
curl \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8
@ -23,6 +24,6 @@ RUN locale-gen $LANG && update-locale
RUN curl -L -o $PACKAGENAME $PACKAGELOCATION/$PACKAGENAME
RUN dpkg -i $PACKAGENAME || :
RUN apt-get install -y -f
RUN apt-get install -y -f --no-install-recommends
RUN $TESTDOWNLOADCOMMAND
RUN pwsh$PREVIEWSUFFIX -c "Import-Module /PowerShell/build.psm1;\$dir='/usr/local/share/powershell/Modules';\$null=New-Item -Type Directory -Path \$dir -ErrorAction SilentlyContinue;Restore-PSPester -Destination \$dir;exit (Invoke-Pester $TESTLIST -PassThru).FailedCount"

View file

@ -14,7 +14,8 @@ RUN apt-get update \
curl \
apt-transport-https \
locales \
git
git \
&& apt-get clean
# Setup the locale
ENV LANG en_US.UTF-8
@ -23,6 +24,6 @@ RUN locale-gen $LANG && update-locale
RUN curl -L -o $PACKAGENAME $PACKAGELOCATION/$PACKAGENAME
RUN dpkg -i $PACKAGENAME || :
RUN apt-get install -y -f
RUN apt-get install -y -f --no-install-recommends
RUN $TESTDOWNLOADCOMMAND
RUN pwsh$PREVIEWSUFFIX -c "Import-Module /PowerShell/build.psm1;\$dir='/usr/local/share/powershell/Modules';\$null=New-Item -Type Directory -Path \$dir -ErrorAction SilentlyContinue;Restore-PSPester -Destination \$dir;exit (Invoke-Pester $TESTLIST -PassThru).FailedCount"

View file

@ -26,6 +26,7 @@ RUN apt-get update \
apt-transport-https \
locales \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY PowerShellPackage.ps1 /

View file

@ -26,6 +26,7 @@ RUN apt-get update \
apt-transport-https \
locales \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY PowerShellPackage.ps1 /