An open API service indexing awesome lists of open source software.

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.

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!