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
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ Supported tags:
* mobtitude/php-xdebug:7.2-apache
* mobtitude/php-xdebug:7.2-cli
* mobtitude/php-xdebug:7.2-fpm

* mobtitude/php-xdebug:8.1-apache
* mobtitude/php-xdebug:8.1-cli
* mobtitude/php-xdebug:8.1-fpm
* mobtitude/php-xdebug:8.2-apache
* mobtitude/php-xdebug:8.2-cli
* mobtitude/php-xdebug:8.2-fpm
* mobtitude/php-xdebug:8.3-apache
* mobtitude/php-xdebug:8.3-cli
* mobtitude/php-xdebug:8.3-fpm

Build from source
-------------------
Expand Down Expand Up @@ -84,4 +92,4 @@ FAQ
Q: Why images don't have specific PHP version like `7.2.2` but only major and minor version `7.2`?

A: It is because images in this repo have always the newest possible patch version of PHP based on official Docker PHP images.
For example for `mobtitude/php-xdebug:7.2-apache` you can expect that it is always the newest PHP version available in official Docker Registry and it is automatically updated when official PHP Docker images are updated. The newest possible PHP version at the time of writing is 7.2.2, but will be automatically updated to 7.2.3 when official PHP Docker images are updated.
For example for `mobtitude/php-xdebug:7.2-apache` you can expect that it is always the newest PHP version available in official Docker Registry and it is automatically updated when official PHP Docker images are updated. The newest possible PHP version at the time of writing is 7.2.2, but will be automatically updated to 7.2.3 when official PHP Docker images are updated.
4 changes: 2 additions & 2 deletions bin/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
#

# PHP Versions that will be generated
#php_versions=( "8.0" "7.4" "7.2" "7.1" "7.0" "5.6")
php_versions=( "8.2" "8.1" "8.0" "7.4" "7.2" )
php_versions=( "8.3" "8.2" "8.1" "8.0" "7.4" "7.2" )

# 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 @@ -16,6 +15,7 @@ php_docker_suffix=( "cli" "apache" "fpm" )
# PHP_VERSION => XDEBUG_VERSION
declare -A xdebug_versions
xdebug_versions=(
["8.3"]="xdebug-3.3.1"
["8.2"]="xdebug-3.3.1"
["8.1"]="xdebug-3.1.3"
["8.0"]="xdebug-3.1.3"
Expand Down
19 changes: 19 additions & 0 deletions build/8.3-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:8.3-apache
MAINTAINER 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.3.1 \
&& 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
13 changes: 13 additions & 0 deletions build/8.3-apache/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[xdebug]
zend_extension=xdebug.so

xdebug.cli_color=1
xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.trigger_value=StartXDebug

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

xdebug.discover_client_host=true
xdebug.client_port=9003
19 changes: 19 additions & 0 deletions build/8.3-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:8.3-cli
MAINTAINER 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.3.1 \
&& 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
13 changes: 13 additions & 0 deletions build/8.3-cli/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[xdebug]
zend_extension=xdebug.so

xdebug.cli_color=1
xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.trigger_value=StartXDebug

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

xdebug.discover_client_host=true
xdebug.client_port=9003
19 changes: 19 additions & 0 deletions build/8.3-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:8.3-fpm
MAINTAINER 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.3.1 \
&& 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
13 changes: 13 additions & 0 deletions build/8.3-fpm/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[xdebug]
zend_extension=xdebug.so

xdebug.cli_color=1
xdebug.mode=debug
xdebug.start_with_request=trigger
xdebug.trigger_value=StartXDebug

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

xdebug.discover_client_host=true
xdebug.client_port=9003