https://github.com/pcorbel/docker-proto
This is a multistage Docker build to have an All In One Proto compiler
https://github.com/pcorbel/docker-proto
docker protobuf protoc
Last synced: 12 months ago
JSON representation
This is a multistage Docker build to have an All In One Proto compiler
- Host: GitHub
- URL: https://github.com/pcorbel/docker-proto
- Owner: pcorbel
- License: apache-2.0
- Created: 2018-06-04T15:48:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-15T12:38:12.000Z (about 8 years ago)
- Last Synced: 2025-03-12T17:50:06.775Z (over 1 year ago)
- Topics: docker, protobuf, protoc
- Homepage: https://hub.docker.com/r/pierrecorbel/docker-proto/
- Size: 16.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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}
```