diff options
author | Ladue, David (dl3158) <dl3158@att.com> | 2018-03-22 17:32:07 -0400 |
---|---|---|
committer | Ladue, David (dl3158) <dl3158@att.com> | 2018-03-22 17:33:44 -0400 |
commit | e0b9a69c01845eb32baaf9029b1775b81d78906f (patch) | |
tree | d8deb7079ba9c3466f1a20bd6088a62f4ecc0f50 | |
parent | 86a53c2073d33dfd30c1a5d9f0af720949e0ad33 (diff) |
changed docker port fwd to udp
Change-Id: I5614f95e52712e544b29746756bc25b95661f94b
Issue-ID: DCAEGEN2-271
Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
-rw-r--r-- | Dockerfile | 2 | ||||
-rwxr-xr-x | bin/snmptrapd.sh | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -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 |