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

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

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.