Created
August 27, 2018 08:26
-
-
Save jnst/ec218bf69b5aa7f36d93376fc64cffee to your computer and use it in GitHub Desktop.
Generating gRPC C++ code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM grpc/cxx | |
WORKDIR /workspace | |
RUN mkdir codegen | |
COPY ./protobuf /workspace/protobuf | |
CMD protoc \ | |
--proto_path=./protobuf \ | |
--grpc_out=./codegen --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` \ | |
./protobuf/rpc/*.proto \ | |
./protobuf/rpc/**/*.proto \ | |
&& protoc \ | |
--proto_path=./protobuf \ | |
--cpp_out=./codegen \ | |
./protobuf/rpc/*.proto \ | |
./protobuf/rpc/**/*.proto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment