mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
add /modify cpu healtchecks for adbhoney, conpot, dionaea
This commit is contained in:
@ -17,6 +17,7 @@ RUN apk --no-cache -U add \
|
||||
libxslt-dev \
|
||||
mariadb-dev \
|
||||
pkgconfig \
|
||||
procps \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py3-pip \
|
||||
@ -73,5 +74,7 @@ RUN apk --no-cache -U add \
|
||||
#
|
||||
# Start conpot
|
||||
STOPSIGNAL SIGINT
|
||||
# Conpot 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 conpot:conpot
|
||||
CMD exec /usr/bin/conpot --mibcache $CONPOT_TMP --temp_dir $CONPOT_TMP --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
|
||||
|
@ -23,8 +23,8 @@ services:
|
||||
- CONPOT_TMP=/tmp/conpot
|
||||
tmpfs:
|
||||
- /tmp/conpot:uid=2000,gid=2000
|
||||
cpu_count: 1
|
||||
cpus: 0.25
|
||||
# cpu_count: 1
|
||||
# cpus: 0.25
|
||||
networks:
|
||||
- conpot_local_default
|
||||
ports:
|
||||
@ -54,8 +54,8 @@ services:
|
||||
- CONPOT_TMP=/tmp/conpot
|
||||
tmpfs:
|
||||
- /tmp/conpot:uid=2000,gid=2000
|
||||
cpu_count: 1
|
||||
cpus: 0.25
|
||||
# cpu_count: 1
|
||||
# cpus: 0.25
|
||||
networks:
|
||||
- conpot_local_IEC104
|
||||
ports:
|
||||
@ -78,8 +78,8 @@ services:
|
||||
- CONPOT_TMP=/tmp/conpot
|
||||
tmpfs:
|
||||
- /tmp/conpot:uid=2000,gid=2000
|
||||
cpu_count: 1
|
||||
cpus: 0.25
|
||||
# cpu_count: 1
|
||||
# cpus: 0.25
|
||||
networks:
|
||||
- conpot_local_guardian_ast
|
||||
ports:
|
||||
@ -101,8 +101,8 @@ services:
|
||||
- CONPOT_TMP=/tmp/conpot
|
||||
tmpfs:
|
||||
- /tmp/conpot:uid=2000,gid=2000
|
||||
cpu_count: 1
|
||||
cpus: 0.25
|
||||
# cpu_count: 1
|
||||
# cpus: 0.25
|
||||
networks:
|
||||
- conpot_local_ipmi
|
||||
ports:
|
||||
@ -124,8 +124,8 @@ services:
|
||||
- CONPOT_TMP=/tmp/conpot
|
||||
tmpfs:
|
||||
- /tmp/conpot:uid=2000,gid=2000
|
||||
cpu_count: 1
|
||||
cpus: 0.25
|
||||
# cpu_count: 1
|
||||
# cpus: 0.25
|
||||
networks:
|
||||
- conpot_local_kamstrup_382
|
||||
ports:
|
||||
|
Reference in New Issue
Block a user