2019-10-11 19:38:21 +00:00
|
|
|
# Build /go/bin/ipmi_exporter
|
2021-02-20 03:18:54 +00:00
|
|
|
FROM quay.io/prometheus/golang-builder:1.15-base AS builder
|
2019-10-26 13:20:09 +00:00
|
|
|
ADD . /go/src/github.com/soundcloud/ipmi_exporter/
|
|
|
|
RUN cd /go/src/github.com/soundcloud/ipmi_exporter && make
|
2019-10-11 19:38:21 +00:00
|
|
|
|
|
|
|
# Container image
|
|
|
|
FROM ubuntu:18.04
|
|
|
|
WORKDIR /
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install freeipmi-tools -y --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-02-19 06:02:25 +00:00
|
|
|
COPY --from=builder /go/src/github.com/soundcloud/ipmi_exporter/ipmi_exporter /bin/ipmi_exporter
|
2019-10-11 19:38:21 +00:00
|
|
|
|
|
|
|
EXPOSE 9290
|
2019-10-26 13:20:09 +00:00
|
|
|
ENTRYPOINT ["/bin/ipmi_exporter"]
|
|
|
|
CMD ["--config.file", "/config.yml"]
|