Add 'installDist' task to grpc-java Docker build

This will allow us to not run Gradle every time we run an integration
test.
pull/1510/head
Eric Anderson 10 years ago
parent fde356c98e
commit aa518cc3bf
  1. 2
      tools/dockerfile/grpc_java/Dockerfile
  2. 2
      tools/dockerfile/grpc_java/build.sh

@ -34,7 +34,7 @@ RUN git clone --recursive --depth 1 https://github.com/grpc/grpc-java.git /var/l
RUN cd /var/local/git/grpc-java/lib/netty && \
mvn -pl codec-http2 -am -DskipTests install clean
RUN cd /var/local/git/grpc-java && \
./gradlew build
./gradlew build installDist
# Specify the default command such that the interop server runs on its known testing port
CMD ["/var/local/git/grpc-java/run-test-server.sh", "--use_tls=true", "--port=8030"]

@ -4,6 +4,6 @@ cp -R /var/local/git-clone /var/local/git
cd /var/local/git/grpc-java/lib/netty && \
mvn -pl codec-http2 -am -DskipTests install clean
cd /var/local/git/grpc-java && \
./gradlew build
./gradlew build installDist
echo 'build finished'

Loading…
Cancel
Save