Browse Source

[prometheus-armv7] Initial commit

drymer 5 months ago
parent
commit
93a9c819e3
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
2 changed files with 29 additions and 0 deletions
  1. 26
    0
      prometheus-armv7/Dockerfile
  2. 3
    0
      prometheus-armv7/README.md

+ 26
- 0
prometheus-armv7/Dockerfile View File

@@ -0,0 +1,26 @@
1
+FROM alpine:3.7 as build
2
+RUN apk add -U git && wget \
3
+    https://github.com/prometheus/prometheus/releases/download/v2.8.0/prometheus-2.8.0.linux-armv7.tar.gz \
4
+    && tar xzf prometheus-2.8.0.linux-armv7.tar.gz && git clone \
5
+    https://github.com/prometheus/prometheus/
6
+
7
+FROM quay.io/prometheus/busybox:latest
8
+COPY --from=build /prometheus-2.8.0.linux-armv7/prometheus /bin/
9
+COPY --from=build /prometheus-2.8.0.linux-armv7/promtool /bin/
10
+COPY --from=build /prometheus/documentation/examples/prometheus.yml /etc/prometheus/prometheus.yml
11
+COPY --from=build /prometheus/console_libraries/ /usr/share/prometheus/console_libraries/
12
+COPY --from=build /prometheus/consoles/ /usr/share/prometheus/consoles/
13
+
14
+RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/
15
+RUN mkdir -p /prometheus && \
16
+    chown -R nobody:nogroup etc/prometheus /prometheus
17
+
18
+USER       nobody
19
+EXPOSE     9090
20
+VOLUME     [ "/prometheus" ]
21
+WORKDIR    /prometheus
22
+ENTRYPOINT [ "/bin/prometheus" ]
23
+CMD        [ "--config.file=/etc/prometheus/prometheus.yml", \
24
+             "--storage.tsdb.path=/prometheus", \
25
+             "--web.console.libraries=/usr/share/prometheus/console_libraries", \
26
+             "--web.console.templates=/usr/share/prometheus/consoles" ]

+ 3
- 0
prometheus-armv7/README.md View File

@@ -0,0 +1,3 @@
1
+# Prometheus ARMV7
2
+
3
+Just that, prometheus armv7 image.

Loading…
Cancel
Save