Fixing go docker file to use the correct golang path

Fixing java_base to edit permission on a key file
pull/427/head
Donna Dionne 10 years ago
parent bf18198231
commit 1829e4cf42
  1. 8
      tools/dockerfile/grpc_go/Dockerfile
  2. 1
      tools/dockerfile/grpc_java_base/Dockerfile

@ -17,11 +17,11 @@ RUN echo 'StrictHostKeyChecking no' >> $HOME/.ssh/config
RUN git config --global url."git@github.com:".insteadOf "https://github.com/"
# Get the source from GitHub
RUN go get github.com/google/grpc-go/rpc
RUN go get google.golang.org/grpc
# Build the interop client and server
RUN cd src/github.com/google/grpc-go/rpc/interop/client && go install
RUN cd src/github.com/google/grpc-go/rpc/interop/server && go install
RUN cd src/google.golang.org/grpc/interop/client && go install
RUN cd src/google.golang.org/grpc/interop/server && go install
# Specify the default command such that the interop server runs on its known testing port
CMD ["/bin/bash", "-c", "cd src/github.com/google/grpc-go/rpc/interop/server && go run server.go --use_tls=true --port=8020"]
CMD ["/bin/bash", "-c", "cd src/google.golang.org/grpc/interop/server && go run server.go --use_tls=true --port=8020"]

@ -34,6 +34,7 @@ RUN wget -O - https://github.com/google/protobuf/archive/master.tar.gz | \
# Install a GitHub SSH service credential that gives access to the GitHub repo while it's private
# TODO: remove this once the repo is public
COPY .ssh/github.rsa /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN echo 'Host github.com\nStrictHostKeyChecking no' > /root/.ssh/config
# Trigger download of as many Maven and Gradle artifacts as possible. We don't build grpc-java

Loading…
Cancel
Save