Fixes in Dockerfiles for Node, PHP, Ruby, speed boost for Python

pull/684/head
Jan Tattermusch 10 years ago
parent 04608c4134
commit 213ecbfcfa
  1. 7
      tools/dockerfile/grpc_node/Dockerfile
  2. 3
      tools/dockerfile/grpc_php/Dockerfile
  3. 3
      tools/dockerfile/grpc_php_base/Dockerfile
  4. 4
      tools/dockerfile/grpc_python/Dockerfile
  5. 7
      tools/dockerfile/grpc_ruby/Dockerfile

@ -1,13 +1,16 @@
# Dockerfile for gRPC Node
FROM grpc/node_base
# Update the C libary
# Pull the latest sources
RUN cd /var/local/git/grpc \
&& git pull --recurse-submodules \
&& git submodule update --init --recursive
# Prevent breaking the build if header files are added/removed.
RUN make clean -C /var/local/git/grpc
# Install the C core.
RUN make install_c -C /var/local/git/grpc
RUN make install_c -j12 -C /var/local/git/grpc
RUN cd /var/local/git/grpc/src/node && npm install && node-gyp rebuild

@ -5,6 +5,9 @@ RUN cd /var/local/git/grpc \
&& git pull --recurse-submodules \
&& git submodule update --init --recursive
# Prevent breaking the build if header files are added/removed.
RUN make clean -C /var/local/git/grpc
RUN make install_c -j12 -C /var/local/git/grpc
RUN cd /var/local/git/grpc/src/php/ext/grpc && git pull && phpize

@ -84,6 +84,9 @@ RUN wget https://phar.phpunit.de/phpunit.phar \
&& chmod +x phpunit.phar \
&& mv phpunit.phar /usr/local/bin/phpunit
# TODO: pre-building seems unnecessary, because we need to run make clean
# anyway to prevent build from crashing if header files are added/removed.
# Build the C core
RUN make static_c shared_c -j12 -C /var/local/git/grpc

@ -1,13 +1,13 @@
# Dockerfile for GRPC Python
FROM grpc/python_base
# Build the C library
# Pull the latest sources
RUN cd /var/local/git/grpc \
&& git pull --recurse-submodules \
&& git submodule update --init --recursive
# Build the C core.
RUN make install_c -C /var/local/git/grpc
RUN make install_c -j12 -C /var/local/git/grpc
# Build Python GRPC
RUN cd /var/local/git/grpc \

@ -1,13 +1,16 @@
# Dockerfile for gRPC Ruby
FROM grpc/ruby_base
# Build the C libary
# Pull the latest sources
RUN cd /var/local/git/grpc \
&& git pull --recurse-submodules \
&& git submodule update --init --recursive
# Prevent breaking the build if header files are added/removed.
RUN make clean -C /var/local/git/grpc
# Build the C core
RUN make install_c -C /var/local/git/grpc
RUN make install_c -j12 -C /var/local/git/grpc
# Build ruby gRPC and run its tests
RUN /bin/bash -l -c 'cd /var/local/git/grpc/src/ruby && bundle && rake'

Loading…
Cancel
Save