Skip to content

Commit cc60e6b

Browse files
authored
Issue #222 fix faulty samba-dc image; improve nut-upsd verbosity parameter (#225)
1 parent 2a35e54 commit cc60e6b

7 files changed

Lines changed: 16 additions & 7 deletions

File tree

images/nut-upsd/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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=

images/nut-upsd/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ DRIVER | usbhid-ups | driver (see [compatibility list](http://networkupstools.or
4545
GROUP | nut | local group
4646
MAXAGE | 15 | seconds before declaring driver non-responsive
4747
NAME | 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
4851
POLLINTERVAL | | Poll Interval for ups.conf
4952
PORT | auto | device port (e.g. /dev/ttyUSB0) on host
5053
SDORDER | | UPS shutdown sequence, set to -1 to disable shutdown
5154
SECRETNAME | nut-upsd-password | name of secret to use for API user
5255
SERIAL | | hardware serial number of UPS
53-
SERVER | master | master or slave priority for scripts
56+
SERVER | primary | primary instance shuts down after secondaries
5457
ULIMIT | 2048 | open-files ulimit
5558
USER | nut | local user
5659
VENDORID | | vendor ID for ups.conf

images/nut-upsd/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

images/nut-upsd/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ echo 0 > /var/run/upsmon.pid
7272
ulimit -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

images/nut-upsd/helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ sources:
66
- https://github.com/instantlinux/docker-tools
77
- https://github.com/networkupstools/nut
88
type: application
9-
version: 0.1.8
10-
appVersion: "2.8.2-r2"
9+
version: 0.1.9
10+
appVersion: "2.8.3-r2"
1111
dependencies:
1212
- name: chartlib
1313
version: 0.1.8

images/nut-upsd/helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

images/samba-dc/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ ARG SAMBA_VERSION=4.21.4-r4
2828

2929
COPY *.conf.j2 /root/
3030
COPY 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

0 commit comments

Comments
 (0)