mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
playing with signals
This commit is contained in:
@ -21,6 +21,7 @@ RUN apk -U --no-cache add bash \
|
||||
python-dev \
|
||||
py-cffi \
|
||||
py-cryptography \
|
||||
py-pip \
|
||||
tcpdump \
|
||||
wget && \
|
||||
|
||||
@ -31,6 +32,7 @@ RUN apk -U --no-cache add bash \
|
||||
cp /root/dist/requirements.txt /opt/conpot/ && \
|
||||
# Patch to accept ENV for MIB path
|
||||
cp /root/dist/snmp_server.py /opt/conpot/conpot/protocols/snmp/ && \
|
||||
pip install -U pip setuptools && \
|
||||
python setup.py install && \
|
||||
cd / && \
|
||||
# Monkey patch, see https://github.com/mushorg/conpot/issues/361
|
||||
@ -64,4 +66,4 @@ RUN apk -U --no-cache add bash \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Start conpot
|
||||
CMD /usr/bin/conpot --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
|
||||
CMD exec /usr/bin/conpot --template $CONPOT_TEMPLATE --logfile $CONPOT_LOG --config $CONPOT_CONFIG
|
||||
|
@ -15,6 +15,7 @@ services:
|
||||
build: .
|
||||
container_name: conpot_default
|
||||
restart: always
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_default.json
|
||||
@ -44,6 +45,7 @@ services:
|
||||
build: .
|
||||
container_name: conpot_IEC104
|
||||
restart: always
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_IEC104.json
|
||||
@ -68,6 +70,7 @@ services:
|
||||
build: .
|
||||
container_name: conpot_guardian_ast
|
||||
restart: always
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_guardian_ast.json
|
||||
@ -91,6 +94,7 @@ services:
|
||||
build: .
|
||||
container_name: conpot_ipmi
|
||||
restart: always
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_ipmi.json
|
||||
@ -114,6 +118,7 @@ services:
|
||||
build: .
|
||||
container_name: conpot_kamstrup_382
|
||||
restart: always
|
||||
stop_signal: SIGINT
|
||||
environment:
|
||||
- CONPOT_CONFIG=/etc/conpot/conpot.cfg
|
||||
- CONPOT_JSON_LOG=/var/log/conpot/conpot_kamstrup_382.json
|
||||
|
Reference in New Issue
Block a user