https://github.com/asynkron/docker-protoc
protoc packaged in docker
https://github.com/asynkron/docker-protoc
Last synced: about 2 months ago
JSON representation
protoc packaged in docker
- Host: GitHub
- URL: https://github.com/asynkron/docker-protoc
- Owner: asynkron
- License: apache-2.0
- Created: 2021-08-02T12:29:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T18:14:40.000Z (over 3 years ago)
- Last Synced: 2025-01-04T18:27:12.096Z (4 months ago)
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-protoc
protoc packaged in docker# Usage
* bash
```bash
docker run --rm -it -v `pwd`:/your-project-name -w /your-project-name AsynkronIT/protoc:latest -I=. --gogoslick_out=. shared/*.proto
docker run --rm -it -v `pwd`:/your-project-name -w /your-project-name AsynkronIT/protoc:latest -I=. --gograinv2_out=. shared/*.proto
```
* Makefile
```Makefile
root_dir:=$(CURDIR)
protoc:=docker run --rm -it \
-v $(root_dir):/your-project-name \
-w /your-project-name \
AsynkronIT/protoc:latestproto:
$(protoc) -I=. --gogoslick_out=. shared/*.proto
$(protoc) -I=. --gograinv2_out=. shared/*.proto
```# Build
```
docker build -t yourname:latest .
```
or if you want use `GOPROXY`
```
docker build -t yourname:latest --build-arg protoc_version=3.17.3 --build-arg=goproxy=https://goproxy.io,direct .
```
That's all.