Public Repository

Last pushed: a year ago
Short Description
An image built to compile GRPC service definitions into stubs
Full Description

An image built to compile GRPC service definitions into stubs. This image has been tested to compile Java and Python stubs using grpc 0.11 and protobuf 3 (beta 1).

This image has been flattened for easier distribution.

To generate your stubs, start a container in interactive while mounting the directory your service definition file is located.

docker run -it -v directory/with/service/file:/mount/point/ dburihabwa/grpc-compiler-0.11-flat /bin/bash

Once in the container, move to the mount point and generate your stubs with the following commands:

# Python
protoc -I . --python_out=. --grpc_out=. --plugin=protoc-gen-grpc="${GRPC_ROOT}"/bins/opt/grpc_python_plugin my-service.proto

# Java
protoc -I . --java_out=. --grpc-java_out=. --plugin=protoc-gen-grpc-java="${GRPC_JAVA_ROOT}"/compiler/build/binaries/java_pluginExecutable/protoc-gen-grpc-java my-service.proto
Docker Pull Command
Owner
dburihabwa

Comments (0)