From bca2314b1351eccaf25d573fa973351a35b43e24 Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Wed, 15 Nov 2023 12:10:36 -0500 Subject: [SNMPTRAP] Use latest cbs library Update to use latest cbs library (2.2.1) in requirements.txt. Pin pyasn1 library to 0.4.8. Later versions are incompatible with the (no longer maintained) pysnmp library. Pin python version to 3.8.x in Dockerfile. Fix EXPOSE syntax in Dockerfile. Issue-ID: DCAEGEN2-3409 Change-Id: I34248376d7c4c2fefa97cee51fc4ff341000375b Signed-off-by: Jack Lucas --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 6a79013..49a749d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ +# Copyright (c) 2023 J. F. Lucas. All rights reserved. +# (Previous versions by other authors did not have copyright notice.) # Use an official pypy runtime as a base image -FROM pypy:3 +FROM pypy:3.8 ENV INSROOT /opt/app ENV APPUSER snmptrap @@ -14,7 +16,7 @@ RUN useradd -d ${APPDIR} ${APPUSER} WORKDIR ${APPDIR} -EXPOSE 162:6162/udp +EXPOSE 6162/udp # Copy the current directory contents into the container at ${APPDIR} COPY ./snmptrap/ ./bin/ -- cgit 1.2.3-korg