Remove make call from Dockerfile

This commit is contained in:
Johannes 'fish' Ziemke 2014-02-12 18:37:45 +01:00
parent f8c5bc9f2b
commit c114831f4e

View File

@ -1,14 +1,14 @@
FROM ubuntu:13.10 FROM ubuntu:13.10
MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com> MAINTAINER Prometheus Team <prometheus-developers@googlegroups.com>
ENV COLLECTORS NativeCollector
RUN apt-get update && apt-get install -yq curl git mercurial make 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 - 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 PATH /usr/local/go/bin:$PATH
ENV GOPATH /go ENV GOPATH /go
ADD . /usr/src/node_exporter ADD . /usr/src/node_exporter
RUN cd /usr/src/node_exporter && make && cp node_exporter / RUN cd /usr/src/node_exporter && \
go get -d && go build && cp node_exporter /
RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \ RUN printf '{ "scrapeInterval": 10, "attributes": {} }' > \
node_exporter.conf node_exporter.conf