From e0b9a69c01845eb32baaf9029b1775b81d78906f Mon Sep 17 00:00:00 2001 From: "Ladue, David (dl3158)" Date: Thu, 22 Mar 2018 17:32:07 -0400 Subject: changed docker port fwd to udp Change-Id: I5614f95e52712e544b29746756bc25b95661f94b Issue-ID: DCAEGEN2-271 Signed-off-by: Ladue, David (dl3158) --- Dockerfile | 2 +- bin/snmptrapd.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8c8ae5..9475936 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN useradd -d ${APPDIR} ${APPUSER} WORKDIR ${APPDIR} -EXPOSE 162 +EXPOSE 162:162/udp # Copy the current directory contents into the container at ${APPDIR} COPY ./bin/ ./bin/ diff --git a/bin/snmptrapd.sh b/bin/snmptrapd.sh index 52f3913..c4712f6 100755 --- a/bin/snmptrapd.sh +++ b/bin/snmptrapd.sh @@ -37,7 +37,9 @@ export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt # PYTHONUNBUFFERED: # set PYTHONUNBUFFERED to a non-empty string to avoid output buffering; # comment out for runtime environments/better performance! -export PYTHONUNBUFFERED="True" +# FIXME: This does *NOT* appear to work as desired, so +# we've added "-u" to command line below +# export PYTHONUNBUFFERED="True" # set location of config broker server overrride IF NEEDED # @@ -46,7 +48,7 @@ export CBS_SIM_JSON=../etc/snmptrapd.json # want tracing? Use this: # python -m trace --trackcalls snmptrapd.py -v # want verbose logging? Use this: -# python snmptrapd.py -v +# python -u snmptrapd.py -v # standard startup? Use this: # python snmptrapd.py -python snmptrapd.py -v +python -u snmptrapd.py -v -- cgit 1.2.3-korg