Skip to content

mythrnr/protobuf-compiler

Repository files navigation

protobuf-compiler

日本語

The tool to generate gRPC codes by docker.

⚠️ Now, PHP image cannnot build.
Issue: grpc/grpc#25725

Status

Build Image for Documenter Build Image for Golang Build Image for PHP Build Image for Python

Usage

docker-compose up

Building Images

Build and Push all images

make build

make push

About Makefile options

Key Default Description
go 1.16 Go Version in the image
pecl_grpc 1.37.0 PECL::Package::gRPC Version in the image(PECL::Package::gRPC
php 7.4 PHP Version in the image
protoc 3.15.8 protoc Version in the image(protocolbuffers/protobuf
python 3.9 Python Version in the image
service - If you build only certain things from docs , golang , php or python, specify when to push.

⚠️ Because PHP5 series is no longer supported, the version of pecl_grpc must be up to 1.33.1 to be able to build.

make build go=1.13 protoc=3.12

Specify target to build

  • If you build a specific image, you should also specify it at push time.
make golang go=1.16

# Good
make push service=golang go=1.16

# Not work
make push

License

NYSL Version 0.9982
See LICENCE