2015-11-12 14:03:09 +00:00
|
|
|
FROM sdurrheimer/alpine-glibc
|
|
|
|
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
|
|
|
|
|
|
|
|
WORKDIR /gopath/src/github.com/prometheus/alertmanager
|
|
|
|
COPY . /gopath/src/github.com/prometheus/alertmanager
|
|
|
|
|
2015-12-09 11:17:53 +00:00
|
|
|
RUN apk add --update -t build-deps tar openssl git make bash gcc libc-dev \
|
2015-11-12 14:03:09 +00:00
|
|
|
&& source ./scripts/goenv.sh /go /gopath \
|
2015-12-09 11:01:58 +00:00
|
|
|
&& make build \
|
2015-11-12 14:03:09 +00:00
|
|
|
&& cp alertmanager /bin/ \
|
|
|
|
&& mkdir -p /etc/alertmanager/template \
|
|
|
|
&& mv ./doc/examples/simple.yml /etc/alertmanager/config.yml \
|
2015-12-09 11:17:53 +00:00
|
|
|
&& apk del --purge build-deps gcc \
|
2015-11-12 14:03:09 +00:00
|
|
|
&& rm -rf /go /gopath /var/cache/apk/*
|
|
|
|
|
|
|
|
EXPOSE 9093
|
|
|
|
VOLUME [ "/alertmanager" ]
|
|
|
|
WORKDIR /alertmanager
|
|
|
|
ENTRYPOINT [ "/bin/alertmanager" ]
|
|
|
|
CMD [ "-config.file=/etc/alertmanager/config.yml", \
|
2015-12-02 11:21:56 +00:00
|
|
|
"-storage.path=/alertmanager" ]
|