aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile16
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 @@
1FROM ubuntu:13.10
2MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
3
4ENV COLLECTORS NativeCollector
5RUN apt-get update && apt-get install -yq curl git mercurial make
6RUN curl -s https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
7ENV PATH /usr/local/go/bin:$PATH
8ENV GOPATH /go
9
10ADD . /usr/src/node_exporter
11RUN cd /usr/src/node_exporter && make && cp node_exporter /
12RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \
13 node_exporter.conf
14
15ENTRYPOINT [ "/node_exporter" ]
16EXPOSE 8080