Skip to content

abhi1010/protobuf-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Protobuf on Docker

The steps

We are going through two steps here:

  1. Creating protoc by compiling C++ files
  2. Compiling C++ implementation for python

For distros

Dockerfiles are available for the following Operating Systems:

  • Centos 7
  • Fedora 23
  • Ubuntu 15

However, once you have a dockerfile running for one version, you should easily be able to change the OS to any version - at the top.

Where to find the files

  • protoc compiler is available at /ws/protoc-3.2 folder inside the images
  • python version (compiled from c++) is available at /ws/protobuf-3.0.0-beta-3.2/python/dist/

You can copy out the files using the following commands:

id=$(sudo docker create <image_name>)
sudo docker cp $id:/ws/protoc-3.2 ./
sudo docker cp $id:/ws/protobuf-3.0.0-beta-3.2/python/dist/*.tar ./

Just remember to change the rights as the files will belong to root by default.

About

Docker files for protobuf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages