[prometheus-armv7] Initial commit
This commit is contained in:
parent
36fa9b6e80
commit
93a9c819e3
|
@ -0,0 +1,26 @@
|
|||
FROM alpine:3.7 as build
|
||||
RUN apk add -U git && wget \
|
||||
https://github.com/prometheus/prometheus/releases/download/v2.8.0/prometheus-2.8.0.linux-armv7.tar.gz \
|
||||
&& tar xzf prometheus-2.8.0.linux-armv7.tar.gz && git clone \
|
||||
https://github.com/prometheus/prometheus/
|
||||
|
||||
FROM quay.io/prometheus/busybox:latest
|
||||
COPY --from=build /prometheus-2.8.0.linux-armv7/prometheus /bin/
|
||||
COPY --from=build /prometheus-2.8.0.linux-armv7/promtool /bin/
|
||||
COPY --from=build /prometheus/documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml
|
||||
COPY --from=build /prometheus/console_libraries/ /usr/share/prometheus/console_libraries/
|
||||
COPY --from=build /prometheus/consoles/ /usr/share/prometheus/consoles/
|
||||
|
||||
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
|
||||
|
||||
USER nobody
|
||||
EXPOSE 9090
|
||||
VOLUME [ "/prometheus" ]
|
||||
WORKDIR /prometheus
|
||||
ENTRYPOINT [ "/bin/prometheus" ]
|
||||
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" ]
|
|
@ -0,0 +1,3 @@
|
|||
# Prometheus ARMV7
|
||||
|
||||
Just that, prometheus armv7 image.
|
Loading…
Reference in New Issue