protobuf-tools which include grpcio for python
6.3K
A docker image with protobuf and a handful set of plugins.
The whole idea is to provide an easy-almost-no-setup way to generate resources and documentation
from protos.
This image gives you a compiled protobuf and some of its plugins (not so many for now):
protobuf3: https://github.com/google/protobufprotoc-gen-doc: https://github.com/pseudomuto/protoc-gen-docprotoc-gen-scala: https://github.com/scalapb/ScalaPBprotoc-gen-go: https://github.com/golang/protobufgoprotowrap: https://github.com/square/goprotowraprust-protobuf: https://github.com/stepancheg/rust-protobufdocker run with a couple options:
# Here we're inside your proto's folder, let's call it `my-protos`
cd ~/my-protos
docker run \
--name my-protos
-v `pwd`:/my-protos:ro \
-w /my-protos \
--rm -it brennovich/protobuf-tools:latest protoc --doc_out=html,index.html:/build *.proto
# Make sure to use docker cp instead of writing in mounted folder, it avoid permissions issues and is much more flexible
docker cp my-protos:/build compiled-protos
docker rm my-protos
For more examples compiling for various languages look `[Makefile]
All of that can be done using makefile:
make test # this will build a docker image of current HEAD and run plugins and extensions
make release RELEASE=3.0.0 # build a docker iamge, tag and publish it to brennovich/protobuf-tools docker hub repo
Checkout [Makefile] for more tasks ;)
Content type
Image
Digest
Size
492.5 MB
Last updated
about 8 years ago
docker pull jasiek/protobuf-tools