Skip to content

Commit 7eefd78

Browse files
authored
Merge pull request #22 from samlitowitz/issues-21-add-support-for-php84-php85
Add support for PHP 8.4
2 parents 466f550 + 84db78c commit 7eefd78

File tree

7 files changed

+101
-1
lines changed

7 files changed

+101
-1
lines changed

bin/generate.sh

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

77
# PHP Versions that will be generated
8-
php_versions=( "8.3" "8.2" "8.1" )
8+
php_versions=( "8.4" "8.3" "8.2" "8.1" )
99

1010
# PHP variants that will be generated for each PHP version
1111
# final source image will be generated as follow: php:7.2-cli, php:7-2-apache and php:7.2-fpm
@@ -15,6 +15,7 @@ php_docker_suffix=( "cli" "apache" "fpm" )
1515
# PHP_VERSION => XDEBUG_VERSION
1616
declare -A xdebug_versions
1717
xdebug_versions=(
18+
["8.4"]="xdebug-3.4.5"
1819
["8.3"]="xdebug-3.3.1"
1920
["8.2"]="xdebug-3.3.1"
2021
["8.1"]="xdebug-3.1.3"

build/8.4-apache/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.4-apache
2+
LABEL org.opencontainers.image.authors="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.4.5 \
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.4-apache/xdebug.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=0
5+
xdebug.show_local_vars=1
6+
xdebug.start_with_request=trigger
7+
8+
xdebug.output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.mode=develop,debug
12+
xdebug.discover_client_host=1
13+
xdebug.client_port=9000
14+

build/8.4-cli/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.4-cli
2+
LABEL org.opencontainers.image.authors="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.4.5 \
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.4-cli/xdebug.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=0
5+
xdebug.show_local_vars=1
6+
xdebug.start_with_request=trigger
7+
8+
xdebug.output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.mode=develop,debug
12+
xdebug.discover_client_host=1
13+
xdebug.client_port=9000
14+

build/8.4-fpm/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM php:8.4-fpm
2+
LABEL org.opencontainers.image.authors="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.4.5 \
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.4-fpm/xdebug.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[xdebug]
2+
zend_extension=xdebug.so
3+
4+
xdebug.cli_color=0
5+
xdebug.show_local_vars=1
6+
xdebug.start_with_request=trigger
7+
8+
xdebug.output_dir="/tmp"
9+
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
10+
11+
xdebug.mode=develop,debug
12+
xdebug.discover_client_host=1
13+
xdebug.client_port=9000
14+

0 commit comments

Comments
 (0)