mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
reduce build times, tweaking
This commit is contained in:
parent
9a0e6bf1d8
commit
dd5f2c2a8d
8 changed files with 48 additions and 11 deletions
|
@ -8,7 +8,7 @@ RUN apk -U --no-cache add \
|
||||||
make \
|
make \
|
||||||
php7 \
|
php7 \
|
||||||
php7-dev \
|
php7-dev \
|
||||||
py3-pip \
|
py3-aiohttp \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
re2c && \
|
re2c && \
|
||||||
|
@ -31,7 +31,6 @@ RUN apk -U --no-cache add \
|
||||||
git clone https://github.com/mushorg/phpox /opt/phpox && \
|
git clone https://github.com/mushorg/phpox /opt/phpox && \
|
||||||
cd /opt/phpox && \
|
cd /opt/phpox && \
|
||||||
git checkout a62c8136ec7b3ebab0c989f4235e2960175121f8 && \
|
git checkout a62c8136ec7b3ebab0c989f4235e2960175121f8 && \
|
||||||
pip3 install -r requirements.txt && \
|
|
||||||
make && \
|
make && \
|
||||||
#
|
#
|
||||||
# Clean up
|
# Clean up
|
||||||
|
|
|
@ -9,14 +9,21 @@ RUN apk -U --no-cache add \
|
||||||
git \
|
git \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
py3-pip && \
|
py3-aiohttp \
|
||||||
|
py3-beautifulsoup4 \
|
||||||
|
py3-gitpython \
|
||||||
|
py3-markupsafe \
|
||||||
|
py3-setuptools \
|
||||||
|
py3-pip \
|
||||||
|
py3-pycodestyle \
|
||||||
|
py3-wheel && \
|
||||||
#
|
#
|
||||||
# Setup Snare
|
# Setup Snare
|
||||||
git clone https://github.com/mushorg/snare /opt/snare && \
|
git clone https://github.com/mushorg/snare /opt/snare && \
|
||||||
cd /opt/snare/ && \
|
cd /opt/snare/ && \
|
||||||
git checkout 0919a80838eb0823a3b7029b0264628ee0a36211 && \
|
git checkout 0919a80838eb0823a3b7029b0264628ee0a36211 && \
|
||||||
pip3 install --no-cache-dir setuptools && \
|
cp /root/dist/requirements.txt . && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
cd / && \
|
cd / && \
|
||||||
|
|
2
docker/tanner/snare/dist/requirements.txt
vendored
Normal file
2
docker/tanner/snare/dist/requirements.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
aiohttp_jinja2==1.1.0
|
||||||
|
cssutils==1.0.2
|
|
@ -11,7 +11,21 @@ RUN apk -U --no-cache add \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
|
py3-aiohttp \
|
||||||
|
py3-geoip2 \
|
||||||
|
py3-jinja2 \
|
||||||
|
py3-jwt \
|
||||||
|
py3-mako \
|
||||||
|
py3-mysqlclient \
|
||||||
|
py3-packaging \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
|
py3-redis \
|
||||||
|
py3-pycodestyle \
|
||||||
|
py3-setuptools \
|
||||||
|
py3-tornado \
|
||||||
|
py3-websocket-client \
|
||||||
|
py3-wheel \
|
||||||
|
py3-yaml \
|
||||||
py3-yarl \
|
py3-yarl \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev && \
|
python3-dev && \
|
||||||
|
@ -26,8 +40,7 @@ RUN apk -U --no-cache add \
|
||||||
# sed -i 's/aioredis/aioredis==1.3.1/g' requirements.txt && \
|
# sed -i 's/aioredis/aioredis==1.3.1/g' requirements.txt && \
|
||||||
# sed -i 's/^aiohttp$/aiohttp==3.7.4/g' requirements.txt && \
|
# sed -i 's/^aiohttp$/aiohttp==3.7.4/g' requirements.txt && \
|
||||||
cp /root/dist/config.yaml /opt/tanner/tanner/data && \
|
cp /root/dist/config.yaml /opt/tanner/tanner/data && \
|
||||||
pip3 install --ignore-installed packaging && \
|
cp /root/dist/requirements.txt . && \
|
||||||
pip3 install --no-cache-dir setuptools && \
|
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
rm -rf .coveragerc \
|
rm -rf .coveragerc \
|
||||||
|
|
8
docker/tanner/tanner/dist/requirements.txt
vendored
Normal file
8
docker/tanner/tanner/dist/requirements.txt
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
aiomysql
|
||||||
|
aiohttp_jinja2==1.1.0
|
||||||
|
docker<2.6
|
||||||
|
mimesis<3.0.0
|
||||||
|
aioredis
|
||||||
|
pymongo
|
||||||
|
pylibinjection
|
||||||
|
aiodocker
|
|
@ -1,13 +1,20 @@
|
||||||
FROM alpine:3.15
|
FROM alpine:3.15
|
||||||
#
|
#
|
||||||
# Include dist
|
# Include dist
|
||||||
#COPY dist/ /root/dist/
|
COPY dist/ /root/dist/
|
||||||
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
build-base \
|
build-base \
|
||||||
git \
|
git \
|
||||||
libcap \
|
libcap \
|
||||||
|
py3-click \
|
||||||
|
py3-flask \
|
||||||
|
py3-itsdangerous \
|
||||||
|
py3-jinja2 \
|
||||||
|
py3-markupsafe \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
|
py3-werkzeug \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev && \
|
python3-dev && \
|
||||||
#
|
#
|
||||||
|
@ -17,8 +24,8 @@ RUN apk -U --no-cache add \
|
||||||
git clone https://github.com/Will-777/wordpot2 && \
|
git clone https://github.com/Will-777/wordpot2 && \
|
||||||
cd wordpot2 && \
|
cd wordpot2 && \
|
||||||
git checkout e93a2e00d84d280b0acd58ba6889b4bee8a6e4d2 && \
|
git checkout e93a2e00d84d280b0acd58ba6889b4bee8a6e4d2 && \
|
||||||
sed "s/MarkupSafe==1.0/MarkupSafe==1.1.1/g" -i requirements.txt && \
|
|
||||||
# cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
|
# cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
|
||||||
|
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 && \
|
||||||
#
|
#
|
||||||
|
|
1
docker/wordpot/dist/requirements.txt
vendored
Normal file
1
docker/wordpot/dist/requirements.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
hpfeeds-threatstream==1.1
|
|
@ -10,8 +10,8 @@ services:
|
||||||
build: .
|
build: .
|
||||||
container_name: wordpot
|
container_name: wordpot
|
||||||
restart: always
|
restart: always
|
||||||
cpu_count: 1
|
# cpu_count: 1
|
||||||
cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
- wordpot_local
|
- wordpot_local
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue