Skip to content

Commit

Permalink
Extra settings for PHP + missing config for Xdebug
Browse files Browse the repository at this point in the history
================> EXTRAS <================
> Branch name:	main
  • Loading branch information
devdrops committed Apr 5, 2024
1 parent 4ce11c0 commit d59cdbf
Show file tree
Hide file tree
Showing 29 changed files with 94 additions and 28 deletions.
2 changes: 1 addition & 1 deletion 7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ EXPOSE 8081/tcp
# Helper files
COPY ./helpers/ /config/
# Config and/or required files for PHP
COPY ./config-files/error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini
COPY ./config-files/php/php.ini "${PHP_INI_DIR}/conf.d/app.ini"
# Configuration files
COPY ./config-files/ /config/

Expand Down
1 change: 0 additions & 1 deletion 7.4/config-files/error_reporting.ini

This file was deleted.

11 changes: 11 additions & 0 deletions 7.4/config-files/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[PHP]
expose_php = On
display_errors = On
error_reporting=E_ALL
display_startup_errors = On
max_execution_time = 0
default_socket_timeout = -1
post_max_size = 10M
upload_max_filesize = 10M
max_file_uploads = 20
memory_limit = 1G
6 changes: 5 additions & 1 deletion 7.4/config-files/xdebug/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ zend_extension=xdebug.so

[xdebug]
xdebug.mode=develop,coverage,debug,gcstats,profile,trace
xdebug.discover_client_host=1
xdebug.discover_client_host=0
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.profiler_enabled=1
xdebug.output_dir=/tmp
Expand All @@ -20,6 +21,9 @@ xdebug.cli_color=1
xdebug.show_error_trace=0
xdebug.show_exception_trace=0
xdebug.force_display_errors=1
xdebug.max_nesting_level=250
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.log=/config/xdebug/xdebug.log
xdebug.gc_stats_output_name=gcstats.%p.%u
xdebug.profiler_output_name=cachegrind.out.%p.%u
Expand Down
2 changes: 1 addition & 1 deletion 7.4/helpers/xdebug/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
pecl install -o -f xdebug-3.1.6
docker-php-ext-enable xdebug
rm -rf /tmp/pear
cp /config/xdebug/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
cp /config/xdebug/xdebug.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini"
4 changes: 2 additions & 2 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ EXPOSE 8081/tcp
# Helper files
COPY ./helpers/ /config/
# Config and/or required files for PHP
COPY ./config-files/opcache.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
COPY ./config-files/error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini
COPY ./config-files/opcache/opcache.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini"
COPY ./config-files/php/php.ini "${PHP_INI_DIR}/conf.d/app.ini"
# Configuration files
COPY ./config-files/ /config/

Expand Down
1 change: 0 additions & 1 deletion 8.0/config-files/error_reporting.ini

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions 8.0/config-files/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[PHP]
expose_php = On
display_errors = On
error_reporting=E_ALL
display_startup_errors = On
max_execution_time = 0
default_socket_timeout = -1
post_max_size = 10M
upload_max_filesize = 10M
max_file_uploads = 20
memory_limit = 1G
6 changes: 5 additions & 1 deletion 8.0/config-files/xdebug/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ zend_extension=xdebug.so

[xdebug]
xdebug.mode=develop,coverage,debug,gcstats,profile,trace
xdebug.discover_client_host=1
xdebug.discover_client_host=0
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.profiler_enabled=1
xdebug.output_dir=/tmp
Expand All @@ -20,6 +21,9 @@ xdebug.cli_color=1
xdebug.show_error_trace=0
xdebug.show_exception_trace=0
xdebug.force_display_errors=1
xdebug.max_nesting_level=250
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.log=/config/xdebug/xdebug.log
xdebug.gc_stats_output_name=gcstats.%p.%u
xdebug.profiler_output_name=cachegrind.out.%p.%u
Expand Down
2 changes: 1 addition & 1 deletion 8.0/helpers/xdebug/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
pecl install -o -f xdebug-3.3.0
docker-php-ext-enable xdebug
rm -rf /tmp/pear
cp /config/xdebug/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
cp /config/xdebug/xdebug.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini"
8 changes: 2 additions & 6 deletions 8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ EXPOSE 8000/tcp
EXPOSE 8080/tcp
EXPOSE 8081/tcp

# Alpine requirements
COPY ./helpers/alpine/dependencies.sh /config/alpine/dependencies.sh
RUN sh /config/alpine/dependencies.sh

# Helper files
COPY ./helpers/ /config/
# Config and/or required files for PHP
COPY ./config-files/opcache.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
COPY ./config-files/error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini
COPY ./config-files/opcache/opcache.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini"
COPY ./config-files/php/php.ini "${PHP_INI_DIR}/conf.d/app.ini"
# Configuration files
COPY ./config-files/ /config/

Expand Down
1 change: 0 additions & 1 deletion 8.1/config-files/error_reporting.ini

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions 8.1/config-files/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[PHP]
expose_php = On
display_errors = On
error_reporting=E_ALL
display_startup_errors = On
max_execution_time = 0
default_socket_timeout = -1
post_max_size = 10M
upload_max_filesize = 10M
max_file_uploads = 20
memory_limit = 1G
6 changes: 5 additions & 1 deletion 8.1/config-files/xdebug/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ zend_extension=xdebug.so

