diff --git a/README.md b/README.md index f38204e..defbc68 100644 --- a/README.md +++ b/README.md @@ -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 ------------------- @@ -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. \ No newline at end of file +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. diff --git a/bin/generate.sh b/bin/generate.sh index dd5b04c..78a4276 100755 --- a/bin/generate.sh +++ b/bin/generate.sh @@ -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 @@ -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" diff --git a/build/8.3-apache/Dockerfile b/build/8.3-apache/Dockerfile new file mode 100644 index 0000000..43b5f9c --- /dev/null +++ b/build/8.3-apache/Dockerfile @@ -0,0 +1,19 @@ +FROM php:8.3-apache +MAINTAINER Przemek Szalko + +# 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 diff --git a/build/8.3-apache/xdebug.ini b/build/8.3-apache/xdebug.ini new file mode 100644 index 0000000..a6c56ff --- /dev/null +++ b/build/8.3-apache/xdebug.ini @@ -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 diff --git a/build/8.3-cli/Dockerfile b/build/8.3-cli/Dockerfile new file mode 100644 index 0000000..d1ab114 --- /dev/null +++ b/build/8.3-cli/Dockerfile @@ -0,0 +1,19 @@ +FROM php:8.3-cli +MAINTAINER Przemek Szalko + +# 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 diff --git a/build/8.3-cli/xdebug.ini b/build/8.3-cli/xdebug.ini new file mode 100644 index 0000000..a6c56ff --- /dev/null +++ b/build/8.3-cli/xdebug.ini @@ -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 diff --git a/build/8.3-fpm/Dockerfile b/build/8.3-fpm/Dockerfile new file mode 100644 index 0000000..92a6f45 --- /dev/null +++ b/build/8.3-fpm/Dockerfile @@ -0,0 +1,19 @@ +FROM php:8.3-fpm +MAINTAINER Przemek Szalko + +# 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 diff --git a/build/8.3-fpm/xdebug.ini b/build/8.3-fpm/xdebug.ini new file mode 100644 index 0000000..a6c56ff --- /dev/null +++ b/build/8.3-fpm/xdebug.ini @@ -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