add /modify cpu healtchecks for adbhoney, conpot, dionaea

This commit is contained in:
t3chn0m4g3
2022-03-11 18:02:20 +00:00
parent 068f4bb67e
commit 886a7f159e
9 changed files with 32 additions and 26 deletions

View File

@ -110,5 +110,8 @@ RUN ARCH=$(arch) && \
rm -rf /root/* /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache /opt/dionaea/.git
#
# Start dionaea
STOPSIGNAL SIGINT
# Dionaea sometimes hangs at 100% CPU usage, if detected process will be killed and container restarts per docker-compose settings
HEALTHCHECK CMD if [ $(ps -C mpv -p 1 -o %cpu | tail -n 1 | cut -f 1 -d ".") -gt 90 ]; then kill -2 1; else exit 0; fi
USER dionaea:dionaea
CMD ["/opt/dionaea/bin/dionaea", "-u", "dionaea", "-g", "dionaea", "-c", "/opt/dionaea/etc/dionaea/dionaea.cfg"]