container-images/telegraf-snmp/Dockerfile
dresi 46e0a70521
Some checks failed
Build and push rsyncd image / build-and-push-image (push) Failing after 6m3s
Build and push telegraf-snmp image / build-and-push-image (push) Failing after 6m4s
feat: initial structure with rsyncd and telegraf-snmp images
2026-06-10 10:29:16 +02:00

16 lines
709 B
Docker

FROM telegraf:latest
LABEL org.opencontainers.image.authors="dockerimage@dresi.wtf"
RUN apt-get update && \
apt-get install -y --no-install-recommends snmp-mibs-downloader wget && \
download-mibs 2>/dev/null || true && \
wget -q -O /usr/share/snmp/mibs/UBNT-MIB \
https://raw.githubusercontent.com/librenms/librenms/master/mibs/ubiquiti/UBNT-MIB && \
wget -q -O /usr/share/snmp/mibs/UBNT-UniFi-MIB \
https://raw.githubusercontent.com/librenms/librenms/master/mibs/ubiquiti/UBNT-UniFi-MIB && \
echo "mibs +ALL" >> /etc/snmp/snmp.conf && \
apt-get remove -y wget && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/