https://github.com/geertw/docker-php-ci
Dockerfiles for PHP CI purposes
https://github.com/geertw/docker-php-ci
docker-image php phpci
Last synced: 9 months ago
JSON representation
Dockerfiles for PHP CI purposes
- Host: GitHub
- URL: https://github.com/geertw/docker-php-ci
- Owner: geertw
- License: mit
- Created: 2016-08-13T14:39:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-07T19:19:41.000Z (almost 7 years ago)
- Last Synced: 2025-05-06T23:18:18.519Z (9 months ago)
- Topics: docker-image, php, phpci
- Language: Dockerfile
- Size: 22.5 KB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP CI Docker images
This repository contains Docker images for PHP 5.5 and higher which are based on the [official PHP Docker images](https://hub.docker.com/r/_/php/). These images were created specifically to use them for continious integration (Gitlab CI specifically), but they can be used for other purposes too.
These images contain the following additions to the vanilla PHP images:
* Version control packages (git, mercurial, subversion)
* composer
* node.js 12 and npm
* PHP extensions:
* curl
* gd
* gettext
* intl
* json
* mcrypt
* mbstring
* mysql (php-5.5 and php-5.6 images only)
* mysqlnd (php-7.0+ images)
* opcache
* pdo_mysql
* soap
* xsl
* zip
* xdebug
* sodium (php-7.2+ images)
## Pull images
The images are stored on [Docker Hub](https://hub.docker.com/r/geertw/docker-php-ci/). Use `docker pull geertw/docker-php-ci` to pull these images.
The following tags are available:
* 5.5
* 5.6
* 7.0
* 7.1
* 7.2
There are also tags without xdebug.
* 5.5-no-xdebug
* 5.6-no-xdebug
* 7.0-no-xdebug
* 7.1-no-xdebug
* 7.2-no-xdebug
## Build process
The Dockerfiles are stored in directories for each image version. Docker Hub builds new images automatically when this repository or the PHP base images are updated.
To build these images yourself, use:
```bash
docker build -t php-7.0 php-7.0/
docker build -t php-7.1 php-7.1/
docker build -t php-7.2 php-7.2/
```
etc.
## License
The Dockerfiles are licensed under the MIT license, see LICENSE for details.