File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,12 +15,15 @@ ENV API_USER=upsmon \
1515 GROUP=nut \
1616 MAXAGE=15 \
1717 NAME=ups \
18+ NUT_DEBUG_LEVEL=0 \
19+ NUT_QUIET_INIT_SSL=true \
20+ NUT_QUIET_INIT_UPSNOTIFY=true \
1821 POLLINTERVAL= \
1922 PORT=auto \
2023 SDORDER= \
2124 SECRETNAME=nut-upsd-password \
2225 SERIAL= \
23- SERVER=master \
26+ SERVER=primary \
2427 ULIMIT=2048 \
2528 USER=nut \
2629 VENDORID=
Original file line number Diff line number Diff line change @@ -45,12 +45,15 @@ DRIVER | usbhid-ups | driver (see [compatibility list](http://networkupstools.or
4545GROUP | nut | local group
4646MAXAGE | 15 | seconds before declaring driver non-responsive
4747NAME | ups | user-assigned config name
48+ NUT_DEBUG_LEVEL | 0 | verbosity of debug messages
49+ NUT_QUIET_INIT_SSL | true | inhibit superfluous startup warning
50+ NUT_QUIET_INIT_UPSNOTIFY | true | inhibit superfluous startup warning
4851POLLINTERVAL | | Poll Interval for ups.conf
4952PORT | auto | device port (e.g. /dev/ttyUSB0) on host
5053SDORDER | | UPS shutdown sequence, set to -1 to disable shutdown
5154SECRETNAME | nut-upsd-password | name of secret to use for API user
5255SERIAL | | hardware serial number of UPS
53- SERVER | master | master or slave priority for scripts
56+ SERVER | primary | primary instance shuts down after secondaries
5457ULIMIT | 2048 | open-files ulimit
5558USER | nut | local user
5659VENDORID | | vendor ID for ups.conf
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ services:
55 image : ${REGISTRY_URI:-instantlinux}/nut-upsd:latest
66 restart : always
77 environment :
8+ NUT_DEBUG_LEVEL : 0
89 SERIAL : ${UPS_1_SERIAL}
910 ports :
1011 - ${PORT_UPSD_1:-3493}:3493
Original file line number Diff line number Diff line change @@ -72,4 +72,4 @@ echo 0 > /var/run/upsmon.pid
7272ulimit -n $ULIMIT
7373/usr/sbin/upsdrvctl -u root start
7474/usr/sbin/upsd -u $USER
75- exec /usr/sbin/upsmon -D
75+ exec /usr/sbin/upsmon -F
Original file line number Diff line number Diff line change 66- https://github.com/instantlinux/docker-tools
77- https://github.com/networkupstools/nut
88type : application
9- version : 0.1.8
10- appVersion : " 2.8.2 -r2"
9+ version : 0.1.9
10+ appVersion : " 2.8.3 -r2"
1111dependencies :
1212- name : chartlib
1313 version : 0.1.8
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ deployment:
33 env :
44 driver : usbhid-ups
55 maxage : 15
6+ nut_debug_level : 0
67 serial : mustbeset
78 securityContext :
89 privileged : true
Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ ARG SAMBA_VERSION=4.21.4-r4
2828
2929COPY *.conf.j2 /root/
3030COPY entrypoint.sh /usr/local/bin/
31- RUN apk add --update --no-cache krb5 ldb-tools samba-dc=$SAMBA_VERSION samba-winbind-clients=$SAMBA_VERSION tdb \
32- bind bind-libs bind-tools libcrypto3 libxml2 tzdata py3-setuptools py3-pip && \
31+ RUN apk add --update --no-cache krb5 ldb-tools samba-dc=$SAMBA_VERSION \
32+ samba-winbind-clients=$SAMBA_VERSION tdb bind bind-libs bind-tools \
33+ libcrypto3 libxml2 tzdata py3-cryptography py3-setuptools py3-pip && \
3334 pip install jinjanator --break-system-packages && \
3435 apk del py3-pip && \
3536 chmod 0755 /usr/local/bin/entrypoint.sh
You can’t perform that action at this time.
0 commit comments