Skip to content

Commit

Permalink
Add support for both .Net Core 2.1 and .Net Core 3.1 (#14884)
Browse files Browse the repository at this point in the history
* Add support for both .Net Core 2.1 and .Net Core 3.1

* Install runtime instead of SDK
  • Loading branch information
AlexanderSher authored Sep 4, 2020
1 parent 77b2664 commit c201360
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build

ENV \
NO_AT_BRIDGE=1 \
DOCKER_CONTAINER_NAME="ubuntu_netcore2_keyring" \
DOCKER_CONTAINER_NAME="ubuntu_netcore_keyring" \
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetCoreSDK-Ubuntu-18.04

Expand All @@ -13,9 +13,11 @@ RUN apt-get update \
dbus-x11 \
gnome-keyring

# Install PowerShell
# Install PowerShell && .net core runtime 2.1
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt-get update \
&& apt-get install -y powershell \
&& pwsh --version
&& pwsh --version \
&& apt-get install -y dotnet-runtime-2.1 \
&& dotnet --list-runtimes
4 changes: 2 additions & 2 deletions eng/containers/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ pool:
vmImage: 'ubuntu-18.04'

variables:
dockerfile: ./eng/containers/UbuntuNetCore2Keyring/Dockerfile
dockerfile: ./eng/containers/UbuntuNetCoreKeyring/Dockerfile
containerRegistry: 'azsdkengsys'
imageRepository: 'dotnet/ubuntu_netcore2_keyring'
imageRepository: 'dotnet/ubuntu_netcore_keyring'
imageTag: $(build.buildid)

steps:
Expand Down

0 comments on commit c201360

Please sign in to comment.