Merge pull request #684 from jtattermusch/dockerfile_fixes

Fixes in Dockerfiles for Node, PHP, Ruby, speed boost for Python
pull/691/merge
Tim Emiola 10 years ago
commit 16ffd653c7
  1. 7
      tools/dockerfile/grpc_node/Dockerfile
  2. 2
      tools/dockerfile/grpc_node_base/Dockerfile
  3. 3
      tools/dockerfile/grpc_php/Dockerfile
  4. 3
      tools/dockerfile/grpc_php_base/Dockerfile
  5. 4
      tools/dockerfile/grpc_python/Dockerfile
  6. 7
      tools/dockerfile/grpc_ruby/Dockerfile
  7. 5
      tools/dockerfile/grpc_ruby_base/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

@ -15,6 +15,8 @@ RUN cd /var/local/git/grpc && \
git pull --recurse-submodules && \
git submodule update --init --recursive
# 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

@ -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'

@ -54,5 +54,10 @@ RUN cd /var/local/git/grpc/third_party/protobuf && \
./configure --prefix=/usr && \
make -j12 && make check && make install && make clean
# 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
# Define the default command.
CMD ["bash"]

Loading…
Cancel
Save