aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/distribtest
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-09-08 15:49:59 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-09-15 18:18:24 +0200
commitfb8fb404b89ef08dd752cdb7657442ff0ad9f82d (patch)
tree2e599d3814ff681ec04310bde4a63ea85833dcc1 /tools/dockerfile/distribtest
parent50e98574b28af990811f50c065c169ea97efe3b9 (diff)
install dotnet cli into ubuntu1404 distribtest docker
Diffstat (limited to 'tools/dockerfile/distribtest')
-rw-r--r--tools/dockerfile/distribtest/csharp_ubuntu1404_x64/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/dockerfile/distribtest/csharp_ubuntu1404_x64/Dockerfile b/tools/dockerfile/distribtest/csharp_ubuntu1404_x64/Dockerfile
index 7e328e64d2..1f9a42e13f 100644
--- a/tools/dockerfile/distribtest/csharp_ubuntu1404_x64/Dockerfile
+++ b/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 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 \ No newline at end of file