Sign inSign up

jasiek/protobuf-tools

By jasiek

•Updated about 8 years ago

protobuf-tools which include grpcio for python

Image
0

6.3K

jasiek/protobuf-tools repository overview

⁠Protobuf Tools

A docker image with protobuf and a handful set of plugins.

⁠Motivation

The whole idea is to provide an easy-almost-no-setup way to generate resources and documentation from protos.

⁠Dependencies

  • Docker

⁠Content

This image gives you a compiled protobuf and some of its plugins (not so many for now):

⁠Usage

docker 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]

⁠Test, buid & release

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 ;)

⁠Contributing

  1. Fork it
  2. Fix, or add your feature in a new branch
  3. Open up a Pull Request against this repo with an useful description
  4. Try to stick with formating conventions already used in the files

Tag summary

Content type

Image

Digest

Size

492.5 MB

Last updated

about 8 years ago

docker pull jasiek/protobuf-tools