Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove log decoration from workers output #725

Merged
merged 1 commit into from
Oct 16, 2018
Merged
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
1 change: 1 addition & 0 deletions 7.3-rc/alpine3.8/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ RUN set -ex \
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]'; \
Expand Down
1 change: 1 addition & 0 deletions 7.3-rc/stretch/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ RUN set -ex \
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]'; \
Expand Down
1 change: 1 addition & 0 deletions fpm-Dockerfile-block-2
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN set -ex \
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]'; \
Expand Down
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ for version in "${versions[@]}"; do
# php 5 still needs older ssl
sed -ri 's/libssl-dev/libssl1.0-dev/g' "$version/$suite/$variant/Dockerfile"
fi
if [ "$variant" = 'fpm' -a "$majorVersion" = '5' ] || [ "$variant" = 'fpm' -a "$majorVersion" = '7' -a "$minorVersion" -lt '3' ]; then
# php-fpm "decorate_workers_output" is only available in 7.3+
sed -ri '/decorate_workers_output/d' "$version/$suite/$variant/Dockerfile"
fi

# remove any _extra_ blank lines created by the deletions above
awk '
Expand Down