forked from wkulhanek/openshift-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (18 loc) · 881 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM docker.io/centos:7
LABEL maintainer="Wolfgang Kulhanek <[email protected]>"
ENV ALERT_MANAGER_VERSION=0.16.1
RUN yum -y update && yum -y upgrade && \
yum -y clean all && \
curl -L -o /tmp/alert_manager.tar.gz https://github.com/prometheus/alertmanager/releases/download/v$ALERT_MANAGER_VERSION/alertmanager-$ALERT_MANAGER_VERSION.linux-amd64.tar.gz && \
tar -xzf /tmp/alert_manager.tar.gz && \
mv ./alertmanager-$ALERT_MANAGER_VERSION.linux-amd64/alertmanager /bin && \
rm -rf ./alertmanager-$ALERT_MANAGER_VERSION.linux-amd64 && \
rm /tmp/alert_manager.tar.gz
COPY config.yml /etc/alertmanager/config.yml
EXPOSE 9093
USER nobody
VOLUME [ "/alertmanager" ]
WORKDIR /alertmanager
ENTRYPOINT [ "/bin/alertmanager" ]
CMD [ "-config.file=/etc/alertmanager/config.yml", \
"-storage.path=/alertmanager" ]