https://github.com/aphistic/protoc
https://github.com/aphistic/protoc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aphistic/protoc
- Owner: aphistic
- Created: 2019-07-06T16:28:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T06:30:58.000Z (over 3 years ago)
- Last Synced: 2025-03-02T18:16:46.143Z (over 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# protoc
This image can be used to generate protobuf and grpc code for various languages.
## Usages
### Go
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --gofast_out=. *.proto
```
### Elixir
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --elixir_out=. *.proto
```
_gRPC:_
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --elixir_out=plugins=grpc:. *.proto
```
### Rust
_gRPC:_
```bash
$ docker run --rm -it -u $(id -u):$(id -g) -v $PWD:/src:rw aphistic/protoc --rust_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_rust_plugin` *.proto
```