diff options
author | Johannes 'fish' Ziemke <github@freigeist.org> | 2014-02-07 19:35:57 +0100 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2014-02-12 11:16:58 +0100 |
commit | 02af7197da2939fa7ab4ae2e2f88b39a25043225 (patch) | |
tree | 91b82fb92b4ab2c5edd8f2d8737a3cc002f9287a /Dockerfile | |
parent | 04380ae60a0067d87029a7974ecffab64bececd1 (diff) | |
download | prometheus_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-- | 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 | ||