Skip to content

Commit 7c9adae

Browse files
committed
added distroless version and added opencontainer tags to the docker images
Signed-off-by: Sebastian Schubert <basti@schubert.digital>
1 parent b3a54c2 commit 7c9adae

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ ARG ARCH="amd64"
22
ARG OS="linux"
33
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc
44
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
5+
LABEL org.opencontainers.image.authors="The Prometheus Authors"
6+
LABEL org.opencontainers.image.vendor="Prometheus"
7+
LABEL org.opencontainers.image.title="snmp_exporter"
8+
LABEL org.opencontainers.image.description="Prometheus SNMP Exporter"
9+
LABEL org.opencontainers.image.source="https://github.com/prometheus-community/fortigate_exporter"
10+
LABEL org.opencontainers.image.url="https://github.com/prometheus-community/fortigate_exporter"
11+
LABEL org.opencontainers.image.documentation="https://github.com/prometheus-community/fortigate_exporter/blob/main/README.md"
12+
LABEL org.opencontainers.image.licenses="Apache License 2.0"
13+
LABEL io.prometheus.image.variant="busybox"
514

615
ARG ARCH="amd64"
716
ARG OS="linux"

Dockerfile.distroless

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ARG DISTROLESS_ARCH="amd64"
2+
FROM gcr.io/distroless/static-debian13:nonroot-${DISTROLESS_ARCH}
3+
4+
ARG ARCH="amd64"
5+
ARG OS="linux"
6+
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
7+
LABEL org.opencontainers.image.authors="The Prometheus Authors"
8+
LABEL org.opencontainers.image.vendor="Prometheus"
9+
LABEL org.opencontainers.image.title="snmp_exporter"
10+
LABEL org.opencontainers.image.description="Prometheus SNMP Exporter"
11+
LABEL org.opencontainers.image.source="https://github.com/prometheus-community/fortigate_exporter"
12+
LABEL org.opencontainers.image.url="https://github.com/prometheus-community/fortigate_exporter"
13+
LABEL org.opencontainers.image.documentation="https://github.com/prometheus-community/fortigate_exporter/blob/main/README.md"
14+
LABEL org.opencontainers.image.licenses="Apache License 2.0"
15+
LABEL io.prometheus.image.variant="distroless"
16+
17+
ARG ARCH="amd64"
18+
ARG OS="linux"
19+
COPY .build/${OS}-${ARCH}/fortigate_exporter /bin/fortigate_exporter
20+
21+
EXPOSE 9710
22+
ENTRYPOINT [ "/bin/fortigate_exporter" ]

0 commit comments

Comments
 (0)