aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJohannes 'fish' Ziemke <github@freigeist.org>2014-12-18 13:12:02 +0100
committerJohannes 'fish' Ziemke <github@freigeist.org>2014-12-18 13:18:03 +0100
commit13e9b5ee8b59722e9fc404b184247fa75caa9047 (patch)
tree1557cf9ffc8415a160b6482f95d22e26f0ea2f1b /Dockerfile
parent318203921f1a29aa4824dd1c8dcfddba77a390cc (diff)
downloadprometheus_node_collector-13e9b5ee8b59722e9fc404b184247fa75caa9047.tar.bz2
prometheus_node_collector-13e9b5ee8b59722e9fc404b184247fa75caa9047.tar.xz
prometheus_node_collector-13e9b5ee8b59722e9fc404b184247fa75caa9047.zip
Simplify Dockerfile by using golang:onbuild image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 3 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index 38f1454..9191346 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,6 @@
1FROM ubuntu:13.10 1FROM golang:onbuild
2MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com> 2MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
3 3
4RUN apt-get update && apt-get install -yq curl git mercurial gcc 4ENTRYPOINT [ "go-wrapper", "run" ]
5RUN curl -s https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz | tar -C /usr/local -xzf - 5CMD [ "-logtostderr" ]
6ENV PATH /usr/local/go/bin:$PATH
7ENV GOPATH /go
8
9ADD . /usr/src/node_exporter
10RUN cd /usr/src/node_exporter && \
11 go get -d && go build && cp node_exporter /
12RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \
13 node_exporter.conf
14
15ENTRYPOINT [ "/node_exporter" ]
16EXPOSE 8080 6EXPOSE 8080