A PHP-CLI for unit testing Laravel application.
2.1K
Docker image to run PHPUnit with Laravel on PHP 7.1/7.2/7.3/7.4.
The image is published on the Docker Hub at this address : https://hub.docker.com/r/jsunier/php-laravel-test.
This image contains multiple versions available for testing your code with PHPUnit and Laravel.
For now, there is only one available database adapters for the available PHP versions:
Every images include the latest version of composer.
List of PHP extensions installed:
| Extension / PHP version | 7.1 | 7.2 | 7.3 | 7.4 |
|---|---|---|---|---|
mbstring | ✅ | ✅ | ✅ | ✅ |
zip | ✅ | ✅ | ✅ | ✅ |
iconv | ✅ | ✅ | ✅ | ✅ |
opcache | ✅ | ✅ | ✅ | ✅ |
bcmath | ✅ | ✅ | ✅ | ✅ |
pdo_mysql | ✅ | ✅ | ✅ | ✅ |
pdo | ✅ | ✅ | ✅ | ✅ |
imagick | ✅ | ✅ | ✅ | ✅ |
gd | ✅ | ✅ | ✅ | ✅ |
mcrypt | ❌ | ❌ | ❌ | ❌ |
oci8 | ❌ | ❌ | ❌ | ❌ |
postgresql | ❌ | ❌ | ❌ | ❌ |
redis | ❌ | ❌ | ❌ | ❌ |
Additionally, there is hirak/prestissimo installed in all images to speed up composer install/update.
Images are compiled for these architectures:
arm32v7amd64jsunier/php-laravel-test:7.1-mysql or jsunier/php-laravel-test:7.1-mariadbjsunier/php-laravel-test:7.1-mysql-arm32v7 or jsunier/php-laravel-test:7.1-mariadb-arm32v7jsunier/php-laravel-test:7.2-mysql or jsunier/php-laravel-test:7.2-mariadbjsunier/php-laravel-test:7.2-mysql-arm32v7 or jsunier/php-laravel-test:7.2-mariadb-arm32v7jsunier/php-laravel-test:7.3-mysql or jsunier/php-laravel-test:7.3-mariadbjsunier/php-laravel-test:7.3-mysql-arm32v7 or jsunier/php-laravel-test:7.3-mariadb-arm32v7jsunier/php-laravel-test:7.4-mysql or jsunier/php-laravel-test:7.4-mariadb or jsunier/php-laravel-test:latest-mysql or jsunier/php-laravel-test:latest-mariadbjsunier/php-laravel-test:7.4-mysql-arm32v7 or jsunier/php-laravel-test:7.4-mariadb-arm32v7 or jsunier/php-laravel-test:latest-mysql-arm32v7 or jsunier/php-laravel-test:latest-mariadb-arm32v7Default value in Dockerfile's directives:
| Directive | Value |
|---|---|
WORKDIR | /app |
VOLUME | [ "/app" ] |
EXPOSE | 8000 |
CMD | [ "php", "/app/artisan", "serve", "--host", "0.0.0.0" ] |
The default user is laravel.
There is a Makefile available to simplify the creation of theses images.
You can change the values inside this file to set your custom repository, folders, tags, etc.
You need to have
makeinstalled (sudo apt install make)
$ make build-amd
$ make push-amd
$ make build-arm
$ make push-arm
To build these images, just go into the folder of you choice and run docker build . -t <your-image-name:your-tag>.
Example:
# cd amd64/php7.4/mysql
# docker build . -t my-awesome-phpunit-image
Content type
Image
Digest
Size
200.5 MB
Last updated
over 6 years ago
docker pull jsunier/php-laravel-test