Download docker php xdebug7/14/2023 On some older versions of Composer, the default cache director can be located at ~/. The default values defined in docker-compose.yml match the default values for the composer and yarn directories:Ĭomposer cache directory: ~/.cache/composer Configuring you package manager ¶Ĭomposer and Yarn caches are shared between the host and the containers to accelerate the installation of Akeneo PIM dependencies. You won’t face this problem on Mac OS and Windows hosts, as those systems use a VM between the host and Docker, which already operates with appropriate UID/GID. Otherwise you’ll end up with a non-working PIM. Xdebug is a PHP extension that needs to be installed on your container. git clone Latest Release Xdebug 3.2.1 Release date: Linux, macOS: source Windows binaries: PHP 8.0 VS16 (64 bit) PHP 8.0 VS16 TS (64 bit) PHP 8.1 VS16 (64 bit) PHP 8.1 VS16 TS (64 bit) PHP 8.2 VS16 (64 bit) PHP 8. Note that we use the value to refer to the remote host. So, on Linux hosts, it is mandatory that the user of your host machine has 1000:1000 as UID and GID too. As you can see, we use the preconfigured Docker image comprising the Apache web server and PHP 7.4 with Xdebug. These containers all have a default user with 1000:1000 as UID:GID. 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. The PIM root is available as /srv/pim inside the containers. 1 I'm attempting to setup unit tests and test coverage for a PHP 7.4 project using PHPUnit 9.x. The PIM is shared with the containers as a volume. Running the Container Run docker compose up from the project directory Note: the above command will only work on versions newer than 3.6. Docker-compose 1.24+: docker-compose installation Project Setup Run composer create-project jlucki/docker-php-dev-env 'projectname' Alternatively, download the files from this repo and copy them to your project directory.
0 Comments
Leave a Reply. |