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:
parent
7bdc5045b2
commit
5a09dcbf13
7 changed files with 53 additions and 3 deletions
|
|
@ -145,6 +145,11 @@ RUN apk add --update sudo curl procps grep make bash expect
|
|||
# For SNMP
|
||||
RUN apk add --update net-snmp net-snmp-tools
|
||||
|
||||
# Some custom configuration for SNMP
|
||||
RUN sed -i 's/#rocommunity public localhost/rocommunity public localhost/' /etc/snmp/snmpd.conf
|
||||
RUN echo "agentXSocket unix:/var/run/snmp.sock" >> /etc/snmpd.conf
|
||||
RUN echo "agentxperms 777 777" >> /etc/snmpd.conf
|
||||
|
||||
# Expose https port for restconf
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 443/tcp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue