Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
/ docker-protoc Public archive
forked from namely/docker-protoc

Docker images for generating protocol buffer definitions

License

Notifications You must be signed in to change notification settings

beautydate/docker-protoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protocol Buffer Compiler Containers

This repository contains Dockerfiles that build protocol buffer generation scripts for Go and Ruby. Removing the need to setup Protoc (v3) on your local machine. It relies on setting a simple volume to the docker container, and it will take care of the rest.

Usage

Pull the container for the language you want to compile:

$ docker pull namely/protoc-ruby

# OR

$ docker pull namely/protoc-go

After that, travel to the directory that contains your .proto definition files.

So if you have a directory: /Users/me/project/protobufs/ that has: myproto.proto, you'd want to do this:

cd ~/my_project/protobufs
docker run -v `pwd`:/defs namely/protoc-ruby

The container automatically puts the compiled files into directories for each language. So for Golang, the files go into a directory "pb-go"; For ruby the directory is "pb-ruby".

Supported GRPC Plugins

  • Ruby
  • Go
  • Objective-C
  • C#
  • Java

Profit.

That's it.

Contributing

If you make changes, or add a container for another language compiler, this repo has simple scripts that can build projects. You can run:

$ ./build.sh [-t <tag name>]

This will build all of the known containers.

$ ./push.sh

This will build and push the containers to the Namely registry located on DockerHub.

About

Docker images for generating protocol buffer definitions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 97.6%
  • Protocol Buffer 2.4%