-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'docker' of git://github.com/psev/consul-alerts into pse…
…v-docker Conflicts: Dockerfile
- Loading branch information
Showing
2 changed files
with
75 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
FROM golang:1.5 | ||
FROM alpine:edge | ||
MAINTAINER Acaleph <[email protected]> | ||
RUN apt-get update && apt-get install -y unzip --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
RUN (curl -OL https://releases.hashicorp.com/consul/0.5.2/consul_0.5.2_linux_amd64.zip &&\ | ||
unzip consul_0.5.2_linux_amd64.zip &&\ | ||
chmod +x consul &&\ | ||
mv consul /bin/ &&\ | ||
rm consul_0.5.2_linux_amd64.zip) | ||
|
||
ADD . /go/src/github.com/AcalephStorage/consul-alerts | ||
RUN go get github.com/AcalephStorage/consul-alerts | ||
ENV GOPATH /go | ||
|
||
RUN mkdir -p /go && \ | ||
apk update && \ | ||
apk add bash ca-certificates git go && \ | ||
go get -v github.com/AcalephStorage/consul-alerts && \ | ||
mv /go/bin/consul-alerts /bin && \ | ||
go get -v github.com/hashicorp/consul && \ | ||
mv /go/bin/consul /bin && \ | ||
rm -rf /go && \ | ||
apk del --purge go git && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
EXPOSE 9000 | ||
CMD [] | ||
ENTRYPOINT [ "/go/bin/consul-alerts", "--alert-addr=0.0.0.0:9000" ] | ||
ENTRYPOINT [ "/bin/consul-alerts", "--alert-addr=0.0.0.0:9000" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters