snmp-exporter (trixie-latest)

Published 2024-05-31 15:33:53 +02:00 by dsimon

Installation

docker pull git.d120.de/dsimon/snmp-exporter:trixie-latest
sha256:b93361822a9664eb10db610542b1d0c0cbfb406cf6959ce5797273b9e4dedc48

Image Layers

ADD file:6ca69a87b27d32cbf31b0d06d4e090d8fa6278a69ad5aff169e2671b9167ba65 in /
CMD ["bash"]
WORKDIR /app
ENV ROOT=/app
RUN /bin/sh -c apt-get --assume-yes update && apt-get --assume-yes upgrade && apt-get --assume-yes install --no-install-recommends --no-install-suggests prometheus-snmp-exporter s6 zstd # buildkit
RUN /bin/sh -c usermod --home $(pwd) prometheus && mkdir --parents ./config ./data ./default ./log ./share && mkdir --parents ./share/mibs/prefetched ./share/mibs/custom && chown --recursive root:root . && find . -type f -exec chmod 644 '{}' + && find . -type d -exec chmod 755 '{}' + && chown --recursive prometheus:prometheus ./data ./log # buildkit
COPY /var/lib/mibs ./share/mibs/prefetched # buildkit
RUN /bin/sh -c ln --symbolic /usr/share/snmp/mibs ./share/mibs/prefetched/base && find ./share/mibs/prefetched -type f -exec chmod 644 '{}' + && find ./share/mibs/prefetched -type d -exec chmod 755 '{}' + # buildkit
COPY ./default ./default # buildkit
COPY ./snmp-exporter.sh ./snmp-exporter.sh # buildkit
USER prometheus:prometheus
ENTRYPOINT ["./snmp-exporter.sh"]
Details
Container
2024-05-31 15:33:53 +02:00
0
OCI / Docker
linux/amd64
111 MiB
Versions (1) View all
trixie-latest 2024-05-31