Skip to content

Commit 55e4495

Browse files
author
Raghavendra Raju
committed
initial commit
0 parents  commit 55e4495

File tree

6 files changed

+53
-0
lines changed

6 files changed

+53
-0
lines changed

5.3/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM phpplatform/php-apache:5.3
2+
3+
RUN mkdir -p /tmp/xdebug && cd /tmp/xdebug \
4+
&& curl -O https://xdebug.org/files/xdebug-2.2.5.tgz && tar -xzf xdebug-2.2.5.tgz && cd xdebug-2.2.5 \
5+
&& phpize \
6+
&& ./configure --enable-xdebug \
7+
&& make && make install \
8+
&& mkdir -p /usr/local/etc/php/conf.d/ \
9+
&& echo "export PHP_INI_SCAN_DIR=/usr/local/etc/php/conf.d" >> ~/.bashrc \
10+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" >> /usr/local/etc/php/conf.d/xdebug.ini \
11+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
12+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
13+
14+
CMD ["apache2", "-DFOREGROUND"]

5.4/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM phpplatform/php-apache:5.4
2+
3+
RUN mkdir -p /tmp/xdebug && cd /tmp/xdebug \
4+
&& curl -O https://xdebug.org/files/xdebug-2.4.1.tgz && tar -xzf xdebug-2.4.1.tgz && cd xdebug-2.4.1 \
5+
&& phpize \
6+
&& ./configure --enable-xdebug \
7+
&& make && make install \
8+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
9+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
10+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
11+

5.5/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM phpplatform/php-apache:5.5
2+
3+
RUN yes | pecl install xdebug \
4+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
5+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
6+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
7+

5.6/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM phpplatform/php-apache:5.6
2+
3+
RUN yes | pecl install xdebug \
4+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
5+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
6+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
7+

7.0/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM phpplatform/php-apache:7.0
2+
3+
RUN yes | pecl install xdebug \
4+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
5+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
6+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
7+

7.1/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM phpplatform/php-apache:7.1
2+
3+
RUN yes | pecl install xdebug \
4+
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
5+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
6+
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
7+

0 commit comments

Comments
 (0)