Giter VIP home page Giter VIP logo

icap-clamav-service's Introduction

Build me (scanner)

docker build -t packetchef/icap-clamav-server:1.0 .

Run me (scanner)

docker run --rm -d -p 1344:1344 --name scanner packetchef/icap-clamav-server:1.0

Test me

c-icap-client -v -i icap.clamav.server.example.com -s avscan -f eicar.txt

Stuff that doesn't quite work

The Dockerfile used to call: echo "Default Service avscan" >> /etc/c-icap/c-icap.conf

Dockerfile also used to include: sed -i 's/^Service antivirus_module/Service avscan/' /etc/c-icap/virus_scan.conf && \

Which we left as, Service antivirus_module and instead added a ServiceAlias avscan antivirus_module

Right now, the scanner Docker build pulls signature updates with freshclam. Future state, scanner will just be the scanner, and updater will be responsible for pulling signatures and sharing with the cluster through a Persistent Volume Claim mounted at /var/lib/clamav. The updater container could stay running constantly, but ideally should be scheduled as a task that runs on a periodic basis.

We should also consider whether a scanner container should run just one c-icap server/process/thread, and let the cluster scale out as needed. I'm also not sure if running entrypoint.sh is the right approach to starting up c-icap, but for now it works.

Also need to solve for scanner logging. Right now, c-icap logs to /var/log/c-icap inside the container. This should log instead to stdout.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.