Skip to content
Snippets Groups Projects
Commit b776a199 authored by Tim Emiola's avatar Tim Emiola
Browse files

Updates the Go dockerfile to reflect the package restructuring.

- also corrects an error in the Go client test command
parent bdc52f6d
No related branches found
No related tags found
No related merge requests found
...@@ -17,11 +17,11 @@ RUN echo 'StrictHostKeyChecking no' >> $HOME/.ssh/config ...@@ -17,11 +17,11 @@ RUN echo 'StrictHostKeyChecking no' >> $HOME/.ssh/config
RUN git config --global url."git@github.com:".insteadOf "https://github.com/" RUN git config --global url."git@github.com:".insteadOf "https://github.com/"
# Get the source from GitHub # Get the source from GitHub
RUN go get github.com/google/grpc-go RUN go get github.com/google/grpc-go/rpc
# Build the interop client and server # Build the interop client and server
RUN cd src/github.com/google/grpc-go/interop/client && go install RUN cd src/github.com/google/grpc-go/rpc/interop/client && go install
RUN cd src/github.com/google/grpc-go/interop/server && go install RUN cd src/github.com/google/grpc-go/rpc/interop/server && go install
# Specify the default command such that the interop server runs on its known testing port # 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/interop/server && go run server.go --use_tls=true --port=8020'"] CMD ["/bin/bash", "-c", "cd src/github.com/google/grpc-go/rpc/interop/server && go run server.go --use_tls=true --port=8020"]
...@@ -640,10 +640,11 @@ grpc_interop_gen_ruby_cmd() { ...@@ -640,10 +640,11 @@ grpc_interop_gen_ruby_cmd() {
# flags= .... # generic flags to include the command # flags= .... # generic flags to include the command
# cmd=$($grpc_gen_test_cmd $flags) # cmd=$($grpc_gen_test_cmd $flags)
grpc_interop_gen_go_cmd() { grpc_interop_gen_go_cmd() {
local cmd_prefix="sudo docker run grpc/go bin/bash -c"; local cmd_prefix="sudo docker run grpc/go /bin/bash -c"
local test_script="cd /go/src/github.com/google/grpc-go/interop/client"; local test_script="cd /go/src/github.com/google/grpc-go/rpc/interop/client"
local test_script+=" && go run client.go --use_tls=true"; local test_script+=" && go run client.go --use_tls=true"
local the_cmd="$cmd_prefix '$test_script $@ 1>&2'"; local the_cmd="$cmd_prefix '$test_script $@'"
echo $the_cmd
} }
# constructs the full dockerized java interop test cmd. # constructs the full dockerized java interop test cmd.
......
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