Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: clean xdebug image .ini file #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion php/7.2/fpm-alpine-develop-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& docker-php-ext-enable xdebug \
&& apk del pcre-dev ${PHPIZE_DEPS}

COPY conf/php.ini /usr/local/etc/php/
COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d

USER app:app
68 changes: 0 additions & 68 deletions php/7.2/fpm-alpine-develop-xdebug/conf/php.ini

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@
;; Stock PHP Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This sets the maximum amount of memory in bytes that a script is allowed to allocate.
; This helps prevent poorly written scripts for eating up all available memory on a server.
; Note that to have no memory limit, set this directive to -1.
memory_limit = 4G
; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for.
error_reporting = E_ALL

; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
; This helps prevent poorly written scripts from tying up the server.
; The default setting is 30. When running PHP from the command line the default setting is 0.
max_execution_time = 30

date.timezone = UTC

; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes.
; Shorthand notation may also be used.
upload_max_filesize = 20M

; Sets max size of post data allowed. This setting also affects file upload. To upload large files,
; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be
; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used.
post_max_size = 20M
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; OPcache Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Determines if Zend OPCache is enabled
opcache.enable = 0

; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration,
; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header.
; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output.
zlib.output_compression = On

; This determines whether errors should be printed to the screen as part of the output
; or if they should be hidden from the user.
display_errors = stderr

; Name of the file where script errors should be logged. The file should be writable by the web server's user.
; If the special value syslog is used, the errors are sent to the system logger instead
; On Unix, this means syslog(3) and on Windows it means the event log
error_log = /dev/stderr

; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed.
; It's strongly recommended to keep display_startup_errors off, except for debugging.
display_startup_errors = On

; Tells whether script error messages should be logged to the server's error log or error_log.
; This option is thus server-specific.
log_errors = On

; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail.
Expand All @@ -49,5 +51,6 @@ xdebug.client_host = ${XDEBUG_CLIENT_HOST}
; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged.
xdebug.client_port= ${XDEBUG_CLIENT_PORT}


; This setting controls which Xdebug features are enabled.
; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode
xdebug.mode = ${XDEBUG_MODE}
2 changes: 1 addition & 1 deletion php/7.3/fpm-alpine-develop-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& docker-php-ext-enable xdebug \
&& apk del pcre-dev ${PHPIZE_DEPS}

COPY conf/php.ini /usr/local/etc/php/
COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d

USER app:app
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@
;; Stock PHP Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This sets the maximum amount of memory in bytes that a script is allowed to allocate.
; This helps prevent poorly written scripts for eating up all available memory on a server.
; Note that to have no memory limit, set this directive to -1.
memory_limit = 4G
; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for.
error_reporting = E_ALL

; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
; This helps prevent poorly written scripts from tying up the server.
; The default setting is 30. When running PHP from the command line the default setting is 0.
max_execution_time = 30

date.timezone = UTC

; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes.
; Shorthand notation may also be used.
upload_max_filesize = 20M

; Sets max size of post data allowed. This setting also affects file upload. To upload large files,
; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be
; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used.
post_max_size = 20M
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; OPcache Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Determines if Zend OPCache is enabled
opcache.enable = 0

; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration,
; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header.
; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output.
zlib.output_compression = On

; This determines whether errors should be printed to the screen as part of the output
; or if they should be hidden from the user.
display_errors = stderr

; Name of the file where script errors should be logged. The file should be writable by the web server's user.
; If the special value syslog is used, the errors are sent to the system logger instead
; On Unix, this means syslog(3) and on Windows it means the event log
error_log = /dev/stderr

; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed.
; It's strongly recommended to keep display_startup_errors off, except for debugging.
display_startup_errors = On

; Tells whether script error messages should be logged to the server's error log or error_log.
; This option is thus server-specific.
log_errors = On

; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail.
Expand All @@ -49,5 +51,6 @@ xdebug.client_host = ${XDEBUG_CLIENT_HOST}
; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged.
xdebug.client_port= ${XDEBUG_CLIENT_PORT}


; This setting controls which Xdebug features are enabled.
; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode
xdebug.mode = ${XDEBUG_MODE}
2 changes: 1 addition & 1 deletion php/7.4/fpm-alpine-develop-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& docker-php-ext-enable xdebug \
&& apk del pcre-dev ${PHPIZE_DEPS}

