Skip to content

Commit

Permalink
Merge pull request #1 from vu-long/setup
Browse files Browse the repository at this point in the history
Fork source code. Add monitoring serivces: prometheus, grafana, alertmanager
  • Loading branch information
lovung authored Jan 9, 2019
2 parents bf1b28f + e0dcf52 commit e3213a6
Show file tree
Hide file tree
Showing 26 changed files with 1,743 additions and 11 deletions.
22 changes: 17 additions & 5 deletions Dockerfile
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"]
Loading

0 comments on commit e3213a6

Please sign in to comment.