Browse Source

[prometheus-alertmanager-armv7] Initial commit

drymer 5 months ago
parent
commit
a5bf961469
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
1 changed files with 21 additions and 0 deletions
  1. 21
    0
      prometheus-alertmanager-armv7/Dockerfile

+ 21
- 0
prometheus-alertmanager-armv7/Dockerfile View File

@@ -0,0 +1,21 @@
1
+FROM alpine:3.7 as build
2
+RUN apk add -U git && wget \
3
+    https://github.com/prometheus/alertmanager/releases/download/v0.16.1/alertmanager-0.16.1.linux-armv7.tar.gz \
4
+    && tar xzf alertmanager-0.16.1.linux-armv7.tar.gz && git clone https://github.com/prometheus/alertmanager/
5
+
6
+FROM prom/busybox:latest
7
+
8
+COPY --from=build /alertmanager-0.16.1.linux-armv7/amtool /bin/amtool
9
+COPY --from=build /alertmanager-0.16.1.linux-armv7/alertmanager /bin/alertmanager
10
+COPY --from=build /alertmanager/examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
11
+
12
+RUN mkdir -p /alertmanager && chown -R nobody:nogroup /etc/alertmanager \
13
+    /alertmanager
14
+
15
+USER       nobody
16
+EXPOSE     9093
17
+VOLUME     [ "/alertmanager" ]
18
+WORKDIR    /alertmanager
19
+ENTRYPOINT [ "/bin/alertmanager" ]
20
+CMD        [ "--config.file=/etc/alertmanager/alertmanager.yml", \
21
+             "--storage.path=/alertmanager" ]

Loading…
Cancel
Save