From bf6d92c63aba3e4ee6686a8021434259ce92eef3 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Fri, 29 Jul 2016 14:00:47 +0100 Subject: [PATCH] Docker: Move console dirs to /usr/share/prometheus --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b5d3520cc..a522c07c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ MAINTAINER The Prometheus Authors COPY prometheus /bin/prometheus COPY promtool /bin/promtool COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml -COPY console_libraries/ /etc/prometheus/console_libraries/ -COPY consoles/ /etc/prometheus/consoles/ +COPY console_libraries/ /usr/share/prometheus/console_libraries/ +COPY consoles/ /usr/share/prometheus/consoles/ + +RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ EXPOSE 9090 VOLUME [ "/prometheus" ] @@ -13,5 +15,5 @@ WORKDIR /prometheus ENTRYPOINT [ "/bin/prometheus" ] CMD [ "-config.file=/etc/prometheus/prometheus.yml", \ "-storage.local.path=/prometheus", \ - "-web.console.libraries=/etc/prometheus/console_libraries", \ - "-web.console.templates=/etc/prometheus/consoles" ] + "-web.console.libraries=/usr/share/prometheus/console_libraries", \ + "-web.console.templates=/usr/share/prometheus/consoles" ]