]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Nginx logs to stdout for Docker Alpine images 1100/head
authorAngristan <angristan@users.noreply.github.com>
Sun, 11 Mar 2018 20:06:14 +0000 (21:06 +0100)
committerAngristan <angristan@users.noreply.github.com>
Sun, 11 Mar 2018 20:06:14 +0000 (21:06 +0100)
docker/alpine/Dockerfile.armhf.latest
docker/alpine/Dockerfile.armhf.master
docker/alpine/Dockerfile.latest
docker/alpine/Dockerfile.master

index c923834abb9871ae70135af61b50cabefcf998ee..824a192633bbb7c2fb78d682644900c97805e8eb 100644 (file)
@@ -37,7 +37,9 @@ RUN curl -L https://github.com/shaarli/Shaarli/archive/latest.tar.gz | tar xzf -
     && cd shaarli \
     && composer --prefer-dist --no-dev install \
     && rm -rf ~/.composer \
-    && chown -R nginx:nginx .
+    && chown -R nginx:nginx . \
+    && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
+    && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
 
 VOLUME /var/www/shaarli/data
 
index 7f1bdf85a19c7e663253d2262d9615e5bc041533..6c89adc3b9f734828f9e47257d4d1cea2a36c089 100644 (file)
@@ -37,7 +37,9 @@ RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf -
     && cd shaarli \
     && composer --prefer-dist --no-dev install \
     && rm -rf ~/.composer \
-    && chown -R nginx:nginx .
+    && chown -R nginx:nginx . \
+    && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
+    && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
 
 VOLUME /var/www/shaarli/data
 
index 4724b633857358faabafcc8bcc762266703ebde8..755d87517c1ec8c1ae156bccedbd30ffb6b555be 100644 (file)
@@ -42,7 +42,10 @@ RUN rm -rf /etc/php7/php-fpm.d/www.conf \
 WORKDIR /var/www
 COPY --from=composer /app/shaarli shaarli
 
-RUN chown -R nginx:nginx .
+RUN chown -R nginx:nginx . \
+    && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
+    && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
+
 VOLUME /var/www/shaarli/data
 
 EXPOSE 80
index 9cb4dec49565d34337051088e43e0fcffed98b3d..0472947f54d90854b9966185daaf9da7d341df73 100644 (file)
@@ -42,7 +42,10 @@ RUN rm -rf /etc/php7/php-fpm.d/www.conf \
 WORKDIR /var/www
 COPY --from=composer /app/shaarli shaarli
 
-RUN chown -R nginx:nginx .
+RUN chown -R nginx:nginx . \
+    && ln -sf /dev/stdout /var/log/nginx/shaarli.access.log \
+    && ln -sf /dev/stderr /var/log/nginx/shaarli.error.log
+
 VOLUME /var/www/shaarli/data
 
 EXPOSE 80