Skip to content

Commit 01aa42c

Browse files
committed
Install XDebug.
1 parent 90d99f4 commit 01aa42c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

images/nginx/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM tutum/nginx:latest
22

33
# Install packages
44
RUN apt-get update
5-
RUN apt-get install -y supervisor curl wget php5-fpm php5-mysql php5-mcrypt php5-gd php5-memcached php5-curl
5+
RUN apt-get install -y supervisor curl wget php5-fpm php5-mysql php5-mcrypt php5-gd php5-memcached php5-curl php5-xdebug
66

77
# Install HHVM
88
RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | apt-key add -
@@ -18,10 +18,11 @@ RUN mkdir -p /var/run/hhvm
1818

1919
# Add configuration files
2020
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
21+
ADD php.ini /etc/php5/fpm/conf.d/40-custom.ini
2122

2223
# Expose volumes
2324
VOLUME ["/var/www", "/etc/nginx/sites-enabled"]
2425

25-
EXPOSE 80
26+
EXPOSE 80 9000
2627

2728
CMD ["/usr/bin/supervisord"]

images/nginx/php.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
; Enable XDebug
2+
zend_extension = xdebug.so
3+
4+
; XDebug configuration
5+
xdebug.remote_enable = 1
6+
xdebug.renite_enable = 1
7+
xdebug.max_nesting_level = 1000
8+
xdebug.profiler_enable_trigger = 1
9+
xdebug.profiler_output_dir = "/var/log"

0 commit comments

Comments
 (0)