GRPC PHP
1.71.0
|
This directory contains a number of docker images to assist testing the gRPC PECL extension against various different PHP environments.
To build all docker images:
Or to only build some selected images
Or to only print out individual docker build
commands
To run all tests:
Or to only run some selected images
Or to only print out individual docker run
commands
This image builds the full grpc
PECL extension (effectively the current release candidate), installs it against the current PHP version, and runs the unit tests.
Build grpc-ext
docker image:
Run image:
This image builds the grpc
PECL extension in a 'thin' way, only containing the gRPC extension source files. The gRPC C Core library is expected to be installed separately and dynamically linked. The extension is installed against the current PHP version.
This also allows us to compile our grpc
extension with some additional configure options, like --enable-tests
, which allows some additional unit tests to be run.
Build grpc-src
docker image:
Run image:
This image builds the grpc
extension against the current PHP version in an Alpine-Linux base image.
Build alpine
docker image:
Run image:
This image builds the grpc
extension against the GCC version in Centos7 base image. The default version of gcc in centos7 is gcc-4.8.5. Run scl enable devtoolset-7 bash
command to enable gcc-7.3.1.
Build centos7
docker image:
Run image:
Instead of using a general purpose base docker image provided by PHP, here we compile PHP itself from source. This will allow us to change some configure
options, like --enable-debug
. Then we proceed to build the full grpc
PECL extension and run the unit tests.
Build php-src
docker image:
Run image:
This image builds the grpc
extension against the current PHP version with ZTS enabled.
Build php-zts
docker image:
Run image:
This image builds the grpc
extension against the next future PHP version currently in alpha, beta or release candidate stage.
Build php-future
docker image:
Run image:
NOTE: PHP 5.x has reached the end-of-life state and is no longer supported.
This image tests pcntl_fork()
support and makes sure scripts using pcntl_fork()
don't freeze or crash.
Build grpc-ext
docker image:
Run image: