diff --git a/images/clamav/Dockerfile b/images/clamav/Dockerfile deleted file mode 100644 index 36f3b99b..00000000 --- a/images/clamav/Dockerfile +++ /dev/null @@ -1,55 +0,0 @@ -FROM debian:buster-slim - -# Debian Base to use -ENV DEBIAN_VERSION buster - -# initial install of av daemon -RUN echo "deb http://http.debian.net/debian/ $DEBIAN_VERSION main contrib non-free" > /etc/apt/sources.list && \ - echo "deb http://http.debian.net/debian/ $DEBIAN_VERSION-updates main contrib non-free" >> /etc/apt/sources.list && \ - echo "deb http://security.debian.org/ $DEBIAN_VERSION/updates main contrib non-free" >> /etc/apt/sources.list && \ - apt-get update && \ - DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -qq \ - clamav-daemon \ - clamav-freshclam \ - libclamunrar9 \ - ca-certificates \ - netcat-openbsd \ - wget && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# initial update of av databases -RUN wget -O /var/lib/clamav/main.cvd http://database.clamav.net/main.cvd && \ - wget -O /var/lib/clamav/daily.cvd http://database.clamav.net/daily.cvd && \ - wget -O /var/lib/clamav/bytecode.cvd http://database.clamav.net/bytecode.cvd && \ - chown clamav:clamav /var/lib/clamav/*.cvd - -# permission juggling -RUN mkdir /var/run/clamav && \ - chown clamav:clamav /var/run/clamav && \ - chmod 750 /var/run/clamav - -# av configuration update -RUN sed -i 's/^Foreground .*$/Foreground true/g' /etc/clamav/clamd.conf && \ - echo "TCPSocket 3310" >> /etc/clamav/clamd.conf && \ - if [ -n "$HTTPProxyServer" ]; then echo "HTTPProxyServer $HTTPProxyServer" >> /etc/clamav/freshclam.conf; fi && \ - if [ -n "$HTTPProxyPort" ]; then echo "HTTPProxyPort $HTTPProxyPort" >> /etc/clamav/freshclam.conf; fi && \ - if [ -n "$DatabaseMirror" ]; then echo "DatabaseMirror $DatabaseMirror" >> /etc/clamav/freshclam.conf; fi && \ - if [ -n "$DatabaseMirror" ]; then echo "ScriptedUpdates off" >> /etc/clamav/freshclam.conf; fi && \ - sed -i 's/^Foreground .*$/Foreground true/g' /etc/clamav/freshclam.conf - - -# env based configs - will be called by bootstrap.sh -COPY envconfig.sh / -COPY check.sh / -COPY bootstrap.sh / - -# port provision -EXPOSE 3310 - -RUN chown clamav:clamav bootstrap.sh check.sh envconfig.sh /etc/clamav/clamd.conf /etc/clamav/freshclam.conf && \ - chmod u+x bootstrap.sh check.sh envconfig.sh - -USER clamav - -CMD ["/bootstrap.sh"] diff --git a/images/clamav/README.md b/images/clamav/README.md deleted file mode 100644 index b1010816..00000000 --- a/images/clamav/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# Container Image - bay-clamav - -Provides a clamav image for local development. - -## Usage - -Typically this image is designed for use with lagoon using the following `lagoon.type` values: - -- `none` - -You can also use it in your Docker Compose stack with the following snippet: - -``` -services: - clamav: - image: singledigital/bay-clamav:5.x - ports: - - 3310 -``` - -## Environment Variables - -None - -## Ports - -- 3310 - Scanning endpoint