Automate xdebug installation and simplify instructions (#1630)

This commit is contained in:
Abdelrahman Omran
2018-06-24 03:46:12 +02:00
committed by Shao Yu-Lung (Allen)
parent 4673ba7b31
commit 600a6154b4
3 changed files with 12 additions and 31 deletions

View File

@ -238,6 +238,10 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# ADD for REMOTE debugging
COPY ./xdebug.ini /etc/php/${PHP_VERSION}/cli/conf.d/xdebug.ini
RUN sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /etc/php/${PHP_VERSION}/cli/conf.d/xdebug.ini && \
sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /etc/php/${PHP_VERSION}/cli/conf.d/xdebug.ini && \
sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /etc/php/${PHP_VERSION}/cli/conf.d/xdebug.ini
###########################################################################
# Blackfire:
###########################################################################