From: Kai Moritz Date: Fri, 24 Feb 2023 21:18:28 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2ed212373b8c17c104538e745de107d67ad674ee;p=demos%2Fkafka%2Fmonitoring WIP --- diff --git a/burrow_exporter/Dockerfile b/burrow_exporter/Dockerfile index b9a68e9..1e0d2e9 100644 --- a/burrow_exporter/Dockerfile +++ b/burrow_exporter/Dockerfile @@ -1,17 +1,15 @@ -FROM golang:alpine as glide +FROM golang:1.14.0-alpine as golang RUN apk update RUN apk add git -RUN go install github.com/Masterminds/glide@latest WORKDIR /go/src/github.com/jirwin/burrow_exporter run git clone https://github.com/jirwin/burrow_exporter.git . -RUN glide install -RUN go build burrow-exporter.go +RUN go build -FROM alpine -COPY --from=glide /go/src/github.com/jirwin/burrow_exporter/burrow-exporter . +FROM alpine:3.9 +COPY --from=golang /go/src/github.com/jirwin/burrow_exporter/burrow-exporter /opt ENV BURROW_ADDR http://localhost:8000 ENV METRICS_ADDR 0.0.0.0:8080 ENV INTERVAL 30 ENV API_VERSION 2 -ENTRYPOINT [ "burrow-exporter" ] +ENTRYPOINT [ "/opt/burrow-exporter" ] CMD [ "--burrow-addr", $BURROW_ADDR, "--metrics-addr", $METRICS_ADDR, "--interval", $INTERVAL, "--api-version", $API_VERSION ]