Skip to content

Commit 0264ba2

Browse files
committed
Generated Dockerfiles for PHP 5.6, 7.0, 7.1 and 7.2.
1 parent 35d2a34 commit 0264ba2

24 files changed

Lines changed: 252 additions & 0 deletions

File tree

build/5.6-apache/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:5.6-apache
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
RUN pecl channel-update pecl.php.net \
5+
&& pecl install xdebug-2.5.5 \
6+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/5.6-apache/xdebug.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=1
5+
xdebug.profiler_enable=0
6+
xdebug.profiler_enable_trigger=1
7+
8+
xdebug.profiler_output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.remote_enable=1
12+
xdebug.remote_connect_back=1
13+
xdebug.remote_port=9000

build/5.6-cli/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:5.6-cli
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
RUN pecl channel-update pecl.php.net \
5+
&& pecl install xdebug-2.5.5 \
6+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/5.6-cli/xdebug.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=1
5+
xdebug.profiler_enable=0
6+
xdebug.profiler_enable_trigger=1
7+
8+
xdebug.profiler_output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.remote_enable=1
12+
xdebug.remote_connect_back=1
13+
xdebug.remote_port=9000

build/5.6-fpm/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:5.6-fpm
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
RUN pecl channel-update pecl.php.net \
5+
&& pecl install xdebug-2.5.5 \
6+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/5.6-fpm/xdebug.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=1
5+
xdebug.profiler_enable=0
6+
xdebug.profiler_enable_trigger=1
7+
8+
xdebug.profiler_output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.remote_enable=1
12+
xdebug.remote_connect_back=1
13+
xdebug.remote_port=9000

build/7.0-apache/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.0-apache
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
RUN pecl channel-update pecl.php.net \
5+
&& pecl install xdebug-2.6.0 \
6+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/7.0-apache/xdebug.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=1
5+
xdebug.profiler_enable=0
6+
xdebug.profiler_enable_trigger=1
7+
8+
xdebug.profiler_output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.remote_enable=1
12+
xdebug.remote_connect_back=1
13+
xdebug.remote_port=9000

build/7.0-cli/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:7.0-cli
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
RUN pecl channel-update pecl.php.net \
5+
&& pecl install xdebug-2.6.0 \
6+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
7+
8+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/7.0-cli/xdebug.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=1
5+
xdebug.profiler_enable=0
6+
xdebug.profiler_enable_trigger=1
7+
8+
xdebug.profiler_output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.remote_enable=1
12+
xdebug.remote_connect_back=1
13+
xdebug.remote_port=9000

0 commit comments

Comments
 (0)