6d224861 came from a --no-checkout worktree whose empty index made the
commit drop every file except two. This restores 05b50d2b's full tree and
correctly adds stacks/stem95su/gdrive-sync.tf + the service-catalog stem95su
entry. Forward-only (parent=6d224861, no force-push); [ci skip] since the
live infra was never applied from the broken commit.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
926 B
Docker
27 lines
926 B
Docker
# dockerhub: viktorbarzin/redfish-exporter
|
|
# repo: https://pkg.go.dev/github.com/jenningsloy318/redfish_exporter#section-readme
|
|
FROM golang:rc-bullseye AS builder
|
|
|
|
LABEL maintainer="Viktor Barzin <me@viktorbarzin.me>"
|
|
|
|
ARG ARCH=amd64
|
|
|
|
ENV GOROOT /usr/local/go
|
|
ENV GOPATH /go
|
|
ENV PATH "$GOROOT/bin:$GOPATH/bin:$PATH"
|
|
ENV GO_VERSION 1.15.2
|
|
ENV GO111MODULE=on
|
|
|
|
|
|
# Build dependencies
|
|
RUN mkdir -p /go/src/github.com/ && \
|
|
git clone https://github.com/jenningsloy318/redfish_exporter /go/src/github.com/jenningsloy318/redfish_exporter && \
|
|
cd /go/src/github.com/jenningsloy318/redfish_exporter && \
|
|
make build
|
|
|
|
FROM golang:rc-bullseye
|
|
|
|
COPY --from=builder /go/src/github.com/jenningsloy318/redfish_exporter/build/redfish_exporter /usr/local/bin/redfish_exporter
|
|
RUN mkdir /etc/prometheus
|
|
# config file mounter at runtime
|
|
CMD ["/usr/local/bin/redfish_exporter", "--config.file", "/etc/prometheus/redfish_exporter.yml"]
|