Change dockerfiles and start scripts to install Net-SNMP, configure snmpd properly

and make sure it is started. This is needed for the SNMP tests (test_snm*) to run properly.
Since we can't rely on systemd in Alpine we start snmpd from the startsystem-scripts.
This commit is contained in:
Kristofer Hallin 2022-05-04 10:36:37 -07:00 committed by Olof hagsand
parent 7bdc5045b2
commit 5a09dcbf13
7 changed files with 53 additions and 3 deletions

View file

@ -82,6 +82,10 @@ chmod 775 /usr/local/bin/test/site.sh
/usr/local/sbin/clixon_backend -D $DBG -s running -l e # logs on docker logs
>&2 echo "clixon_backend started"
# Start snmpd, we need this for the SNMP tests and the app clixon_snmp. Log to stdout, then we can
# use Docker logs to see what's happening.
snmpd -Lo -p /run/snmpd.pid
# Alt: let backend be in foreground, but test scripts may
# want to restart backend
/bin/sleep 100000000