snmp-armada-app/stx-snmp-helm/docker/stx-snmp/Dockerfile.debian
Enzo Candotti c7d206abbf Update Debian base image to version 11
An update on the Debian container specified as 'debian' produced that
some packages like libpython2.7 and postgresql-13 were not found,
causing the daily builds to fail.

This commit specifies the version to be used as a base image in order to
fix that problem.

Test Plan:
PASS: Build stx-snmp, stx-fm-trap-subagent and stx-fm-subagent. Verify
all the containers can be built properly.

Closes-Bug: 2023703

Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com>
Change-Id: Ic4a2c69ea97ecfea3463c09d6de1b5c9dcdde6d3
2023-06-14 00:42:15 -03:00

23 lines
567 B
Docker
Executable File

FROM debian:11 AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install\
snmp snmpd snmptrapd \
libsnmp-dev \
gcc \
make \
uuid-dev
RUN ln -s /usr/lib/libuuid.so.1.3.0 /usr/lib/libuuid.so
WORKDIR /home
COPY ./src/* /home/src/
WORKDIR /home/src/
RUN make -f Makefile
FROM builder AS deployment-env
COPY ./mibs/* /usr/share/snmp/mibs/
COPY --from=builder /home/src/libsnmpAuditPlugin.so /usr/lib/
EXPOSE 161/udp
EXPOSE 162/udp
EXPOSE 705/tcp
CMD /usr/sbin/snmpd $OPTIONDEBUG -f