aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJohannes 'fish' Ziemke <github@freigeist.org>2014-02-07 19:35:57 +0100
committerJohannes 'fish' Ziemke <github@freigeist.org>2014-02-12 11:16:58 +0100
commit02af7197da2939fa7ab4ae2e2f88b39a25043225 (patch)
tree91b82fb92b4ab2c5edd8f2d8737a3cc002f9287a /Dockerfile
parent04380ae60a0067d87029a7974ecffab64bececd1 (diff)
downloadprometheus_node_collector-02af7197da2939fa7ab4ae2e2f88b39a25043225.tar.bz2
prometheus_node_collector-02af7197da2939fa7ab4ae2e2f88b39a25043225.tar.xz
prometheus_node_collector-02af7197da2939fa7ab4ae2e2f88b39a25043225.zip
Add Dockerfile
Diffstat (limited to 'Dockerfile')
-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