All inclusive protoc suite, powered by Docker and Alpine Linux.
I made this fork to add multiple extentions. Maybe later I will try and PR them back to the original. For now this is experimental.
google/)$ docker run --rm mvmaasakkers/protoc --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) mvmaasakkers/protoc --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 ~189mb and one layer. Most the space is spent on Go tools. All the binaries are UPX'ed. Including the Swift stdlib.
Content type
Image
Digest
Size
81.4 MB
Last updated
over 7 years ago
docker pull mvmaasakkers/protoc