Skip to content

Instantly share code, notes, and snippets.

@jtattermusch
Created January 28, 2020 11:59
Show Gist options
  • Save jtattermusch/7c59eb4a0acb6ddc92309c0d8d46e730 to your computer and use it in GitHub Desktop.
Save jtattermusch/7c59eb4a0acb6ddc92309c0d8d46e730 to your computer and use it in GitHub Desktop.
FROM debian:stretch
# based on instructions in https://github.com/grpc/grpc/blob/master/BUILDING.md
RUN apt-get update && apt-get install -y build-essential autoconf libtool pkg-config
RUN apt-get update && apt-get install -y git curl
RUN cd /root && git clone https://github.com/grpc/grpc
WORKDIR /root/grpc
# RUN git checkout aca4421113c6 # select the grpc commit to test
RUN git submodule update --init
RUN cd third_party/protobuf && ./autogen.sh && ./configure && make -j8 && make install && ldconfig
RUN make -j8 && make install
RUN cd examples/cpp/helloworld && make
# use "docker run" to run the example:
# docker build -t temp .
# docker run -it temp
#
# inside docker
# cd examples/cpp/hellowold
# ./greeter_server &
# ./greeter_client
# TODO(jtattermusch): the greeter example isn't really designed to run in a script or as a test
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment