Skip to content

Commit bf6121b

Browse files
committed
Add support for both .Net Core 2.1 and .Net Core 3.1
1 parent 09b6c38 commit bf6121b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

eng/containers/UbuntuNetCore2Keyring/Dockerfile renamed to eng/containers/UbuntuNetCoreKeyring/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build
22

33
ENV \
44
NO_AT_BRIDGE=1 \
5-
DOCKER_CONTAINER_NAME="ubuntu_netcore2_keyring" \
5+
DOCKER_CONTAINER_NAME="ubuntu_netcore_keyring" \
66
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
77
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetCoreSDK-Ubuntu-18.04
88

@@ -13,9 +13,11 @@ RUN apt-get update \
1313
dbus-x11 \
1414
gnome-keyring
1515

16-
# Install PowerShell
16+
# Install PowerShell && .Net SDK 2.1
1717
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
1818
&& dpkg -i packages-microsoft-prod.deb \
1919
&& apt-get update \
2020
&& apt-get install -y powershell \
21-
&& pwsh --version
21+
&& pwsh --version \
22+
&& apt-get install -y dotnet-sdk-2.1 \
23+
&& dotnet --list-sdks

eng/containers/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ pool:
1212
vmImage: 'ubuntu-18.04'
1313

1414
variables:
15-
dockerfile: ./eng/containers/UbuntuNetCore2Keyring/Dockerfile
15+
dockerfile: ./eng/containers/UbuntuNetCoreKeyring/Dockerfile
1616
containerRegistry: 'azsdkengsys'
17-
imageRepository: 'dotnet/ubuntu_netcore2_keyring'
17+
imageRepository: 'dotnet/ubuntu_netcore_keyring'
1818
imageTag: $(build.buildid)
1919

2020
steps:

0 commit comments

Comments
 (0)