https://github.com/peter279k/php7.4-dev-env
This is a Docker image for helping developers to build PHP 7.4 development environment easily.
https://github.com/peter279k/php7.4-dev-env
docker-command docker-image php-source php7
Last synced: 7 months ago
JSON representation
This is a Docker image for helping developers to build PHP 7.4 development environment easily.
- Host: GitHub
- URL: https://github.com/peter279k/php7.4-dev-env
- Owner: peter279k
- Created: 2019-06-05T06:59:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T10:21:49.000Z (over 6 years ago)
- Last Synced: 2025-02-10T07:13:57.606Z (9 months ago)
- Topics: docker-command, docker-image, php-source, php7
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php7.4-dev-env
This is a Docker image for helping developers to build PHP 7.4 development environment easily.
# Introduction
To be easy to build your PHP-7.4 dev easily, this is an option for developers to build this environment happily.
# Usage
## Step 1
We assume that you've an Docker command installed on your operating system.
## Step 2
Using the following command to download this Docker image.
```BASH
peter279k/php7.4-dev
```
## Step 3
Using the following command to check this image is added currently in your Docker repositories.
```BASH
docker images | grep peter279k/php7.4-dev
```
## Step 4
Clone the PHP source code reposirory via `git` command then running `cd php-src`.
```BASH
git clone https://github.com/php/php-src.git && cd php-src
```
## Step 5
Running Docker command to mount php-src directory and enter into this image via intercative shell
```BASH
docker run -it -v $(pwd):/root/PHP-7.4 peter279k/php7.4-dev:CURRENT_TAG_NAME
```
## Step 6
Using `cd /root/PHP-7.4` to change current directory to the PHP source code repositoy folder
## Step 7
Running following shell script to compile a PHP binary for Travis CI build
```BASH
git checkout PHP-7.4 && ./travis/compile.sh
```
## Step 8
Once compiling PHP source code is done, you can use following comand to check this.
```BASH
sapi/cli/php -v
```
Happy coding!