From 2f93fa6292f2268bc124e412bf59f2a0304add58 Mon Sep 17 00:00:00 2001 From: Junyu Wang Date: Fri, 16 Nov 2018 00:17:32 -0800 Subject: [PATCH] Included default flags into Dockerfile entrypoint (#4796) * included default flags into Dockerfile entrypoint Signed-off-by: Junyu Wang * keeping style consistent Co-Authored-By: DrakeW Signed-off-by: Junyu Wang * move prometheus.yml config into entrypoint & point to console template/libraries in etc/prometheus Signed-off-by: Junyu Wang --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00700591f..b04e66093 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ USER nobody EXPOSE 9090 VOLUME [ "/prometheus" ] WORKDIR /prometheus -ENTRYPOINT [ "/bin/prometheus" ] -CMD [ "--config.file=/etc/prometheus/prometheus.yml", \ +ENTRYPOINT [ "/bin/prometheus", \ "--storage.tsdb.path=/prometheus", \ - "--web.console.libraries=/usr/share/prometheus/console_libraries", \ - "--web.console.templates=/usr/share/prometheus/consoles" ] + "--web.console.libraries=/etc/prometheus/console_libraries", \ + "--web.console.templates=/etc/prometheus/consoles", \ + "--config.file=/etc/prometheus/prometheus.yml" ]