forked from frodenas/alertmanager-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (13 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
17 lines (13 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM concourse/buildroot:git
RUN cat /etc/ssl/certs/*.pem > /etc/ssl/certs/ca-certificates.crt
ENV jq_version=1.5
ADD https://github.com/stedolan/jq/releases/download/jq-${jq_version}/jq-linux64 /usr/local/bin/jq
RUN chmod +x /usr/local/bin/jq
ENV alertmanager_version=0.13.0
ADD https://github.com/prometheus/alertmanager/releases/download/v${alertmanager_version}/alertmanager-${alertmanager_version}.linux-amd64.tar.gz /tmp/alertmanager-${alertmanager_version}.linux-amd64.tar.gz
RUN tar xzvf /tmp/alertmanager-${alertmanager_version}.linux-amd64.tar.gz -C /tmp alertmanager-${alertmanager_version}.linux-amd64/amtool && \
mv /tmp/alertmanager-${alertmanager_version}.linux-amd64/amtool /usr/local/bin/amtool && \
chmod +x /usr/local/bin/amtool && \
rm -fr /tmp/alertmanager-*
ADD assets/ /opt/resource/
RUN chmod +x /opt/resource/*