[info=586d7a37cb2192712a164a87bc625e29]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/php-fpm8-image?expand=0&rev=75
This commit is contained in:
parent
ae2dcc5124
commit
4b3aa6885a
22
Dockerfile
22
Dockerfile
@ -53,7 +53,27 @@ WORKDIR /srv/www/htdocs
|
|||||||
|
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; \
|
||||||
cd /etc/php8/fpm/; \
|
cd /etc/php8/fpm/; \
|
||||||
test -e php-fpm.d/www.conf.default && cp -p php-fpm.d/www.conf.default php-fpm.d/www.conf; test -e php-fpm.conf.default && cp -p php-fpm.conf.default php-fpm.conf; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; if we send this to /proc/self/fd/1, it never appears'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; } | tee php-fpm.d/zz-docker.conf
|
test -e php-fpm.d/www.conf.default && cp -p php-fpm.d/www.conf.default php-fpm.d/www.conf; \
|
||||||
|
test -e php-fpm.conf.default && cp -p php-fpm.conf.default php-fpm.conf; \
|
||||||
|
{ \
|
||||||
|
echo '[global]'; \
|
||||||
|
echo 'error_log = /proc/self/fd/2'; \
|
||||||
|
echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; \
|
||||||
|
echo; \
|
||||||
|
echo '[www]'; \
|
||||||
|
echo '; if we send this to /proc/self/fd/1, it never appears'; \
|
||||||
|
echo 'access.log = /proc/self/fd/2'; \
|
||||||
|
echo; \
|
||||||
|
echo 'clear_env = no'; \
|
||||||
|
echo; \
|
||||||
|
echo '; Ensure worker stdout and stderr are sent to the main error log.'; \
|
||||||
|
echo 'catch_workers_output = yes'; \
|
||||||
|
echo 'decorate_workers_output = no'; \
|
||||||
|
} | tee php-fpm.d/docker.conf; \
|
||||||
|
{ \
|
||||||
|
echo '[global]'; \
|
||||||
|
echo 'daemonize = no'; \
|
||||||
|
} | tee php-fpm.d/zz-docker.conf
|
||||||
|
|
||||||
# Override stop signal to stop process gracefully
|
# Override stop signal to stop process gracefully
|
||||||
# https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163
|
# https://github.com/php/php-src/blob/17baa87faddc2550def3ae7314236826bc1b1398/sapi/fpm/php-fpm.8.in#L163
|
||||||
|
Loading…
Reference in New Issue
Block a user