blob: 141a20a88150a134b33fab311ff541d595fba1f9 [file] [log] [blame]
Nicolas Nobleddef2462015-01-06 18:08:25 -08001# Dockerfile for gRPC C++
2FROM grpc/base
3
Donna Dionnef06fd4c2015-01-23 15:59:10 -08004RUN apt-get update && apt-get -y install libgflags-dev libgtest-dev
5
Tim Emiolad2130c32015-01-21 09:51:45 -08006# Get the source from GitHub
7RUN git clone git@github.com:google/grpc.git /var/local/git/grpc
8RUN cd /var/local/git/grpc && \
9 git pull --recurse-submodules && \
10 git submodule update --init --recursive
Nicolas Nobleddef2462015-01-06 18:08:25 -080011
Tim Emiolad2130c32015-01-21 09:51:45 -080012# Build the protobuf library; then the C core.
13RUN cd /var/local/git/grpc/third_party/protobuf && \
14 ./autogen.sh && \
15 ./configure --prefix=/usr && \
16 make -j12 && make check && make install && make clean
Nicolas Nobleddef2462015-01-06 18:08:25 -080017
Donna Dionnef06fd4c2015-01-23 15:59:10 -080018RUN cd /var/local/git/grpc && ls \
19 && make clean \
20 && make gens/test/cpp/util/messages.pb.cc \
21 && make interop_client \
22 && make interop_server
23
24CMD ["/var/local/git/grpc/bins/opt/interop_server", "--enable_ssl", "--port=8010"]