Nicolas Noble | ddef246 | 2015-01-06 18:08:25 -0800 | [diff] [blame] | 1 | # Dockerfile for gRPC C++ |
| 2 | FROM grpc/base |
| 3 | |
Tim Emiola | d2130c3 | 2015-01-21 09:51:45 -0800 | [diff] [blame] | 4 | # Get the source from GitHub |
| 5 | RUN git clone git@github.com:google/grpc.git /var/local/git/grpc |
| 6 | RUN cd /var/local/git/grpc && \ |
| 7 | git pull --recurse-submodules && \ |
| 8 | git submodule update --init --recursive |
Nicolas Noble | ddef246 | 2015-01-06 18:08:25 -0800 | [diff] [blame] | 9 | |
Tim Emiola | d2130c3 | 2015-01-21 09:51:45 -0800 | [diff] [blame] | 10 | # Build the protobuf library; then the C core. |
| 11 | RUN cd /var/local/git/grpc/third_party/protobuf && \ |
| 12 | ./autogen.sh && \ |
| 13 | ./configure --prefix=/usr && \ |
| 14 | make -j12 && make check && make install && make clean |
Nicolas Noble | ddef246 | 2015-01-06 18:08:25 -0800 | [diff] [blame] | 15 | RUN make install -C /var/local/git/grpc |
| 16 | |
| 17 | # Define the default command. |
Tim Emiola | d2130c3 | 2015-01-21 09:51:45 -0800 | [diff] [blame] | 18 | CMD ["bash"] |