rebuild snare, tanner, redis, phpox

This commit is contained in:
t3chn0m4g3 2021-02-19 13:02:08 +00:00
parent 41c0255ea6
commit 7d423f29da
4 changed files with 7 additions and 11 deletions

View file

@ -1,8 +1,7 @@
FROM alpine:3.10 FROM alpine:3.10
# #
# Install packages # Install packages
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \ RUN apk -U --no-cache add \
apk -U --no-cache add \
build-base \ build-base \
file \ file \
git \ git \

View file

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

View file

@ -4,8 +4,7 @@ FROM alpine:3.10
ADD dist/ /root/dist/ ADD dist/ /root/dist/
# #
# Setup apt # Setup apt
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \ RUN apk -U --no-cache add \
apk -U --no-cache add \
build-base \ build-base \
git \ git \
linux-headers \ linux-headers \
@ -15,7 +14,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
# 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 7762b762b272f0599c16e11ef997c37d2899d33e && \ git checkout 5af76755f367dae8acb347962be34eb8de14f85a && \
pip3 install --no-cache-dir 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 && \

View file

@ -1,11 +1,10 @@
FROM alpine:3.12 FROM alpine:3.13
# #
# Include dist # Include dist
ADD dist/ /root/dist/ ADD dist/ /root/dist/
# #
# Setup apt # Setup apt
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \ RUN apk -U --no-cache add \
apk -U --no-cache add \
build-base \ build-base \
git \ git \
libcap \ libcap \
@ -22,7 +21,7 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
cd /opt/tanner/ && \ cd /opt/tanner/ && \
# git fetch origin pull/364/head:test && \ # git fetch origin pull/364/head:test && \
# git checkout test && \ # git checkout test && \
git checkout 40e2357119065445cbb06234e953a95e5a73ce93 && \ git checkout 1fd5465ef5658c2211e16e092c36b3bb05600730 && \
cp /root/dist/config.yaml /opt/tanner/tanner/data && \ cp /root/dist/config.yaml /opt/tanner/tanner/data && \
pip3 install --no-cache-dir setuptools && \ pip3 install --no-cache-dir setuptools && \
pip3 install --no-cache-dir -r requirements.txt && \ pip3 install --no-cache-dir -r requirements.txt && \