rebuild snare, tanner

This commit is contained in:
t3chn0m4g3 2020-01-03 14:06:29 +00:00
parent 0928e37326
commit 3713139fc6
4 changed files with 13 additions and 10 deletions

View file

@ -1,10 +1,11 @@
FROM alpine FROM alpine:3.10
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/
# #
# Install packages # Install packages
RUN apk -U --no-cache add \ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
build-base \ build-base \
file \ file \
git \ git \
@ -14,7 +15,6 @@ RUN apk -U --no-cache add \
python3 \ python3 \
python3-dev \ python3-dev \
re2c && \ re2c && \
pip3 install --no-cache-dir --upgrade pip && \
# #
# Install bfr sandbox from git # Install bfr sandbox from git
git clone --depth=1 https://github.com/mushorg/BFR /opt/BFR && \ git clone --depth=1 https://github.com/mushorg/BFR /opt/BFR && \

View file

@ -4,7 +4,8 @@ FROM redis:alpine
ADD dist/ /root/dist/ ADD dist/ /root/dist/
# #
# Setup apt # Setup apt
RUN apk -U --no-cache add redis && \ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add redis && \
cp /root/dist/redis.conf /etc && \ cp /root/dist/redis.conf /etc && \
# #
# Clean up # Clean up

View file

@ -1,10 +1,11 @@
FROM alpine FROM alpine:3.10
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/
# #
# Setup apt # Setup apt
RUN apk -U --no-cache add \ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
build-base \ build-base \
git \ git \
linux-headers \ linux-headers \
@ -14,7 +15,7 @@ RUN apk -U --no-cache add \
# Setup Snare # Setup Snare
git clone --depth=1 https://github.com/mushorg/snare /opt/snare && \ git clone --depth=1 https://github.com/mushorg/snare /opt/snare && \
cd /opt/snare/ && \ cd /opt/snare/ && \
pip3 install --no-cache-dir --upgrade pip setuptools && \ 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 && \
cd / && \ cd / && \

View file

@ -1,10 +1,11 @@
FROM alpine FROM alpine:3.10
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/
# #
# Setup apt # Setup apt
RUN apk -U --no-cache add \ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
build-base \ build-base \
git \ git \
libcap \ libcap \
@ -19,7 +20,7 @@ RUN apk -U --no-cache add \
git clone --depth=1 https://github.com/mushorg/tanner /opt/tanner && \ git clone --depth=1 https://github.com/mushorg/tanner /opt/tanner && \
cp /root/dist/config.py /opt/tanner/tanner/ && \ cp /root/dist/config.py /opt/tanner/tanner/ && \
cd /opt/tanner/ && \ cd /opt/tanner/ && \
pip3 install --no-cache-dir --upgrade pip setuptools && \ 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 \