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

@ -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: