Docker image with protoc 3 and gogo plugin. Based on the work by nanoservice.
# Just print protobuf help message
docker run -it --rm \
calico/protoc --help
# Use current folder for input and output
docker run -it --rm -v $PWD:/src:rw \
calico/protoc --cpp_out=. *.proto
# If you ran into problems with user uid and gid (consider scripting it)
docker run -it --rm -v $PWD:/user-src:rw -u $(id -u):$(id -g) -w /user-src \
calico/protoc --cpp_out=. *.proto
- Tigera (added gogo)
- Based on the work by waterlink Oleksii Fedorov, creator, maintainer