mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
tweaking, reduce build times
This commit is contained in:
parent
e87a6fa53f
commit
3bcf85a92f
18 changed files with 89 additions and 33 deletions
|
@ -25,6 +25,7 @@ RUN apk -U --no-cache add \
|
||||||
py3-setuptools \
|
py3-setuptools \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
py3-twisted \
|
py3-twisted \
|
||||||
|
py3-wheel \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev && \
|
python3-dev && \
|
||||||
mkdir -p /opt && \
|
mkdir -p /opt && \
|
||||||
|
|
|
@ -20,7 +20,8 @@ RUN apk -U --no-cache add \
|
||||||
py3-openssl \
|
py3-openssl \
|
||||||
py3-requests \
|
py3-requests \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
py3-setuptools && \
|
py3-setuptools \
|
||||||
|
py3-wheel && \
|
||||||
pip3 install --upgrade pip && \
|
pip3 install --upgrade pip && \
|
||||||
pip3 install --no-cache-dir configparser hpfeeds3 influxdb influxdb-client xmljson && \
|
pip3 install --no-cache-dir configparser hpfeeds3 influxdb influxdb-client xmljson && \
|
||||||
#
|
#
|
||||||
|
|
|
@ -23,6 +23,7 @@ RUN apk -U --no-cache add \
|
||||||
py3-requests \
|
py3-requests \
|
||||||
py3-rsa \
|
py3-rsa \
|
||||||
py3-typing-extensions \
|
py3-typing-extensions \
|
||||||
|
py3-wheel \
|
||||||
py3-yaml \
|
py3-yaml \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev && \
|
python3-dev && \
|
||||||
|
|
|
@ -9,8 +9,8 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp/honeytrap:uid=2000,gid=2000
|
- /tmp/honeytrap:uid=2000,gid=2000
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.75
|
# cpus: 0.75
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
|
@ -14,9 +14,20 @@ RUN apk -U --no-cache add \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
py3-cryptography \
|
py3-cryptography \
|
||||||
|
py3-elasticsearch \
|
||||||
|
py3-geoip2 \
|
||||||
|
py3-maxminddb \
|
||||||
py3-mysqlclient \
|
py3-mysqlclient \
|
||||||
py3-requests \
|
py3-requests \
|
||||||
|
py3-packaging \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
|
py3-psycopg2 \
|
||||||
|
py3-redis \
|
||||||
|
py3-requests \
|
||||||
|
py3-service_identity \
|
||||||
|
py3-setuptools \
|
||||||
|
py3-twisted \
|
||||||
|
py3-wheel \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev && \
|
python3-dev && \
|
||||||
mkdir -p /opt && \
|
mkdir -p /opt && \
|
||||||
|
@ -24,7 +35,7 @@ RUN apk -U --no-cache add \
|
||||||
git clone https://gitlab.com/bontchev/ipphoney.git/ && \
|
git clone https://gitlab.com/bontchev/ipphoney.git/ && \
|
||||||
cd ipphoney && \
|
cd ipphoney && \
|
||||||
git checkout 7ab1cac437baba17cb2cd25d5bb1400327e1bb79 && \
|
git checkout 7ab1cac437baba17cb2cd25d5bb1400327e1bb79 && \
|
||||||
pip3 install --ignore-installed packaging && \
|
cp /root/dist/requirements.txt . && \
|
||||||
pip3 install -r requirements.txt && \
|
pip3 install -r requirements.txt && \
|
||||||
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
|
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
|
||||||
#
|
#
|
||||||
|
|
4
docker/ipphoney/dist/requirements.txt
vendored
Normal file
4
docker/ipphoney/dist/requirements.txt
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
configparser>=3.5.0
|
||||||
|
couchdb
|
||||||
|
hpfeeds>=3.0.0
|
||||||
|
pymongo
|
|
@ -10,8 +10,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: ipphoney
|
container_name: ipphoney
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- ipphoney_local
|
- ipphoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -12,8 +12,8 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp:uid=2000,gid=2000
|
- /tmp:uid=2000,gid=2000
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- log4pot_local
|
- log4pot_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -16,8 +16,8 @@ services:
|
||||||
- HPFEEDS_SECRET=pass
|
- HPFEEDS_SECRET=pass
|
||||||
- HPFEEDS_PORT=20000
|
- HPFEEDS_PORT=20000
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
- HPFEEDS_CHANNELPREFIX=prefix
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -10,8 +10,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: medpot
|
container_name: medpot
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- medpot_local
|
- medpot_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -15,8 +15,8 @@ services:
|
||||||
- /var/tmp/nginx/scgi
|
- /var/tmp/nginx/scgi
|
||||||
- /run
|
- /run
|
||||||
- /var/lib/nginx/tmp:uid=100,gid=82
|
- /var/lib/nginx/tmp:uid=100,gid=82
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.75
|
# cpus: 0.75
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
ports:
|
ports:
|
||||||
- "64297:64297"
|
- "64297:64297"
|
||||||
|
|
|
@ -7,8 +7,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: p0f
|
container_name: p0f
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.75
|
# cpus: 0.75
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
image: "dtagdevsec/p0f:2203"
|
image: "dtagdevsec/p0f:2203"
|
||||||
read_only: true
|
read_only: true
|
||||||
|
|
|
@ -10,8 +10,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: redishoneypot
|
container_name: redishoneypot
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- redishoneypot_local
|
- redishoneypot_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -10,8 +10,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: sentrypeer
|
container_name: sentrypeer
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- sentrypeer_local
|
- sentrypeer_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
#
|
#
|
||||||
|
# Include dist
|
||||||
|
COPY dist/ /root/dist/
|
||||||
|
#
|
||||||
# Get and install dependencies & packages
|
# Get and install dependencies & packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
build-base \
|
build-base \
|
||||||
|
@ -18,7 +21,31 @@ RUN apk -U --no-cache add \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
|
py3-cryptography \
|
||||||
|
py3-ipaddr \
|
||||||
|
py3-beautifulsoup4 \
|
||||||
|
py3-dnspython \
|
||||||
|
py3-exifread \
|
||||||
|
py3-future \
|
||||||
|
py3-jaraco.classes \
|
||||||
|
py3-jaraco.context \
|
||||||
|
py3-jaraco.functools \
|
||||||
|
py3-lxml \
|
||||||
|
py3-mako \
|
||||||
|
py3-more-itertools \
|
||||||
|
py3-netaddr \
|
||||||
|
py3-networkx \
|
||||||
|
py3-openssl \
|
||||||
|
py3-pillow \
|
||||||
|
py3-portend \
|
||||||
|
py3-pypdf2 \
|
||||||
|
py3-phonenumbers \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
|
py3-pysocks \
|
||||||
|
py3-requests \
|
||||||
|
py3-tempora \
|
||||||
|
py3-wheel \
|
||||||
|
py3-xlsxwriter \
|
||||||
swig \
|
swig \
|
||||||
tinyxml \
|
tinyxml \
|
||||||
tinyxml-dev \
|
tinyxml-dev \
|
||||||
|
@ -32,7 +59,7 @@ RUN apk -U --no-cache add \
|
||||||
git clone --depth=1 -b v3.5 https://github.com/smicallef/spiderfoot /home/spiderfoot && \
|
git clone --depth=1 -b v3.5 https://github.com/smicallef/spiderfoot /home/spiderfoot && \
|
||||||
cd /home/spiderfoot && \
|
cd /home/spiderfoot && \
|
||||||
pip3 install --upgrade pip && \
|
pip3 install --upgrade pip && \
|
||||||
pip3 install --no-cache-dir wheel && \
|
cp /root/dist/requirements.txt . && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
mkdir -p /home/spiderfoot/.spiderfoot/logs && \
|
mkdir -p /home/spiderfoot/.spiderfoot/logs && \
|
||||||
chown -R spiderfoot:spiderfoot /home/spiderfoot && \
|
chown -R spiderfoot:spiderfoot /home/spiderfoot && \
|
||||||
|
|
11
docker/spiderfoot/dist/requirements.txt
vendored
Normal file
11
docker/spiderfoot/dist/requirements.txt
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
adblockparser>=0.7,<1
|
||||||
|
CherryPy>=18.6.1,<19
|
||||||
|
cherrypy-cors>=1.6,<2
|
||||||
|
ipwhois>=1.1.0,<1.2.0
|
||||||
|
pygexf>=0.2.2,<0.3
|
||||||
|
python-whois>=0.7.3,<0.8
|
||||||
|
secure>=0.3.0,<0.4.0
|
||||||
|
python-docx>=0.8.11,<0.9
|
||||||
|
python-pptx>=0.6.21,<0.7
|
||||||
|
publicsuffixlist>=0.7.9,<0.8
|
||||||
|
openpyxl>=3.0.9,<4
|
|
@ -10,8 +10,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: spiderfoot
|
container_name: spiderfoot
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.75
|
# cpus: 0.75
|
||||||
networks:
|
networks:
|
||||||
- spiderfoot_local
|
- spiderfoot_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -12,8 +12,8 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGKILL
|
||||||
tty: true
|
tty: true
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- tanner_local
|
- tanner_local
|
||||||
image: "dtagdevsec/redis:2203"
|
image: "dtagdevsec/redis:2203"
|
||||||
|
@ -28,8 +28,8 @@ services:
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp:uid=2000,gid=2000
|
- /tmp:uid=2000,gid=2000
|
||||||
tty: true
|
tty: true
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- tanner_local
|
- tanner_local
|
||||||
image: "dtagdevsec/phpox:2203"
|
image: "dtagdevsec/phpox:2203"
|
||||||
|
@ -44,8 +44,8 @@ services:
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp/tanner:uid=2000,gid=2000
|
- /tmp/tanner:uid=2000,gid=2000
|
||||||
tty: true
|
tty: true
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- tanner_local
|
- tanner_local
|
||||||
image: "dtagdevsec/tanner:2203"
|
image: "dtagdevsec/tanner:2203"
|
||||||
|
@ -86,8 +86,8 @@ services:
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp/tanner:uid=2000,gid=2000
|
- /tmp/tanner:uid=2000,gid=2000
|
||||||
tty: true
|
tty: true
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- tanner_local
|
- tanner_local
|
||||||
image: "dtagdevsec/tanner:2203"
|
image: "dtagdevsec/tanner:2203"
|
||||||
|
@ -108,8 +108,8 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGKILL
|
||||||
tty: true
|
tty: true
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- tanner_local
|
- tanner_local
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue