Skip to content

Commit

Permalink
redirect all php-fpm errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Oct 26, 2023
1 parent b6c1264 commit 44cad3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Container image version
# Note: the version here is from `ELABIMG_VERSION` present in Dockerfile, not the tagged one

# 4.6.2

* Redirect all php-fpm error log to stderr

# 4.6.1

* Revert latest brotli code because new one makes nginx crash
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ RUN abuild-keygen -n -a && abuild && find /home/builder/packages -type f -name '
FROM alpine:3.18

# this is versioning for the container image
ENV ELABIMG_VERSION=4.6.1
ENV ELABIMG_VERSION=4.6.2

# the target elabftw version is passed with --build-arg
# it is a mandatory ARG
Expand Down Expand Up @@ -212,6 +212,9 @@ RUN apk upgrade -U -a && apk add --no-cache \
RUN mv /usr/bin/php81 /usr/bin/php81-real
COPY ./src/php/phpwithenv /usr/bin/php81

# redirect all the php-fpm errors to stderr
RUN ln -sf /dev/stderr /var/log/php81/error.log

# S6-OVERLAY
# install s6-overlay, our init system. Workaround for different versions using TARGETPLATFORM
# platform see https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
Expand Down

0 comments on commit 44cad3f

Please sign in to comment.