From 3b7656b3d5fee047d76eac93458ef0de45a5578b Mon Sep 17 00:00:00 2001 From: Dave Page Date: Tue, 5 Dec 2017 14:23:35 +0900 Subject: [PATCH] Push HTTPD logs to container stdout/stderr as appropriate. Fixes #2920 --- pkg/docker/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/docker/Dockerfile b/pkg/docker/Dockerfile index aa9a64a85..ab2ca94eb 100644 --- a/pkg/docker/Dockerfile +++ b/pkg/docker/Dockerfile @@ -38,6 +38,12 @@ RUN mkdir -p /certs RUN chown -R apache /certs RUN chmod 700 /certs +# Push logs to the container's output streams +RUN ln -sf /proc/self/fd/1 /var/log/httpd/access_log && \ + ln -sf /proc/self/fd/1 /var/log/httpd/ssl_access_log && \ + ln -sf /proc/self/fd/2 /var/log/httpd/error_log && \ + ln -sf /proc/self/fd/2 /var/log/httpd/ssl_error_log + # Apache config time RUN mkdir -p /templates COPY pgadmin4.conf.j2 /templates/