Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/navono/proto-compiler-docker

Dockerfile for compile proto file
https://github.com/navono/proto-compiler-docker

dockerfile protobuf

Last synced: 11 days ago
JSON representation

Dockerfile for compile proto file

Awesome Lists containing this project

README

        

# proto-compiler-docker
Compile `.proto` files with Docker.

## dev
> docker build -t proto-compiler:latest .

## Usage
> $ export protoCompiler="proto-compiler:latest"
>
> $ docker run -v $(pwd):/repo $(protoCompiler) \
protoc -Irepo/proto -Irepo/third_party \
--js_out=import_style=commonjs,binary:/repo/out \
--ts_out=service=true:/repo/out \
--go_out=plugins=grpc:/repo/out \
--grpc-gateway_out=logtostderr=true:/repo/out \
--swagger_out=logtostderr=true:/repo/out/swagger \
--lint_out=. \
repo/proto/test.proto

## License
MIT