Skip to content
Snippets Groups Projects
Commit df2186fb authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #934 from jtattermusch/csharp_docker

Polishing C# Dockerfiles
parents eb82c4e7 0a1d0904
No related branches found
No related tags found
No related merge requests found
...@@ -38,12 +38,8 @@ RUN cd /var/local/git/grpc \ ...@@ -38,12 +38,8 @@ RUN cd /var/local/git/grpc \
# Install the gRPC C# extension library # Install the gRPC C# extension library
RUN make install_grpc_csharp_ext -j12 -C /var/local/git/grpc RUN make install_grpc_csharp_ext -j12 -C /var/local/git/grpc
# TODO: download NuGet from web. The problem is there seems to be no direct link
# we could use :-)
ADD NuGet.exe NuGet.exe
# Restore the NuGet dependencies # Restore the NuGet dependencies
RUN cd /var/local/git/grpc/src/csharp && mono /NuGet.exe restore Grpc.sln RUN cd /var/local/git/grpc/src/csharp && mono /var/local/NuGet.exe restore Grpc.sln
# Build gRPC solution # Build gRPC solution
RUN cd /var/local/git/grpc/src/csharp && xbuild Grpc.sln RUN cd /var/local/git/grpc/src/csharp && xbuild Grpc.sln
......
...@@ -43,6 +43,9 @@ RUN apt-get update && apt-get install -y \ ...@@ -43,6 +43,9 @@ RUN apt-get update && apt-get install -y \
nunit-console \ nunit-console \
monodevelop monodevelop
# Download NuGet
RUN cd /var/local && wget www.nuget.org/NuGet.exe
# Get the source from GitHub # Get the source from GitHub
RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc RUN git clone git@github.com:grpc/grpc.git /var/local/git/grpc
RUN cd /var/local/git/grpc && \ RUN cd /var/local/git/grpc && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment