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