install dotnet cli into ubuntu1404 distribtest docker

pull/8107/head
Jan Tattermusch 8 years ago
parent 50e98574b2
commit fb8fb404b8
  1. 17
      tools/dockerfile/distribtest/csharp_ubuntu1404_x64/Dockerfile

@ -41,3 +41,20 @@ RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install -y nuget RUN apt-get update && apt-get install -y nuget
RUN apt-get update && apt-get install -y unzip RUN apt-get update && apt-get install -y unzip
# Install dotnet CLI
RUN apt-get install -y apt-transport-https
RUN sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
RUN apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
RUN apt-get update && apt-get install -y dotnet-dev-1.0.0-preview2-003121
# Trigger the population of the local package cache for dotnet CLI
RUN mkdir warmup \
&& cd warmup \
&& dotnet new \
&& cd .. \
&& rm -rf warmup
# TODO(jtattermusch): without libc-dev, netcoreapp1.0 targets fail with
# System.DllNotFoundException: Unable to load DLL 'libdl.so'
RUN apt-get install -y libc-dev
Loading…
Cancel
Save