https://github.com/rbas/docker-php
Docker build files for testing the latest versions of PHPNG, HHVM and HippyVM
https://github.com/rbas/docker-php
Last synced: over 1 year ago
JSON representation
Docker build files for testing the latest versions of PHPNG, HHVM and HippyVM
- Host: GitHub
- URL: https://github.com/rbas/docker-php
- Owner: rbas
- Created: 2014-06-18T09:36:50.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-23T12:48:52.000Z (about 12 years ago)
- Last Synced: 2023-03-10T19:39:43.733Z (over 3 years ago)
- Language: Shell
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-php
==========
Docker build files for testing the latest versions of PHPNG, HHVM and HippyVM
Installation
------------
In order to use the images you will need to have docker installed on your OS (https://www.docker.io/gettingstarted/#h_installation).
And you will need a clone of this repository
```
git clone https://github.com/slaff/docker-php.git
```
Building containers
-------------------
After that you have to build first the dev container and then the others.
The following example demonstrates how to build the PHPNG container
First build the dev container
```
cd /docker-php
cd Dev
sudo docker build -t dev .
```
After some hours you will have ready to use container that has almost everything needed for compiling and testing.
Then build the PHPNG container
```
cd /docker-php
cd PHPNG
sudo docker build -t phpng .
```
Running containers
------------------
If the build is ready you can check it by running it:
```
sudo docker run -a stdin -a stdout -a stderr -i -t phpng /bin/bash
```
This will show a prompt like this:
root@b5f338zyc9f65:/ #
The PHPNG compiled PHP is located under /home/dev/phpng
```
root@b5f338zyc9f65:/# cd /home/dev/phpng
```