node_exporter/Dockerfile
Johannes 'fish' Ziemke e8ebcede5b Install GCC in Dockerfile
This also removes make which isn't in use anymore.
2014-06-20 18:16:02 +02:00

17 lines
621 B
Docker

FROM ubuntu:13.10
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
RUN apt-get update && apt-get install -yq curl git mercurial gcc
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 && \
go get -d && go build && cp node_exporter /
RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \
node_exporter.conf
ENTRYPOINT [ "/node_exporter" ]
EXPOSE 8080