To install Xdebug the following lines need to be added to the Dockerfile. The next thing is going to be installing and configuring Xdebug inside the docker container, and make it connect the host machine in that port. Waiting for debug server to connect on port 9003 Now the debugging client will be waiting for connections on our host machine, the following message will be prompted: There are thousands of articles for setting up debugging on a complex IDE like PHPStorm, but if you like minimal configurations like me, you can just download and run the minimal DBGp client from the official Xdebug website.Ī simple way of doing this would be: wget On some older versions of Composer, the default cache director can be located at ~/.This brief post will be more like a note for my future self, to know how to setup Xdebug for debugging complex problems on PHP code that is running inside a Docker container. 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. So, on Linux hosts, it is mandatory that the user of your host machine has 1000:1000 as UID and GID too. These containers all have a default user with 1000:1000 as UID:GID. The PIM root is available as /srv/pim inside the containers. The PIM is shared with the containers as a volume. Docker-compose 1.24+: docker-compose installation
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |