diff options
-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 |