add sophos and mcafee scan backend

This commit is contained in:
Volodymyr Smirnov
2020-10-22 21:27:16 +03:00
parent e8f104168f
commit 22ef94f527
6 changed files with 101 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
FROM mindcollapse/malware-multi-scan-worker:latest
RUN apt-get update && apt-get install unzip wget -y
WORKDIR /tmp
RUN wget -q http://b2b-download.mcafee.com/products/evaluation/vcl/l64/vscl-l64-604-e.tar.gz && \
mkdir -p /usr/local/uvscan && \
tar -xzf vscl-l64-604-e.tar.gz -C /usr/local/uvscan
RUN wget -q -Nc -r -nd -l1 -A "avvepo????dat.zip" http://download.nai.com/products/DatFiles/4.x/nai/ && \
for avvepo in `ls avvepo*`; do unzip -o $avvepo; done && \
for avvdat in `ls avvdat-*`; do unzip -o $avvdat -d /usr/local/uvscan; done && \
/usr/local/uvscan/uvscan --decompress && \
rm -rf /tmp/*
WORKDIR /worker
ENV BackendType=McAfee

View File

@@ -0,0 +1,13 @@
FROM mindcollapse/malware-multi-scan-worker:latest
RUN apt-get update && apt-get install wget -y
ARG SOPHOS_URL=https://api-cloudstation-eu-central-1.prod.hydra.sophos.com/api/download/a9f5bc85ee950653ef0775ca1402120c/SophosInstall.sh
ENV SOPHOS_URL=$SOPHOS_URL
RUN wget -q $SOPHOS_URL -O /tmp/SophosInstall.sh && \
chmod +x /tmp/SophosInstall.sh && \
/tmp/SophosInstall.sh --automatic --acceptlicence || exit 0
ENV BackendType=Sophos