OpenConext / OpenConext-BaseContainers

Docker base images used by all OpenConext projects that use docker containers
Apache License 2.0
0 stars 1 forks source link

Xdebug is not enabled #3

Open MKodde opened 1 year ago

MKodde commented 1 year ago

Hi!

I could not help myself, and had to give the DevConf based Stepup dev-env a spin! My use case was to debug an issue we encountered in Stepup-Gateway. But that's not important now.

After a quite streamlined setup, only hindered by a missing Yubico config file and a local occupant on port 80, I had a running Stepup dev env with Gateway serving my local code :mechanical_arm:

I did however noticed that Xdebug was not enabled on the gateway-dev image. After investigating, I noticed that Xdebug was installed, but not enabled.

The && docker-php-ext-enable xdebug portion of the code pasted below is not executed. Suggesting the pecl install command returned a non-zero response. Should be an easy fix by making it into a twoliner, or by using the ; separator?

RUN pecl install xdebug-2.9.0 && docker-php-ext-enable xdebug

https://github.com/OpenConext/OpenConext-BaseContainers/blob/ee516e9b3f89b5ef9da54095f64dcb0374779ab0/php72-apache2-node16-composer2/Dockerfile#L8C1-L8C62