-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile.arm64v8
29 lines (22 loc) · 977 Bytes
/
Dockerfile.arm64v8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM --platform=linux/arm64v8 jarischaefer/baseimage-librenms:4.2-arm64v8
ADD qemu-aarch64-static /usr/bin
EXPOSE 80 443
ENV TZ=UTC \
RRDCACHED_LISTEN=unix:/var/run/rrdcached/rrdcached.sock \
RRDCACHED_CONNECT=unix:/var/run/rrdcached/rrdcached.sock \
SNMP_SCAN_CRON="0 0 * * *" \
WEATHERMAP_CRON="*/5 * * * *" \
POLLERS=8 \
POLLERS_CRON="*/5 * * * *" \
INSTALL=false \
PHP_FPM_WORKERS_MIN=1 \
PHP_FPM_WORKERS_MAX=4
ADD pre_install /
RUN chmod +x /build/install && /build/install && rm -r /build
ADD post_install /
RUN chmod -R +x /etc/my_init.d /etc/service /usr/local/bin && \
find /opt/librenms \( ! -user librenms -o ! -group librenms \) | xargs -L25 -r chown -h librenms:librenms && \
chmod 644 /etc/cron.d/* /etc/librenms/cron/*
VOLUME ["/opt/librenms/logs", "/opt/librenms/rrd", "/opt/librenms/storage"]
VOLUME ["/opt/librenms/html/plugins/Weathermap/configs", "/opt/librenms/html/plugins/Weathermap/output"]
VOLUME ["/etc/nginx/ssl", "/var/log/nginx"]