Skip to content

Commit 77cee6c

Browse files
authored
Merge pull request #7 from samlitowitz/8.2
Add support for 8.2
2 parents ff4e4f3 + 24e1ee2 commit 77cee6c

File tree

34 files changed

+169
-58
lines changed

34 files changed

+169
-58
lines changed

bin/generate.sh

Lines changed: 4 additions & 2 deletions
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"
@@ -38,9 +39,10 @@ for php_version in "${php_versions[@]}"; do
3839

3940
base_image="php:${php_version}-${php_suffix}"
4041
xdebug_version="${xdebug_versions[${php_version}]}"
42+
xdebug_major_version=`echo "${xdebug_version}" | sed 's/xdebug-\([1-9][0-9]\{0,\}\)\..*/\1/'`
4143

4244
mkdir -p "${target_dir}"
43-
cp ./src/xdebug.ini "${target_dir}/xdebug.ini"
45+
cp "./src/xdebug-${xdebug_major_version}.ini" "${target_dir}/xdebug.ini"
4446

4547
# shellcheck disable=SC2002
4648
cat ./src/Dockerfile \

build/7.2-apache/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN pecl channel-update pecl.php.net \
1616
&& pecl install xdebug-2.6.0 \
1717
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1818

19-
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/7.2-apache/xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
1010

1111
xdebug.remote_enable=1
1212
xdebug.remote_connect_back=1
13-
xdebug.remote_port=9000
13+
xdebug.remote_port=9000

build/7.2-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN pecl channel-update pecl.php.net \
1616
&& pecl install xdebug-2.6.0 \
1717
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1818

19-
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/7.2-cli/xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
1010

1111
xdebug.remote_enable=1
1212
xdebug.remote_connect_back=1
13-
xdebug.remote_port=9000
13+
xdebug.remote_port=9000

build/7.2-fpm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN pecl channel-update pecl.php.net \
1616
&& pecl install xdebug-2.6.0 \
1717
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1818

19-
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/7.2-fpm/xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
1010

1111
xdebug.remote_enable=1
1212
xdebug.remote_connect_back=1
13-
xdebug.remote_port=9000
13+
xdebug.remote_port=9000

build/7.4-apache/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN pecl channel-update pecl.php.net \
1616
&& pecl install xdebug-2.9.1 \
1717
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1818

19-
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

build/7.4-apache/xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ xdebug.profiler_output_name="cachegrind.out.%H.%t.%p"
1010

1111
xdebug.remote_enable=1
1212
xdebug.remote_connect_back=1
13-
xdebug.remote_port=9000
13+
xdebug.remote_port=9000

build/7.4-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN pecl channel-update pecl.php.net \
1616
&& pecl install xdebug-2.9.1 \
1717
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1818

19-
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
19+
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

0 commit comments

Comments
 (0)