Extend features to monitor ups.

This commit is contained in:
2021-12-17 14:27:15 +01:00
parent 2bcb6147b3
commit bc23fdb0ed
4 changed files with 872 additions and 0 deletions

22
monitoring/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM alpine:latest
RUN apk update && apk upgrade
RUN apk add --no-cache libusb apcupsd apcupsd-doc apcupsd-webif apache2
COPY apache2.conf /etc/apache2/httpd.conf
COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
# COPY dockerrun.sh /entrypoint/run.sh
# RUN [ "/sbin/apcupsd" ]
#RUN /usr/bin/fcgiwrap -f -s unix:/var/run/fcgiwrap.socket & sleep 1
#RUN [ "chown", "nginx:nginx", "/var/run/fcgiwrap.socket" ]
# RUN [ "nginx", "-g", "daemon off;" ]
# RUN chmod +x /entrypoint/run.sh
VOLUME [ "/etc/apcupsd" ]
EXPOSE 80 3551/tcp 3551/udp
ENTRYPOINT httpd -k start && /sbin/apcupsd -b