Sign inSign up

gwihlidal/protoc

By gwihlidal

•Updated over 8 years ago

Docker image with protobuf compiler and various language plugins

Image
1

10K+

gwihlidal/protoc repository overview

⁠docker-protoc

Docker image with protobuf compiler and various language plugins

Hub: https://hub.docker.com/r/gwihlidal/protoc/⁠

⁠Usage

$ docker run --rm gwihlidal/protoc --help
Usage: /usr/bin/protoc [OPTION] PROTO_FILES
$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) gwihlidal/protoc --cpp_out=. -I. your.proto

⁠Supported languages and tools

  • C
  • C++
  • C#
  • Rust
  • Python
  • Ruby
  • Go
  • Java / JavaNano
  • JavaScript
  • Objective-C
  • Swift 4
  • Swagger
  • grpc-gateway

⁠Google Types

Google well known types are embedded and protoc will include them automatically. https://developers.google.com/protocol-buffers/docs/reference/google.protobuf⁠

The types are available in google/protobuf/:

syntax = "proto3";
import "google/protobuf/timestamp.proto";

⁠Versions

  • alpine: 3.7
  • grpc: 1.7.2
  • grpc_java: 1.8.0
  • protobuf: 3.5.1
  • protobuf-c: 1.3.0
  • swift: 4.0.3
  • llvm: 5.0.0
  • swift-protobuf: 1.0.2
  • rust-protobuf: 1.4.3
  • go: 1.9

⁠Repositories

Tag summary

Content type

Image

Digest

Size

63.4 MB

Last updated

over 8 years ago

docker pull gwihlidal/protoc