This docker container includes PHP 7.0.13 with most extensions enabled and also Zend's opcache and xdebug optionally enabled
# docker pull fafan/php
# docker images
# git clone https://github.com/fafan/docker.git --branch php-7.0.13
# cd docker
# docker build -t fafan/php .
# docker images
Pre-built runner script is example usage to clone github repository and then run composer setup automatically. We can add test script and deployment script to achieve automatic testing and continuous delivery system.
In this example, runner script is executed as user 'php'
# docker run --rm -v /root/runner.sh:/runner.sh fafan/php su -c \
"/runner.sh <user> <pass> <owner> <repository> <branch>" php
$ php -c /usr/local/lib/opcache.ini -v
$ php -c /usr/local/lib/xdebug.ini -v
Content type
Image
Digest
Size
164.4 MB
Last updated
almost 10 years ago
docker pull fafan/php