This is a Docker image for helping developers to build PHP 7.4 development environment easily.
To be easy to build your PHP-7.4 dev easily, this is an option for developers to build this environment happily.
We assume that you've an Docker command installed on your operating system.
Using the following command to download this Docker image.
peter279k/php7.4-devUsing the following command to check this image is added currently in your Docker repositories.
docker images | grep peter279k/php7.4-devClone the PHP source code reposirory via git command then running cd php-src.
git clone https://github.com/php/php-src.git && cd php-srcRunning Docker command to mount php-src directory and enter into this image via intercative shell
docker run -it -v $(pwd):/root/PHP-7.4 peter279k/php7.4-dev:CURRENT_TAG_NAMEUsing cd /root/PHP-7.4 to change current directory to the PHP source code repositoy folder
Running following shell script to compile a PHP binary for Travis CI build
git checkout PHP-7.4 && ./travis/compile.shOnce compiling PHP source code is done, you can use following comand to check this.
sapi/cli/php -vHappy coding!