Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

# PHP Versions that will be generated
php_versions=( "8.3" "8.2" "8.1" )
php_versions=( "8.4" "8.3" "8.2" "8.1" )

# PHP variants that will be generated for each PHP version
# final source image will be generated as follow: php:7.2-cli, php:7-2-apache and php:7.2-fpm
Expand All @@ -15,6 +15,7 @@ php_docker_suffix=( "cli" "apache" "fpm" )
# PHP_VERSION => XDEBUG_VERSION
declare -A xdebug_versions
xdebug_versions=(
["8.4"]="xdebug-3.4.5"
["8.3"]="xdebug-3.3.1"
["8.2"]="xdebug-3.3.1"
["8.1"]="xdebug-3.1.3"
Expand Down
19 changes: 19 additions & 0 deletions build/8.4-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:8.4-apache
LABEL org.opencontainers.image.authors="Przemek Szalko <przemek@mobtitude.com>"

# php intl extension
RUN apt-get update \
&& apt-get install -y libicu-dev \
&& docker-php-ext-install intl \
&& docker-php-ext-install pdo_mysql \
&& docker-php-source delete \
&& apt-get remove -y libicu-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN pecl channel-update pecl.php.net \
&& pecl install xdebug-3.4.5 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
14 changes: 14 additions & 0 deletions build/8.4-apache/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[xdebug]
zend_extension=xdebug.so

xdebug.cli_color=0
xdebug.show_local_vars=1
xdebug.start_with_request=trigger

xdebug.output_dir="/tmp"
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"

xdebug.mode=develop,debug
xdebug.discover_client_host=1
xdebug.client_port=9000

19 changes: 19 additions & 0 deletions build/8.4-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:8.4-cli
LABEL org.opencontainers.image.authors="Przemek Szalko <przemek@mobtitude.com>"

# php intl extension
RUN apt-get update \
&& apt-get install -y libicu-dev \
&& docker-php-ext-install intl \
&& docker-php-ext-install pdo_mysql \
&& docker-php-source delete \
&& apt-get remove -y libicu-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN pecl channel-update pecl.php.net \
&& pecl install xdebug-3.4.5 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
14 changes: 14 additions & 0 deletions build/8.4-cli/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[xdebug]
zend_extension=xdebug.so

xdebug.cli_color=0
xdebug.show_local_vars=1
xdebug.start_with_request=trigger

xdebug.output_dir="/tmp"
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"

xdebug.mode=develop,debug
xdebug.discover_client_host=1
xdebug.client_port=9000

19 changes: 19 additions & 0 deletions build/8.4-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:8.4-fpm
LABEL org.opencontainers.image.authors="Przemek Szalko <przemek@mobtitude.com>"

# php intl extension
RUN apt-get update \
&& apt-get install -y libicu-dev \
&& docker-php-ext-install intl \
&& docker-php-ext-install pdo_mysql \
&& docker-php-source delete \
&& apt-get remove -y libicu-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN pecl channel-update pecl.php.net \
&& pecl install xdebug-3.4.5 \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
14 changes: 14 additions & 0 deletions build/8.4-fpm/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[xdebug]
zend_extension=xdebug.so

xdebug.cli_color=0
xdebug.show_local_vars=1
xdebug.start_with_request=trigger

xdebug.output_dir="/tmp"
xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"

xdebug.mode=develop,debug
xdebug.discover_client_host=1
xdebug.client_port=9000