The protoc compiler with .proto files and plugins.
1.5K
The protocol buffer compiler protoc with .proto files and plugins:
docker run --rm -v $(pwd):/code -w /code soslanco/go-protoc:latest \
--go_out . --go_opt paths=source_relative \
--go-grpc_out . --go-grpc_opt paths=source_relative \
--grpc-gateway_out . \
--grpc-gateway_opt logtostderr=true \
--grpc-gateway_opt paths=source_relative \
--openapiv2_out . \
--openapiv2_opt logtostderr=true \
helloworld.proto
output:
helloworld.pb.go
helloworld.pb.gw.go
helloworld.swagger.json
helloworld_grpc.pb.go
docker run --rm -v $(pwd):/code -w /code --entrypoint protoc-go-inject-tag soslanco/go-protoc:latest -input="*.pb.go"
Generate API documentation.
docker run --rm -v $(pwd):/data ghcr.io/redocly/redoc/cli build helloworld.swagger.json -o helloworld.html
Content type
Image
Digest
sha256:086fd8d7f…
Size
38 MB
Last updated
22 days ago
docker pull soslanco/go-protoc