[xdebug]
xdebug.mode=develop,coverage,debug,gcstats,profile,trace
xdebug.discover_client_host=1
xdebug.discover_client_host=0
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.profiler_enabled=1
xdebug.output_dir=/tmp
Expand All @@ -20,6 +21,9 @@ xdebug.cli_color=1
xdebug.show_error_trace=0
xdebug.show_exception_trace=0
xdebug.force_display_errors=1
xdebug.max_nesting_level=250
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.log=/config/xdebug/xdebug.log
xdebug.gc_stats_output_name=gcstats.%p.%u
xdebug.profiler_output_name=cachegrind.out.%p.%u
Expand Down
2 changes: 1 addition & 1 deletion 8.1/helpers/xdebug/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
pecl install -o -f xdebug-3.3.0
docker-php-ext-enable xdebug
rm -rf /tmp/pear
cp /config/xdebug/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
cp /config/xdebug/xdebug.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini"
4 changes: 2 additions & 2 deletions 8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ EXPOSE 8081/tcp
# Helper files
COPY ./helpers/ /config/
# Config and/or required files for PHP
COPY ./config-files/opcache.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
COPY ./config-files/error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini
COPY ./config-files/opcache/opcache.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini"
COPY ./config-files/php/php.ini "${PHP_INI_DIR}/conf.d/app.ini"
# Configuration files
COPY ./config-files/ /config/

Expand Down
1 change: 0 additions & 1 deletion 8.2/config-files/error_reporting.ini

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions 8.2/config-files/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[PHP]
expose_php = On
display_errors = On
error_reporting=E_ALL
display_startup_errors = On
max_execution_time = 0
default_socket_timeout = -1
post_max_size = 10M
upload_max_filesize = 10M
max_file_uploads = 20
memory_limit = 1G
6 changes: 5 additions & 1 deletion 8.2/config-files/xdebug/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ zend_extension=xdebug.so

[xdebug]
xdebug.mode=develop,coverage,debug,gcstats,profile,trace
xdebug.discover_client_host=1
xdebug.discover_client_host=0
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.profiler_enabled=1
xdebug.output_dir=/tmp
Expand All @@ -20,6 +21,9 @@ xdebug.cli_color=1
xdebug.show_error_trace=0
xdebug.show_exception_trace=0
xdebug.force_display_errors=1
xdebug.max_nesting_level=250
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.log=/config/xdebug/xdebug.log
xdebug.gc_stats_output_name=gcstats.%p.%u
xdebug.profiler_output_name=cachegrind.out.%p.%u
Expand Down
2 changes: 1 addition & 1 deletion 8.2/helpers/xdebug/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
pecl install -o -f xdebug-3.3.0
docker-php-ext-enable xdebug
rm -rf /tmp/pear
cp /config/xdebug/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
cp /config/xdebug/xdebug.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini"
4 changes: 2 additions & 2 deletions 8.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ EXPOSE 8081/tcp
# Helper files
COPY ./helpers/ /config/
# Config and/or required files for PHP
COPY ./config-files/opcache.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
COPY ./config-files/error_reporting.ini /usr/local/etc/php/conf.d/error_reporting.ini
COPY ./config-files/opcache/opcache.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini"
COPY ./config-files/php/php.ini "${PHP_INI_DIR}/conf.d/app.ini"
# Configuration files
COPY ./config-files/ /config/

Expand Down
1 change: 0 additions & 1 deletion 8.3/config-files/error_reporting.ini

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions 8.3/config-files/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[PHP]
expose_php = On
display_errors = On
error_reporting=E_ALL
display_startup_errors = On
max_execution_time = 0
default_socket_timeout = -1
post_max_size = 10M
upload_max_filesize = 10M
max_file_uploads = 20
memory_limit = 1G
6 changes: 5 additions & 1 deletion 8.3/config-files/xdebug/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ zend_extension=xdebug.so

[xdebug]
xdebug.mode=develop,coverage,debug,gcstats,profile,trace
xdebug.discover_client_host=1
xdebug.discover_client_host=0
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.profiler_enabled=1
xdebug.output_dir=/tmp
Expand All @@ -20,6 +21,9 @@ xdebug.cli_color=1
xdebug.show_error_trace=0
xdebug.show_exception_trace=0
xdebug.force_display_errors=1
xdebug.max_nesting_level=250
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20
xdebug.log=/config/xdebug/xdebug.log
xdebug.gc_stats_output_name=gcstats.%p.%u
xdebug.profiler_output_name=cachegrind.out.%p.%u
Expand Down
2 changes: 1 addition & 1 deletion 8.3/helpers/xdebug/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
pecl install -o -f xdebug-3.3.0
docker-php-ext-enable xdebug
rm -rf /tmp/pear
cp /config/xdebug/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
cp /config/xdebug/xdebug.ini "${PHP_INI_DIR}/conf.d/docker-php-ext-xdebug.ini"

0 comments on commit d59cdbf

Please sign in to comment.