Skip to content

Commit 95d69e3

Browse files
Set access log to /dev/stdout and error log to /dev/stderr for WebUI barcus#189
1 parent db8b993 commit 95d69e3

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

webui/20-alpine/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh
77
RUN chmod u+x /docker-entrypoint.sh
88
RUN tar cfvz /bareos-webui-config.tgz /etc/bareos-webui
99
RUN tar cfvz /bareos-webui-code.tgz /usr/share/bareos-webui
10-
RUN mkdir -p /run/nginx
10+
RUN mkdir -p /run/nginx \
11+
&& sed -i -E \
12+
-e "s#(access_log) [^[:space:]]+ #\1 /dev/stdout #" \
13+
-e "s#(error_log) [^[:space:]]+ #\1 /dev/stderr #" \
14+
/etc/nginx/nginx.conf
1115

1216
EXPOSE 9100
1317

webui/21-alpine/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh
77
RUN chmod u+x /docker-entrypoint.sh
88
RUN tar cfvz /bareos-webui-config.tgz /etc/bareos-webui
99
RUN tar cfvz /bareos-webui-code.tgz /usr/share/bareos-webui
10-
RUN mkdir -p /run/nginx
10+
RUN mkdir -p /run/nginx \
11+
&& sed -i -E \
12+
-e "s#(access_log) [^[:space:]]+ #\1 /dev/stdout #" \
13+
-e "s#(error_log) [^[:space:]]+ #\1 /dev/stderr #" \
14+
/etc/nginx/nginx.conf
1115

1216
EXPOSE 9100
1317

webui/22-alpine/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh
77
RUN chmod u+x /docker-entrypoint.sh
88
RUN tar cfvz /bareos-webui-config.tgz /etc/bareos-webui
99
RUN tar cfvz /bareos-webui-code.tgz /usr/share/bareos-webui
10-
RUN mkdir -p /run/nginx
10+
RUN mkdir -p /run/nginx \
11+
&& sed -i -E \
12+
-e "s#(access_log) [^[:space:]]+ #\1 /dev/stdout #" \
13+
-e "s#(error_log) [^[:space:]]+ #\1 /dev/stderr #" \
14+
/etc/nginx/nginx.conf
1115

1216
EXPOSE 9100
1317

0 commit comments

Comments
 (0)