Add Dockerfile

This commit is contained in:
Johannes 'fish' Ziemke 2014-02-07 19:35:57 +01:00
parent 04380ae60a
commit 02af7197da
1 changed files with 16 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:13.10
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
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