Skip to content

Commit fffaf84

Browse files
committed
Add support for 8.2
1 parent ff4e4f3 commit fffaf84

7 files changed

Lines changed: 98 additions & 1 deletion

File tree

bin/generate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# PHP Versions that will be generated
88
#php_versions=( "8.0" "7.4" "7.2" "7.1" "7.0" "5.6")
9-
php_versions=( "8.1" "8.0" "7.4" "7.2" )
9+
php_versions=( "8.2" "8.1" "8.0" "7.4" "7.2" )
1010

1111
# PHP variants that will be generated for each PHP version
1212
# final source image will be generated as follow: php:7.2-cli, php:7-2-apache and php:7.2-fpm
@@ -16,6 +16,7 @@ php_docker_suffix=( "cli" "apache" "fpm" )
1616
# PHP_VERSION => XDEBUG_VERSION
1717
declare -A xdebug_versions
1818
xdebug_versions=(
19+
["8.2"]="xdebug-3.3.1"
1920
["8.1"]="xdebug-3.1.3"
2021
["8.0"]="xdebug-3.1.3"
2122
["7.4"]="xdebug-2.9.1"

build/8.2-apache/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.2-apache
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
# php intl extension
5+
RUN apt-get update \
6+
&& apt-get install -y libicu-dev \
7+
&& docker-php-ext-install intl \
8+
&& docker-php-ext-install pdo_mysql \
9+
&& docker-php-source delete \
10+
&& apt-get remove -y libicu-dev \
11+
&& apt-get autoremove -y \
12+
&& apt-get clean \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
RUN pecl channel-update pecl.php.net \
16+
&& pecl install xdebug-3.3.1 \
17+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
18+
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/8.2-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/8.2-cli/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.2-cli
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
# php intl extension
5+
RUN apt-get update \
6+
&& apt-get install -y libicu-dev \
7+
&& docker-php-ext-install intl \
8+
&& docker-php-ext-install pdo_mysql \
9+
&& docker-php-source delete \
10+
&& apt-get remove -y libicu-dev \
11+
&& apt-get autoremove -y \
12+
&& apt-get clean \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
RUN pecl channel-update pecl.php.net \
16+
&& pecl install xdebug-3.3.1 \
17+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
18+
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/8.2-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/8.2-fpm/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.2-fpm
2+
MAINTAINER Przemek Szalko <przemek@mobtitude.com>
3+
4+
# php intl extension
5+
RUN apt-get update \
6+
&& apt-get install -y libicu-dev \
7+
&& docker-php-ext-install intl \
8+
&& docker-php-ext-install pdo_mysql \
9+
&& docker-php-source delete \
10+
&& apt-get remove -y libicu-dev \
11+
&& apt-get autoremove -y \
12+
&& apt-get clean \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
RUN pecl channel-update pecl.php.net \
16+
&& pecl install xdebug-3.3.1 \
17+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
18+
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/8.2-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

0 commit comments

Comments
 (0)