diff options
-rw-r--r-- | Dockerfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..48fc2bc --- /dev/null +++ b/Dockerfile | |||
@@ -0,0 +1,16 @@ | |||
1 | FROM ubuntu:13.10 | ||
2 | MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com> | ||
3 | |||
4 | ENV COLLECTORS NativeCollector | ||
5 | RUN apt-get update && apt-get install -yq curl git mercurial make | ||
6 | RUN curl -s https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz | tar -C /usr/local -xzf - | ||
7 | ENV PATH /usr/local/go/bin:$PATH | ||
8 | ENV GOPATH /go | ||
9 | |||
10 | ADD . /usr/src/node_exporter | ||
11 | RUN cd /usr/src/node_exporter && make && cp node_exporter / | ||
12 | RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \ | ||
13 | node_exporter.conf | ||
14 | |||
15 | ENTRYPOINT [ "/node_exporter" ] | ||
16 | EXPOSE 8080 | ||