2016-04-22 09:45:45 -07:00
|
|
|
FROM quay.io/prometheus/busybox:latest
|
2018-08-26 19:43:53 -07:00
|
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
2015-01-12 06:15:26 -08:00
|
|
|
|
2015-12-21 09:09:38 -08:00
|
|
|
COPY prometheus /bin/prometheus
|
|
|
|
COPY promtool /bin/promtool
|
|
|
|
COPY documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml
|
2016-07-29 06:00:47 -07:00
|
|
|
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/
|
2017-06-19 02:33:39 -07:00
|
|
|
RUN mkdir -p /prometheus && \
|
|
|
|
chown -R nobody:nogroup etc/prometheus /prometheus
|
2015-01-12 06:15:26 -08:00
|
|
|
|
2017-06-19 02:33:39 -07:00
|
|
|
USER nobody
|
2014-02-06 08:29:37 -08:00
|
|
|
EXPOSE 9090
|
2015-04-24 07:12:31 -07:00
|
|
|
VOLUME [ "/prometheus" ]
|
2014-02-06 08:29:37 -08:00
|
|
|
WORKDIR /prometheus
|
2018-11-16 00:17:32 -08:00
|
|
|
ENTRYPOINT [ "/bin/prometheus", \
|
2017-07-13 03:14:49 -07:00
|
|
|
"--storage.tsdb.path=/prometheus", \
|
2018-11-16 00:17:32 -08:00
|
|
|
"--web.console.libraries=/etc/prometheus/console_libraries", \
|
|
|
|
"--web.console.templates=/etc/prometheus/consoles", \
|
|
|
|
"--config.file=/etc/prometheus/prometheus.yml" ]
|