Skip to content

Commit

Permalink
Complete Docker Xdebug config
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jan 29, 2018
1 parent 073ca1b commit 43b6dfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions storage/tmp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
13 changes: 8 additions & 5 deletions tools/docker/containers/www/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ RUN docker-php-source extract && \
docker-php-ext-install -j$(nproc) mcrypt snmp intl bcmath gd gettext zip pdo_mysql && \
pecl install ds rrd xdebug && \
printf "\n" | pecl install yaml && \
echo "extension=ds.so\nextension=rrd.so\nextension=yaml.so\n" >/usr/local/etc/php/conf.d/local-ixpmanager.ini && \
docker-php-source delete
RUN curl -so /usr/local/bin/composer.phar https://getcomposer.org/download/1.6.2/composer.phar && \
chmod a+x /usr/local/bin/composer.phar
RUN echo "extension=ds.so\nextension=rrd.so\nextension=yaml.so\n" >/usr/local/etc/php/conf.d/local-ixpmanager.ini && \
echo "[xdebug]\nzend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)\n" >/usr/local/etc/php/conf.d/local-ixpmanager-xdebug.ini && \
echo "xdebug.remote_enable=1\nxdebug.remote_port=9001\nxdebug.remote_autostart=0\nxdebug.idekey=PHPSTORM\n" >>/usr/local/etc/php/conf.d/local-ixpmanager-xdebug.ini && \
docker-php-source delete && \
curl -so /usr/local/bin/composer.phar https://getcomposer.org/download/1.6.2/composer.phar && \
chmod a+x /usr/local/bin/composer.phar
echo "xdebug.profiler_enable=0\nxdebug.profiler_enable_trigger=1\nxdebug.profiler_output_dir=/srv/ixpmanager/storage/tmp\n" >>/usr/local/etc/php/conf.d/local-ixpmanager-xdebug.ini && \
echo "xdebug.auto_trace=0\nxdebug.trace_enable_trigger=1\nxdebug.trace_output_dir=/srv/ixpmanager/storage/tmp\n" >>/usr/local/etc/php/conf.d/local-ixpmanager-xdebug.ini
RUN /usr/sbin/a2enmod rewrite
COPY apache-site.conf /etc/apache2/sites-available/000-default.conf
WORKDIR /srv/ixpmanager

0 comments on commit 43b6dfb

Please sign in to comment.