Run tests as appropriate group
Need to add "groupadd" and "groupdel" for Alpine. See: https://github.com/gliderlabs/docker-alpine/issues/326
This commit is contained in:
parent
62401b72d0
commit
3a2ffd4233
16 changed files with 51 additions and 34 deletions
|
|
@ -41,6 +41,9 @@ RUN apk add --update git make build-base gcc flex bison fcgi-dev curl-dev
|
|||
# For netsnmp
|
||||
RUN apk add --update net-snmp net-snmp-dev
|
||||
|
||||
# For groupadd/groupdel
|
||||
RUN apk add --update shadow
|
||||
|
||||
# Checkout standard YANG models for tests (note >1G for full repo)
|
||||
RUN mkdir -p /usr/local/share/yang
|
||||
WORKDIR /usr/local/share/yang
|
||||
|
|
|
|||
|
|
@ -44,6 +44,9 @@ RUN apk add --update nghttp2
|
|||
# For netsnmp
|
||||
RUN apk add --update net-snmp net-snmp-dev
|
||||
|
||||
# For groupadd/groupdel
|
||||
RUN apk add --update shadow
|
||||
|
||||
# Checkout standard YANG models for tests (note >1G for full repo)
|
||||
RUN mkdir -p /usr/local/share/yang
|
||||
WORKDIR /usr/local/share/yang
|
||||
|
|
@ -138,7 +141,7 @@ RUN apk add --update net-snmp net-snmp-tools
|
|||
RUN echo "master agentx" > /etc/snmp/snmpd.conf
|
||||
RUN echo "agentaddress 127.0.0.1" >> /etc/snmp/snmpd.conf
|
||||
RUN echo "rwcommunity public localhost" >> /etc/snmp/snmpd.conf
|
||||
RUN echo "agentXSocket unix:/var/run/snmp.sock" >> /etc/snmp/snmpd.conf
|
||||
RUN echo "agentxsocket unix:/var/run/snmp.sock" >> /etc/snmp/snmpd.conf
|
||||
RUN echo "agentxperms 777 777" >> /etc/snmp/snmpd.conf
|
||||
|
||||
# Expose https port for restconf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue