@@ -63,7 +63,7 @@ RUN set -ex \
6363 && mkdir -p /usr/local/GitVersion_${GITVERSION_VERSION} \
6464 && unzip /tmp/GitVersion_${GITVERSION_VERSION}.zip -d /usr/local/GitVersion_${GITVERSION_VERSION} \
6565 && rm /tmp/GitVersion_${GITVERSION_VERSION}.zip \
66- && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe /output json /showvariable \$ 1 " >> /usr/local/bin/gitversion \
66+ && echo "mono /usr/local/GitVersion_${GITVERSION_VERSION}/GitVersion.exe \$ @ " >> /usr/local/bin/gitversion \
6767 && chmod +x /usr/local/bin/gitversion
6868
6969# Install Docker
@@ -102,25 +102,25 @@ RUN set -ex \
102102 && apt-get update \
103103 && apt-get install -y --no-install-recommends \
104104 libc6=2.19-* \
105- libcurl3=7.35.0- * \
106- libgcc1=1:4.9.3- * \
107- libgssapi-krb5-2=1.12+dfsg- * \
105+ libcurl3=7.35.* \
106+ libgcc1=1:4.9.* \
107+ libgssapi-krb5-2=1.12* \
108108 libicu52=52.1-* \
109- liblttng-ust0=2.4.0- * \
110- libssl1.0.0=1.0.1f- * \
109+ liblttng-ust0=2.4.* \
110+ libssl1.0.0=1.0.* \
111111 libunwind8=1.1-* \
112- libuuid1=2.20.1- * \
113- zlib1g=1:1.2.8.dfsg- * \
114- software-properties-common=0.92.37.8 \
112+ libuuid1=2.20.* \
113+ zlib1g=1:1.2.* \
114+ software-properties-common=0.92.* \
115115 && add-apt-repository ppa:ubuntu-toolchain-r/test -y \
116116 && apt-get update \
117117 && apt-get install -y libstdc++6=8*\
118118 && rm -rf /var/lib/apt/lists/*
119119
120120# Install .NET Core SDK
121- ENV DOTNET_SDK_VERSION 2.1.101
121+ ENV DOTNET_SDK_VERSION 2.1.202
122122ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz
123- ENV DOTNET_SDK_DOWNLOAD_SHA d231ac3562f025b848497eddbcb254cfd547bd622b35dc4b1ed5bcd29153f832610b77cf7edf15d9f05c707d4d06abecbdcd7633fa721246d6d7ba61d78eea81
123+ ENV DOTNET_SDK_DOWNLOAD_SHA e785b9b488b5570708eb060f9a4cb5cf94597d99a8b0a3ee449d2e5df83771c1ba643a87db17ae6727d0e2acb401eca292fb8c68ad92eeb59d7f0d75eab1c20a
124124
125125RUN set -ex \
126126 && curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \
@@ -139,3 +139,18 @@ RUN set -ex \
139139 && cd .. \
140140 && rm -rf warmup \
141141 && rm -rf /tmp/NuGetScratch
142+
143+ # Install Powershell Core
144+ # See instructions at https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux
145+ ENV POWERSHELL_VERSION 6.0.3
146+ ENV POWERSHELL_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v6.0.3/powershell-6.0.3-linux-x64.tar.gz
147+ ENV POWERSHELL_DOWNLOAD_SHA A43D3056688FABC442BFBE0FD7A096F7E28036759EFF9D6EBE8CB9155C9D9AAB
148+
149+ RUN set -ex \
150+ && curl -SL $POWERSHELL_DOWNLOAD_URL --output powershell.tar.gz \
151+ && echo "$POWERSHELL_DOWNLOAD_SHA powershell.tar.gz" | sha256sum -c - \
152+ && mkdir -p /opt/microsoft/powershell/$POWERSHELL_VERSION \
153+ && tar zxf powershell.tar.gz -C /opt/microsoft/powershell/$POWERSHELL_VERSION \
154+ && rm powershell.tar.gz \
155+ && ln -s /opt/microsoft/powershell/$POWERSHELL_VERSION/pwsh /usr/bin/pwsh
156+
0 commit comments