Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #6 add xdebug host address and dns for host trhought internal n… #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erild
Copy link

@erild erild commented Mar 18, 2018

Add xdebug remote host through internal network to php config
Add remote_host DNS to host file

echo "XDebug disabled";
fi

if [ $REMOTE_HOST_ENABLE == "true" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why configuring this variable if xdebug is disabled ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in case you need the DNS for the host for something else (no more need for the external_host with the ip of the host, you can use the docker internal network)

@@ -10,6 +10,7 @@ RUN apt-get update -qq \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_host=XDEBUG_REMOTE_HOST" >> /usr/local/etc/php/conf.d/xdebug.ini \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it's a specific configuration it's better to add a specific file like

ADD config/custom-php.ini /usr/local/etc/php/conf.d/custom-php.ini

@nassimkirouane nassimkirouane self-requested a review March 19, 2018 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants