Browse Source
Allow LISTEN_ADDRESS environment variable
pull/5/head
Lukas Wolfsteiner
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
4 deletions
-
Dockerfile
|
|
@ -2,11 +2,14 @@ FROM golang:rc-alpine3.13 AS builder |
|
|
|
RUN go get github.com/sberk42/fritzbox_exporter/ |
|
|
|
|
|
|
|
FROM alpine:latest |
|
|
|
ENV USERNAME="username" |
|
|
|
ENV PASSWORD="password" |
|
|
|
ENV GATEWAY_URL="http://fritz.box:49000" |
|
|
|
ENV USERNAME username |
|
|
|
ENV PASSWORD password |
|
|
|
ENV GATEWAY_URL http://fritz.box:49000 |
|
|
|
ENV LISTEN_ADDRESS 0.0.0.0:9042 |
|
|
|
WORKDIR /root/ |
|
|
|
COPY --from=builder /go/bin/fritzbox_exporter . |
|
|
|
COPY metrics.json metrics-lua.json ./ |
|
|
|
EXPOSE 9042 |
|
|
|
ENTRYPOINT ./fritzbox_exporter -gateway-url ${GWURL} -password ${PASSWORD} -username ${USERNAME} -listen-address 0.0.0.0:9042 |
|
|
|
ENTRYPOINT [ "./fritzbox_exporter" ] |
|
|
|
CMD ./fritzbox_exporter -username $USERNAME -password $PASSWORD |
|
|
|
ENTRYPOINT ./fritzbox_exporter -gateway-url ${GWURL} -password ${PASSWORD} -username ${USERNAME} -listen-address ${LISTEN_ADDRESS} |
|
|
|