Docker image for generating PHP gRPC client
-
Create a work directory (
$WORK_DIR
) -
Put all the
.proto
files into the directory -
Invoke the builder
docker run -v $WORK_DIR:/work 9gag/grpc-php-builder
-
PHP clients will be generated at
$WORK_DIR/out
Take a look at the entrypoint.sh
and adapt it to your needs. This image is based on grpc/cxx
and only adds the PHP gRPC plugin which is located at /var/local/git/grpc/bins/opt/grpc_php_plugin
.