Added mibs into container & fixed alpine version

This commit is contained in:
David Chidell 2019-02-26 10:42:09 +00:00
parent 66b14c90dd
commit 0606754238
3 changed files with 4 additions and 6 deletions

View File

@ -1,11 +1,8 @@
FROM alpine:latest
FROM alpine:3.8
MAINTAINER David Chidell (dchidell@cisco.com)
RUN apk --no-cache add net-snmp
RUN echo 'disableAuthorization yes' > /etc/snmp/snmptrapd.conf
ADD mibs.tar.gz /mibs/
ADD snmptrapd.conf /etc/snmp/snmptrapd.conf
EXPOSE 162
VOLUME ["/mibs"]
CMD ["snmptrapd","-L","o","-f","-M","/mibs","-m","ALL"]

BIN
mibs.tar.gz Normal file

Binary file not shown.

1
snmptrapd.conf Normal file
View File

@ -0,0 +1 @@
disableAuthorization yes