forked from metalmatze/alertmanager-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vu-long/setup
Fork source code. Add monitoring serivces: prometheus, grafana, alertmanager
- Loading branch information
Showing
26 changed files
with
1,743 additions
and
11 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,9 +1,21 @@ | ||
FROM alpine:latest | ||
RUN apk add --update ca-certificates | ||
FROM golang:latest | ||
|
||
COPY ./default.tmpl /templates/default.tmpl | ||
COPY ./alertmanager-bot /usr/bin/alertmanager-bot | ||
# Set go bin which doesn't appear to be set already. | ||
ENV GOBIN /go/bin | ||
|
||
EXPOSE 8080 | ||
# build directories | ||
RUN mkdir /app | ||
RUN mkdir -p /go/src/github.com/vu-long/alertmanager-bot | ||
ADD . /go/src/github.com/vu-long/alertmanager-bot | ||
WORKDIR /go/src/github.com/vu-long/alertmanager-bot | ||
|
||
ENTRYPOINT ["/usr/bin/alertmanager-bot"] | ||
# Go dep! | ||
RUN go get -u github.com/golang/dep/... | ||
RUN dep ensure -v -vendor-only | ||
|
||
RUN make build | ||
|
||
EXPOSE 8080:8080 | ||
|
||
ENTRYPOINT ["/go/src/github.com/vu-long/alertmanager-bot/alertmanager-bot"] |
Oops, something went wrong.