[planet-web/oscp] Symlink access.log and error.log to stdout/stderr



commit cc97a75edfb86551457f5b25c39df2ca34b19e66
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Aug 29 12:26:56 2019 +0200

    Symlink access.log and error.log to stdout/stderr

 Dockerfile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 6cf8b70..354e970 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,9 +3,13 @@ ARG DEBIAN_FRONTEND=noninteractive
 
 RUN apt-get update && \
     apt-get install -y --no-install-recommends planet-venus git nginx-light && \
-    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*  && \
+    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+
+RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
+    ln -sf /dev/stderr /var/log/nginx/error.log
+
+RUN groupadd planet -g 1000510000 && useradd planet -g 1000510000 -u 1000510000 -r -l && \
     git clone --depth 1 --branch master --single-branch https://gitlab.gnome.org/Infrastructure/planet-web 
/planet && \
-    groupadd planet -g 1000510000 && useradd planet -g 1000510000 -u 1000510000 -r -l && \
     chown -R 1000510000:100051000 /planet
 
 ADD nginx.conf /etc/nginx/nginx.conf


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]