diff --git a/.dockerignore b/.dockerignore index ee731c9..c394d20 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,8 +6,21 @@ !/configure !/configure.ac !/install-sh +!/Makefile.am !/Makefile.in !/snmp_bulkget.c !/snmp_bulkget.h !/utils.c !/utils.h +!/check_interfaces.c +!/AUTHORS +!/NEWS +!/COPYING +!/config.guess +!/config.sub +!/missing +!/compile +!/ChangeLog +!/INSTALL +!/depcomp +!/README.md diff --git a/Dockerfile b/Dockerfile index e1f31ee..47ed896 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,17 +7,20 @@ ONBUILD ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y \ build-essential \ + autoconf \ libsnmp-dev \ && rm -rf /var/lib/apt/lists/* COPY . . -RUN ./configure --libexecdir=/src \ +COPY ./README.md ./README +RUN ls -R \ + && ./configure --libexecdir=/src \ && make $target FROM debian:stable-slim ONBUILD ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y \ - libsnmp30 \ + libsnmp40 \ && rm -rf /var/lib/apt/lists/* COPY --from=0 /src/check_interfaces /check_interfaces diff --git a/Makefile.in b/Makefile.in index adff27d..59777cc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -161,7 +161,7 @@ am__define_uniq_tagged_files = \ done | $(am__uniquify_input)` AM_RECURSIVE_TARGETS = cscope am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \ - INSTALL NEWS README.md compile config.guess config.sub depcomp \ + INSTALL NEWS README compile config.guess config.sub depcomp \ install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) diff --git a/check_interfaces.c b/check_interfaces.c index 622bdad..2c2a189 100644 --- a/check_interfaces.c +++ b/check_interfaces.c @@ -1,9 +1,18 @@ + + +// This one is needed on FreeBSD and it has to be before the others or at least some of them +#include + + #include "snmp_bulkget.h" #include "utils.h" #include #include #include #include +#include +#include +#include /* * text strings to output in the perfdata