diff options
author | Jack Lucas <jflos@sonoris.net> | 2023-11-15 12:10:36 -0500 |
---|---|---|
committer | Jack Lucas <jflos@sonoris.net> | 2023-12-07 13:50:55 -0500 |
commit | bca2314b1351eccaf25d573fa973351a35b43e24 (patch) | |
tree | ca59049d2868e5a26a8d7840c3b4d7a0516737db /Dockerfile | |
parent | 5d4f1f1e8248116325164fb7aa3d8058fcd9b037 (diff) |
[SNMPTRAP] Use latest cbs library2.0.8
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 <jflos@sonoris.net>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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/ |