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 restart: always
tmpfs: tmpfs:
- /tmp/ciscoasa:uid=2000,gid=2000 - /tmp/ciscoasa:uid=2000,gid=2000
cpu_count: 1 # cpu_count: 1
cpus: 0.25 # cpus: 0.25
network_mode: "host" network_mode: "host"
ports: ports:
- "5000:5000/udp" - "5000:5000/udp"

View file

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

View file

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

View file

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

View file

@ -1,11 +1,19 @@
FROM alpine:3.15 FROM alpine:3.15
# #
# Include dist
COPY dist/ /root/dist/
#
# Install packages # Install packages
RUN apk --no-cache -U add \ RUN apk --no-cache -U add \
build-base \ build-base \
git \ git \
libcap \ libcap \
py3-colorama \
py3-pip \ py3-pip \
py3-schedule \
py3-sqlalchemy \
py3-twisted \
py3-wheel \
python3 \ python3 \
python3-dev && \ 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/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/ntp/ntpot.conf && \
sed -i "s#rotate_size = 10#rotate_size = 9999#g" /opt/ddospot/ddospot/pots/ssdp/ssdpot.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 && \ pip3 install -r ddospot/requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \ 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: . build: .
container_name: ddospot container_name: ddospot
restart: always restart: always
cpu_count: 1 # cpu_count: 1
cpus: 0.25 # cpus: 0.25
networks: networks:
- ddospot_local - ddospot_local
ports: ports: