add .NET Core distribtest for ubuntu 16.04

pull/18697/head
Jan Tattermusch 5 years ago
parent 0040bb9353
commit 32dbe30b35
  1. 10
      tools/dockerfile/distribtest/csharp_ubuntu1604_x64/Dockerfile
  2. 1
      tools/run_tests/artifacts/distribtest_targets.py

@ -24,6 +24,16 @@ RUN apt-get update && apt-get install -y \
nuget \
&& apt-get clean
RUN apt-get update && apt-get install -y curl && apt-get clean
# Install dotnet SDK
ENV DOTNET_SDK_VERSION 2.1.500
RUN curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
&& mkdir -p /usr/share/dotnet \
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
RUN apt-get update && apt-get install -y unzip && apt-get clean
# Make sure the mono certificate store is up-to-date to prevent issues with nuget restore

@ -308,6 +308,7 @@ def targets():
CSharpDistribTest('linux', 'x64', 'centos7'),
CSharpDistribTest('linux', 'x64', 'ubuntu1404'),
CSharpDistribTest('linux', 'x64', 'ubuntu1604'),
CSharpDistribTest('linux', 'x64', 'ubuntu1604', use_dotnet_cli=True),
CSharpDistribTest('linux', 'x64', 'ubuntu1404', use_dotnet_cli=True),
CSharpDistribTest('linux', 'x64', 'alpine', use_dotnet_cli=True),
CSharpDistribTest('macos', 'x86'),

Loading…
Cancel
Save