Add Xdebug to the development image.

This commit is contained in:
Michael Stenta 2018-12-04 14:23:12 -05:00
parent c353068bf4
commit 759b772d8c
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,12 @@ FROM farmos/farmos:7.x-1.x
# Set the farmOS version to the development branch.
ENV FARMOS_VERSION 7.x-1.x
# Install Xdebug.
RUN yes | pecl install xdebug \
&& 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
# Install git and unzip for use by Drush Make.
RUN apt-get update && apt-get install -y git unzip

View File

@ -20,3 +20,5 @@ services:
- './www:/var/www/html'
ports:
- '80:80'
environment:
XDEBUG_CONFIG: remote_host=172.17.0.1