
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 (cherry picked from commit c7d206abbf7267077dbf0e31b00b0d20e06977de)
22 lines
470 B
Docker
22 lines
470 B
Docker
FROM debian:11 AS base
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get -y update
|
|
RUN apt-get -y install\
|
|
snmp snmpd snmptrapd \
|
|
libjson-c-dev \
|
|
libsnmp-dev \
|
|
gcc \
|
|
make
|
|
|
|
WORKDIR /home/trapagent
|
|
COPY src/* ./src/
|
|
COPY Makefile .
|
|
RUN make
|
|
|
|
FROM base AS deployment-env
|
|
WORKDIR /home/trapagent
|
|
COPY --from=base /home/trapagent/wrsAlarmMIB .
|
|
COPY bootstrap.sh .
|
|
RUN chmod 755 ./bootstrap.sh
|
|
ENTRYPOINT ["./bootstrap.sh"]
|