Scott Little 0fd1e0fbaa Fix stx-fm-trap-subagent Dockerfile ref to PowerTools
PowerTools is not the correct repo name.  It should be
'powertools'.  This appears to be a change in the newly
released centos8.3.2011.  PowerTools os trademarked by
RedHat.

Closes-Bug: 1907277
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I55756a8005c1821c98194b372573757e0fb733bb
2020-12-08 11:13:05 -05:00

27 lines
545 B
Docker

FROM centos:8 AS builder
RUN yum -y update && yum upgrade
RUN yum -y install\
net-snmp-libs \
net-snmp-devel \
make
RUN dnf -y --enablerepo=powertools install json-c-devel
WORKDIR /home/trapagent
COPY src/* ./src/
COPY Makefile .
RUN make
FROM centos:8
RUN yum -y update && yum upgrade
RUN yum -y install\
net-snmp \
net-snmp-utils
WORKDIR /home/trapagent
COPY --from=builder /home/trapagent/wrsAlarmMIB .
COPY bootstrap.sh .
RUN chmod 755 ./bootstrap.sh
ENTRYPOINT ["./bootstrap.sh"]