Sign inSign up

homeall/prometheus-nats-exporter

By homeall

Updated about 5 years ago

Multi Arch image.

Image
0

2.5K

homeall/prometheus-nats-exporter repository overview

Dockerfile:

# Golang binary building stage
FROM golang:1.15

# download the source
WORKDIR /go/src/github.com/nats-io/prometheus-nats-exporter
RUN git clone https://github.com/nats-io/prometheus-nats-exporter.git .

# build 
RUN CGO_ENABLED=0 go build -v -a -tags netgo -installsuffix netgo -ldflags "-s -w"

# Final docker image building stage
FROM scratch
COPY --from=0 /go/src/github.com/nats-io/prometheus-nats-exporter/prometheus-nats-exporter /prometheus-nats-exporter
EXPOSE 7777
ENTRYPOINT ["/prometheus-nats-exporter"]
CMD ["--help"]

It is running a cronjob monthly on Github to get the latest changes.

The major change is building as multi-arch.

Tag summary

Content type

Image

Digest

Size

3.7 MB

Last updated

about 5 years ago

docker pull homeall/prometheus-nats-exporter