From 02af7197da2939fa7ab4ae2e2f88b39a25043225 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Fri, 7 Feb 2014 19:35:57 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..48fc2bcd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:13.10 +MAINTAINER Prometheus Team + +ENV COLLECTORS NativeCollector +RUN apt-get update && apt-get install -yq curl git mercurial make +RUN curl -s https://go.googlecode.com/files/go1.2.linux-amd64.tar.gz | tar -C /usr/local -xzf - +ENV PATH /usr/local/go/bin:$PATH +ENV GOPATH /go + +ADD . /usr/src/node_exporter +RUN cd /usr/src/node_exporter && make && cp node_exporter / +RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \ + node_exporter.conf + +ENTRYPOINT [ "/node_exporter" ] +EXPOSE 8080