cowrie, ddospot, reduce build times, tweaking

This commit is contained in:
t3chn0m4g3 2022-03-12 14:42:34 +00:00
parent 96d5986407
commit 1974a7e6ab
7 changed files with 21 additions and 9 deletions

View file

@ -9,8 +9,8 @@ services:
restart: always
tmpfs:
- /tmp/ciscoasa:uid=2000,gid=2000
cpu_count: 1
cpus: 0.25
# cpu_count: 1
# cpus: 0.25
network_mode: "host"
ports:
- "5000:5000/udp"

View file

@ -10,8 +10,8 @@ services:
build: .
container_name: citrixhoneypot
restart: always
cpu_count: 1
cpus: 0.25
# cpu_count: 1
# cpus: 0.25
networks:
- citrixhoneypot_local
ports:

View file

@ -44,7 +44,6 @@ RUN apk --no-cache -U add \
# git checkout 6b1e82915478292f1e77ed776866771772b48f2e && \
mkdir -p log && \
cp /root/dist/requirements.txt . && \
#sed -i '/packaging.*/d' requirements.txt && \
pip3 install --upgrade pip && \
pip3 install -r requirements.txt && \
#

View file

@ -13,8 +13,8 @@ services:
tmpfs:
- /tmp/cowrie:uid=2000,gid=2000
- /tmp/cowrie/data:uid=2000,gid=2000
cpu_count: 1
cpus: 0.25
# cpu_count: 1
# cpus: 0.25
networks:
- cowrie_local
ports:

View file

@ -1,11 +1,19 @@
FROM alpine:3.15
#
# Include dist
COPY dist/ /root/dist/
#
# Install packages
RUN apk --no-cache -U add \
build-base \
git \
libcap \
py3-colorama \
py3-pip \
py3-schedule \
py3-sqlalchemy \
py3-twisted \
py3-wheel \
python3 \
python3-dev && \
#
@ -30,6 +38,7 @@ RUN apk --no-cache -U add \
sed -i "s#rotate_size = 10#rotate_size = 9999#g" /opt/ddospot/ddospot/pots/generic/genericpot.conf && \
sed -i "s#rotate_size = 10#rotate_size = 9999#g" /opt/ddospot/ddospot/pots/ntp/ntpot.conf && \
sed -i "s#rotate_size = 10#rotate_size = 9999#g" /opt/ddospot/ddospot/pots/ssdp/ssdpot.conf && \
cp /root/dist/requirements.txt . && \
pip3 install -r ddospot/requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
#

4
docker/ddospot/dist/requirements.txt vendored Normal file
View file

@ -0,0 +1,4 @@
git+https://github.com/hpfeeds/hpfeeds
tabulate
python-geoip
python-geoip-geolite2

View file

@ -10,8 +10,8 @@ services:
build: .
container_name: ddospot
restart: always
cpu_count: 1
cpus: 0.25
# cpu_count: 1
# cpus: 0.25
networks:
- ddospot_local
ports: