Skip to content

Commit 0a28e01

Browse files
committed
Fixes to xdebug3 and image clean up
1 parent 9cbcd3a commit 0a28e01

File tree

12 files changed

+124
-107
lines changed

12 files changed

+124
-107
lines changed

php7.3-fpm/alpine/etc/php-fpm.d/fpm.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ pm.status_path = /status
1414

1515
user = ${PHP_USER}
1616
group = ${PHP_GROUP}
17+

php7.3-fpm/focal/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ RUN pecl install mcrypt-1.0.2 \
6969
RUN yes '' | pecl install redis-4.3.0 \
7070
&& /usr/sbin/phpenmod redis
7171

72-
RUN sed -i '/memory_limit = 128M/c memory_limit = 256M' /etc/php/${PHP_VERSION}/fpm/php.ini \
73-
&& sed -i '/;date.timezone =/c date.timezone = Europe\/Copenhagen' /etc/php/${PHP_VERSION}/fpm/php.ini \
74-
&& sed -i '/upload_max_filesize = 2M/c upload_max_filesize = 16M' /etc/php/${PHP_VERSION}/fpm/php.ini \
75-
&& sed -i '/post_max_size = 8M/c post_max_size = 20M' /etc/php/${PHP_VERSION}/fpm/php.ini
76-
7772
# Install composer (both composer version as set symlink to right version in entry-point)
7873
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer1
7974
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer2

php7.3-fpm/focal/etc/confd/templates/20-xdebug.ini.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
{{ if ne $mode "off"}}
33
zend_extension=xdebug.so
44
xdebug.max_nesting_level = {{ getenv "XDEBUG_MAX_NESTING_LEVEL" "256" }}
5+
{{$session := getenv "XDEBUG_SESSION" }}
6+
{{ if eq $session "1" }}
7+
xdebug.client_host = {{ getenv "XDEBUG_CLIENT_HOST" "host.docker.internal" }}
8+
xdebug.start_with_request = {{ getenv "XDEBUG_WITH_REQUEST" "yes" }}
9+
{{ end }}
510

611
{{ if eq $mode "profile"}}
712
xdebug.profiler_append = {{ getenv "XDEBUG_PROFILER_APPEND" "0" }}

php7.4-fpm/focal/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ COPY etc/ /etc/
6767
RUN yes '' | pecl install redis-4.3.0 \
6868
&& /usr/sbin/phpenmod redis
6969

70-
RUN sed -i '/memory_limit = 128M/c memory_limit = 256M' /etc/php/${PHP_VERSION}/fpm/php.ini \
71-
&& sed -i '/;date.timezone =/c date.timezone = Europe\/Copenhagen' /etc/php/${PHP_VERSION}/fpm/php.ini \
72-
&& sed -i '/upload_max_filesize = 2M/c upload_max_filesize = 16M' /etc/php/${PHP_VERSION}/fpm/php.ini \
73-
&& sed -i '/post_max_size = 8M/c post_max_size = 20M' /etc/php/${PHP_VERSION}/fpm/php.ini
74-
7570
# Install composer (both composer version as set symlink to right version in entry-point)
7671
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer1
7772
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer2

php7.4-fpm/focal/etc/confd/templates/20-xdebug.ini.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
{{ if ne $mode "off"}}
33
zend_extension=xdebug.so
44
xdebug.max_nesting_level = {{ getenv "XDEBUG_MAX_NESTING_LEVEL" "256" }}
5+
{{$session := getenv "XDEBUG_SESSION" }}
6+
{{ if eq $session "1" }}
7+
xdebug.client_host = {{ getenv "XDEBUG_CLIENT_HOST" "host.docker.internal" }}
8+
xdebug.start_with_request = {{ getenv "XDEBUG_WITH_REQUEST" "yes" }}
9+
{{ end }}
510

611
{{ if eq $mode "profile"}}
712
xdebug.profiler_append = {{ getenv "XDEBUG_PROFILER_APPEND" "0" }}

0 commit comments

Comments
 (0)