pcorbel / docker-proto

This is a multistage Docker build to have an All In One Proto compiler

Home Page:https://hub.docker.com/r/pierrecorbel/docker-proto/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-proto

How to use

Where ${proto} is your file.proto

docker run \
-v $(pwd):$(pwd) \
-w $(pwd) pierrecorbel/docker-proto:1.0.1 \
/usr/bin/protoc \
-I/protobuf \
--proto_path=src/main/proto \
--java_out=src/main/java \
--python_out=src/main/python \
--swift_out=src/main/swift \
--doc_out=src/main/json \
--doc_opt=json,${proto%%.proto}.json \
${proto}

About

This is a multistage Docker build to have an All In One Proto compiler

https://hub.docker.com/r/pierrecorbel/docker-proto/

License:Apache License 2.0