diff options
author | 2020-08-13 19:38:23 +0000 | |
---|---|---|
committer | 2020-08-13 19:38:23 +0000 | |
commit | e3d56903975ae17915a618f5f509a6933b315275 (patch) | |
tree | 712b0bd8e9da7e6872856b9b743d562b6469f5c7 /components/datalake-handler/admin/Dockerfile | |
parent | 3e872d7f1be90810bc7920f4ab0cbc03d5c502d9 (diff) | |
parent | 5ae68c251200a093254c926bb35fa953ae3b5697 (diff) |
Merge "[Datalake] Output logs to stdout."
Diffstat (limited to 'components/datalake-handler/admin/Dockerfile')
-rw-r--r-- | components/datalake-handler/admin/Dockerfile | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/components/datalake-handler/admin/Dockerfile b/components/datalake-handler/admin/Dockerfile index 2e6442ae..6237741a 100644 --- a/components/datalake-handler/admin/Dockerfile +++ b/components/datalake-handler/admin/Dockerfile @@ -18,23 +18,15 @@ RUN groupadd -r datalake && useradd -r -g datalake datalake COPY --from=builder /app/dist/* /usr/share/nginx/html/ COPY --from=builder /app/dl-admin-nginx.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf +COPY --from=builder /app/run.sh /tmp RUN chown -R datalake:datalake /etc/nginx RUN chown -R datalake:datalake /var/cache/nginx +RUN chown -R datalake:datalake /tmp/run.sh +RUN chmod 0744 /tmp/run.sh USER datalake -#CMD echo "domain-needed" >> /etc/dnsmasq.conf && \ -# echo "resolv-file=/etc/resolv.conf" >> /etc/dnsmasq.conf && \ -# echo "expand-hosts" >> /etc/dnsmasq.conf && \ -# echo "listen-address=127.0.0.1" >> /etc/dnsmasq.conf && \ -# service dnsmasq restart && \ -# echo set \$upstreamName http://dl-feeder.`grep search /etc/resolv.conf | awk {'print $2'}`:1680/datalake/v1\$1\$is_args\$args\; > /etc/nginx/upstream.conf && \ -# nginx -g "daemon off;" +CMD ["sh", "-c", "/tmp/run.sh"] -CMD echo resolver `grep nameserver /etc/resolv.conf |awk {'print $2'}` valid=10s\; > /etc/nginx/resolver.conf && \ - echo set \$upstreamName http://dl-feeder.`grep search /etc/resolv.conf | awk {'print $2'}`:1680/datalake/v1\$1\$is_args\$args\; > /etc/nginx/upstream.conf && \ - nginx -g "daemon off;" - -#CMD ["sh", "-c", "tail -f /dev/null"] |