2019-04-15 12:27:00 +00:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
ARG OS="linux"
|
|
|
|
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
2018-08-27 02:43:53 +00:00
|
|
|
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
2015-01-12 14:15:26 +00:00
|
|
|
|
2019-04-15 12:27:00 +00:00
|
|
|
ARG ARCH="amd64"
|
|
|
|
ARG OS="linux"
|
|
|
|
COPY .build/${OS}-${ARCH}/prometheus /bin/prometheus
|
|
|
|
COPY .build/${OS}-${ARCH}/promtool /bin/promtool
|
2015-12-21 17:09:38 +00:00
|
|
|
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/
|
|
|
|
|
2019-01-21 11:57:16 +00:00
|
|
|
RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
|
|
|
|
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" ]
|
2019-01-21 11:57:16 +00:00
|
|
|
WORKDIR /prometheus
|
2018-12-10 08:19:01 +00:00
|
|
|
ENTRYPOINT [ "/bin/prometheus" ]
|
2019-01-21 11:57:16 +00:00
|
|
|
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
|
|
|
|
"--storage.tsdb.path=/prometheus", \
|
|
|
|
"--web.console.libraries=/usr/share/prometheus/console_libraries", \
|
|
|
|
"--web.console.templates=/usr/share/prometheus/consoles" ]
|