forked from ojengwa/statusok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Donot use this Dockerfile.This is not ready yet.
# Start from a Debian image with the latest version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang
# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/sanathp/StatusOk
# Build the outyet command inside the container.
# (You may fetch or manage dependencies here,
# either manually or with a tool like "godep".)
RUN go get github.com/codegangsta/cli
RUN go get github.com/influxdb/influxdb
RUN go get github.com/mailgun/mailgun-go
RUN go install github.com/sanathp/StatusOk
RUN wget http://influxdb.s3.amazonaws.com/influxdb_0.9.3_amd64.deb
RUN dpkg -i influxdb_0.9.3_amd64.deb
RUN /etc/init.d/influxdb start
RUN wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.1.3_amd64.deb
RUN apt-get update
RUN apt-get install -y adduser libfontconfig
RUN dpkg -i grafana_2.1.3_amd64.deb
RUN service grafana-server start
#how to connect to localhost inside ?? http://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
ENTRYPOINT /go/bin/StatusOk --config /go/src/github.com/sanathp/StatusOk/config.json
# Document that the service listens
EXPOSE 80 8083 8086 7321 3000