

Clean and well-structured Dockerfiles ( Dockerfile).Easy to install/remove software’s in Containers using environment variables.Can use Laradock per project, or single Laradock for all projects.Pre-configured NGINX to host any code at your root directory.All Images extend from an official base Image.Easy to customize any container, with simple edits to the Dockerfile.Each software runs on its own container: PHP-FPM, NGINX, PHP-CLI….Run your own stack: Memcached, HHVM, RabbitMQ….Choose your favorite database engine: MySQL, Postgres, MariaDB….It supports a variety of common services, all pre-configured to provide a ready PHP development environment. To install a PECL extension, use pecl install to download and compile it, then use docker-php-ext-enable to enable it: FROM php:7.Laradock is a full PHP development environment for Docker. Some extensions are not provided with the PHP source, but are instead available through PECL.

This is actually pointed out in the documentation of the php image: PECL extensions So, your working Dockerfile would be: FROM php:7.4

Which would be what docker-php-ext-enable is meant to do.

You should add "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so" to php.ini Using PECL is just another way of installing extensions, so, by trying to use docker-php-ext-install after a pecl install you are trying to do twice the same thing.Īnd as the end of the pecl install points out: How might I go about getting xdebug-3.1.5 installed so I can get a coverage report from PHPUnit?Īs the name points out the command docker-php-ext-install is meant to install a PHP extension – an. I've also tried skipping the second command altogether, but I still get the warning from phpunit about no coverage driver. Running docker-php-ext-install xdebug-3.1.5 gives the same kind of error. When these are run, the second one errors out with From a number of other threads on Stack Overflow and other sites, it appears that most people are suggesting running these two commands: pecl install xdebug-3.1.5 I've been trying to get Xdebug 3.1.5 installed, as it's the latest version that supports PHP 7.4. At this point, the tests are running, but a coverage report is skipped with the warning: I've been able to get it working locally, but I'm having a difficult time getting it running in a pipeline runner on GitLab, which is just using Docker under the hood. I'm attempting to setup unit tests and test coverage for a PHP 7.4 project using PHPUnit 9.x.