COPY conf/php.ini /usr/local/etc/php/
COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d

USER app:app
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@
;; Stock PHP Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This sets the maximum amount of memory in bytes that a script is allowed to allocate.
; This helps prevent poorly written scripts for eating up all available memory on a server.
; Note that to have no memory limit, set this directive to -1.
memory_limit = 4G
; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for.
error_reporting = E_ALL

; This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
; This helps prevent poorly written scripts from tying up the server.
; The default setting is 30. When running PHP from the command line the default setting is 0.
max_execution_time = 30

date.timezone = UTC

; The maximum size of an uploaded file. When an integer is used, the value is measured in bytes.
; Shorthand notation may also be used.
upload_max_filesize = 20M

; Sets max size of post data allowed. This setting also affects file upload. To upload large files,
; this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be
; larger than post_max_size. When an integer is used, the value is measured in bytes. Shorthand notation may also be used.
post_max_size = 20M
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; OPcache Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Determines if Zend OPCache is enabled
opcache.enable = 0

; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration,
; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header.
; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output.
zlib.output_compression = On

; This determines whether errors should be printed to the screen as part of the output
; or if they should be hidden from the user.
display_errors = stderr

; Name of the file where script errors should be logged. The file should be writable by the web server's user.
; If the special value syslog is used, the errors are sent to the system logger instead
; On Unix, this means syslog(3) and on Windows it means the event log
error_log = /dev/stderr

; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed.
; It's strongly recommended to keep display_startup_errors off, except for debugging.
display_startup_errors = On

; Tells whether script error messages should be logged to the server's error log or error_log.
; This option is thus server-specific.
log_errors = On

; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail.
Expand All @@ -49,5 +51,6 @@ xdebug.client_host = ${XDEBUG_CLIENT_HOST}
; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged.
xdebug.client_port= ${XDEBUG_CLIENT_PORT}


; This setting controls which Xdebug features are enabled.
; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode
xdebug.mode = ${XDEBUG_MODE}
2 changes: 2 additions & 0 deletions php/8.1/cli-alpine/conf/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
;; Stock PHP Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

date.timezone = UTC

; This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.
; Value "stderr" sends the errors to stderr instead of stdout.
display_errors = Off
Expand Down
2 changes: 1 addition & 1 deletion php/8.1/fpm-alpine-develop-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
&& docker-php-ext-enable xdebug \
&& apk del pcre-dev ${PHPIZE_DEPS}

COPY conf/php.ini /usr/local/etc/php/
COPY conf/x-debug-php.ini /usr/local/etc/php/conf.d

USER app:app
56 changes: 56 additions & 0 deletions php/8.1/fpm-alpine-develop-xdebug/conf/x-debug-php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Stock PHP Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for.
error_reporting = E_ALL

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; OPcache Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Determines if Zend OPCache is enabled
opcache.enable = 0

; Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration,
; pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header.
; "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output.
zlib.output_compression = On

; This determines whether errors should be printed to the screen as part of the output
; or if they should be hidden from the user.
display_errors = stderr

; Name of the file where script errors should be logged. The file should be writable by the web server's user.
; If the special value syslog is used, the errors are sent to the system logger instead
; On Unix, this means syslog(3) and on Windows it means the event log
error_log = /dev/stderr

; Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed.
; It's strongly recommended to keep display_startup_errors off, except for debugging.
display_startup_errors = On

; Tells whether script error messages should be logged to the server's error log or error_log.
; This option is thus server-specific.
log_errors = On

; Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail.
; configure does an honest attempt of locating this one for you and set a default,
; but if it fails, you can set it here.
sendmail_path = ${PHP_SENDMAIL_PATH}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Xdebug Settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Selects the host where the debug client is running, you can either use a host name, IP address, or 'unix:///path/to/sock'
; for a Unix domain socket. This setting is ignored if xdebug.remote_connect_back is enabled.
xdebug.client_host = ${XDEBUG_CLIENT_HOST}

; The port to which Xdebug tries to connect on the remote host. Port 9003 is the default for both Xdebug and the Command
; Line Debug Client. As many clients use this port number, it is best to leave this setting unchanged.
xdebug.client_port= ${XDEBUG_CLIENT_PORT}

; This setting controls which Xdebug features are enabled.
; for the values visit xdebug documentation: https://xdebug.org/docs/all_settings#mode
xdebug.mode = ${XDEBUG_MODE}