https://github.com/poabob/protoc-builder
Building protoc with Docker image
https://github.com/poabob/protoc-builder
Last synced: 4 months ago
JSON representation
Building protoc with Docker image
- Host: GitHub
- URL: https://github.com/poabob/protoc-builder
- Owner: POABOB
- Created: 2022-10-29T03:26:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T15:54:16.000Z (over 3 years ago)
- Last Synced: 2025-07-20T16:42:22.697Z (11 months ago)
- Language: Dockerfile
- Size: 6.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# protoc-builder
## 使用方式
### Build Image
- 打包成鏡像,看後續你有沒有需要上傳Docker Hub
```bash=
docker build --no-cache --pull --force-rm -t poabob/protoc-builder:latest .
```
- Push 到 Dockerhub(Push 前請先有Dockerhub帳號)
```bash=
docker push poabob/protoc-builder:latest
```
### Generate Proto
```bash=
sudo docker run --rm -v $(pwd):$(pwd) -w $(pwd) -t poabob/protoc-builder --proto_path=. --micro_out=. --go_out=:. ./protos/base/base.proto
```