All inclusive protoc suite, powered by Docker and Alpine Linux.
- protobuf 3.4.1
- gRPC 1.6.1
- Google Well Known Types are automatically included (via
google/
) - Go related tools compiled with 1.8.1, gRPC support is built-in:
- github.com/golang/protobuf/protoc-gen-go
- github.com/gogo/protobuf/protoc-gen-gofast
- github.com/gogo/protobuf/protoc-gen-gogo
- github.com/gogo/protobuf/protoc-gen-gogofast
- github.com/gogo/protobuf/protoc-gen-gogofaster
- github.com/gogo/protobuf/protoc-gen-gogoslick
- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
- github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
- C
- C++
- C#
- Java / JavaNano (Android)
- JavaScript
- Objective-C
- Python
- Ruby
- Go
- Swift 4
- Rust
$ docker run --rm hughestech/docker-protobuf --help
Usage: /usr/bin/protoc [OPTION] PROTO_FILES
Don't forget you need to bind mount your files:
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) hughestech/docker-protobuf --python_out=. -I. myfile.proto
They are embedded in the image and are included by protoc
automatically.
They accessible via google/protobuf/
:
syntax = "proto3";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
gogo.proto
is embedded in the image and can be included with:
syntax = "proto3";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
The current image is about ~130mb and one layer. Most the space is spent on Go tools. All the binaries are UPX'ed. Including the Swift stdlib.