Install the needed MIB for our Docker tests and wait a few seconds for snmpd to start.
This commit is contained in:
parent
9d5a14ef99
commit
53cd1fdf09
2 changed files with 6 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ RUN install *.sh /clixon/build/bin/test
|
||||||
RUN install *.exp /clixon/build/bin/test
|
RUN install *.exp /clixon/build/bin/test
|
||||||
RUN install clixon.png /clixon/build/bin/test
|
RUN install clixon.png /clixon/build/bin/test
|
||||||
|
|
||||||
|
RUN install -d /clixon/build/mibs
|
||||||
|
RUN install mibs/* /clixon/build/mibs
|
||||||
|
|
||||||
# Copy startscript
|
# Copy startscript
|
||||||
WORKDIR /clixon
|
WORKDIR /clixon
|
||||||
COPY startsystem_native.sh startsystem.sh
|
COPY startsystem_native.sh startsystem.sh
|
||||||
|
|
@ -164,6 +167,7 @@ COPY --from=0 /usr/local/share/yang/* /usr/local/share/yang/standard/
|
||||||
COPY --from=0 /usr/local/share/yang/* /usr/local/share/yang/experimental/
|
COPY --from=0 /usr/local/share/yang/* /usr/local/share/yang/experimental/
|
||||||
COPY --from=0 /usr/local/share/openconfig/* /usr/local/share/openconfig/
|
COPY --from=0 /usr/local/share/openconfig/* /usr/local/share/openconfig/
|
||||||
COPY --from=0 /usr/local/share/mib-yangs/* /usr/local/share/mib-yangs/
|
COPY --from=0 /usr/local/share/mib-yangs/* /usr/local/share/mib-yangs/
|
||||||
|
COPY --from=0 /clixon/build/mibs/* /usr/share/snmp/mibs/
|
||||||
|
|
||||||
# Start the backend and restconf deamons
|
# Start the backend and restconf deamons
|
||||||
CMD /usr/local/bin/startsystem.sh
|
CMD /usr/local/bin/startsystem.sh
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,8 @@ openssl req -x509 -config ./ca.cnf -nodes -newkey rsa:4096 -keyout /etc/ssl/priv
|
||||||
# use Docker logs to see what's happening.
|
# use Docker logs to see what's happening.
|
||||||
snmpd -Lo -p /var/run/snmpd.pid -I -ifXTable -I -ifTable -I -system_mib -I -sysORTable
|
snmpd -Lo -p /var/run/snmpd.pid -I -ifXTable -I -ifTable -I -system_mib -I -sysORTable
|
||||||
|
|
||||||
|
sleep 3
|
||||||
|
|
||||||
# Alt: let backend be in foreground, but test scripts may
|
# Alt: let backend be in foreground, but test scripts may
|
||||||
# want to restart backend
|
# want to restart backend
|
||||||
/bin/sleep 100000000
|
/bin/sleep 100000000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue