Browse Source

Made build work again.

TODO: Find a better fork of lustre-exporter
pull/17/head
Egon Rijpkema 4 months ago
parent
commit
210c8a6911
  1. 46
      promtools/Dockerfile

46
promtools/Dockerfile

@ -1,37 +1,27 @@
FROM golang:1.11-stretch
FROM golang:latest
MAINTAINER Egon Rijpkema <e.m.a.rijpkema@rug.nl>
RUN mkdir /results
RUN go get github.com/prometheus/node_exporter && \
cd ${GOPATH-$HOME/go}/src/github.com/prometheus/node_exporter && \
make && \
cp node_exporter /results
RUN go get github.com/robustperception/pushprox/proxy && \
cd ${GOPATH-$HOME/go}/src/github.com/robustperception/pushprox/proxy && \
go build && \
cp /go/bin/proxy /results
RUN go get github.com/robustperception/pushprox/client && \
cd ${GOPATH-$HOME/go}/src/github.com/robustperception/pushprox/client && \
go build && \
cp /go/bin/client /results
RUN go get github.com/HewlettPackard/lustre_exporter && \
cd ${GOPATH-$HOME/go}/src/github.com/HewlettPackard/lustre_exporter && \
go build && \
cp /go/bin/lustre_exporter /results
RUN go get github.com/vpenso/prometheus-slurm-exporter && \
cd ${GOPATH-$HOME/go}/src/github.com/vpenso/prometheus-slurm-exporter && \
go build && \
RUN go install github.com/prometheus/node_exporter@latest && \
cp /go/bin/node_exporter /results
RUN cd / && \
git clone https://github.com/prometheus-community/pushprox.git && \
cd pushprox && \
make build && \
bash -c "cp pushprox-{client,proxy} /results"
#RUN go install github.com/HewlettPackard/lustre_exporter@latest && \
# cp /go/bin/lustre_exporter /results
# Broken in newer golang
RUN go install github.com/vpenso/prometheus-slurm-exporter@latest && \
cp /go/bin/prometheus-slurm-exporter /results
RUN go get git.webhosting.rug.nl/HPC/nvidia_smi_exporter.git && \
cd "${GOPATH-$HOME/go}/src/git.webhosting.rug.nl/HPC/nvidia_smi_exporter.git" && \
go build && \
cp nvidia_smi_exporter.git /results/nvidia_smi_exporter
RUN go install git.webhosting.rug.nl/HPC/nvidia_smi_exporter.git@latest && \
cp /go/bin/nvidia_smi_exporter.git /results/nvidia_smi_exporter
CMD /go/bin/proxy
Loading…
Cancel
Save