Stop worrying about how to install the right protoc version and managing protoc plugins!
Compile protobufs (protoc) inside a container (protocc)!
In a directory with .proto
files, run:
python protocc.py --out go
protocc will generate all the .pb.go
files inside the container, then copy them
to your local filesystem, printing where it puts each file.
- Docker
- Python
We've manually tested on Python 2 and 3.
Currently this only generates Go protobufs, but could be easily modified to support other target languages. We welcome your feature requests, or even better, contributions!
Copyright 2018 Windmill Engineering
Licensed under the Apache License, Version 2.0