GithubHelp home page GithubHelp logo

abes-esr / clamscan-docker Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 3.0 115 KB

Dockerization ๐Ÿณ of ClamAV and specifically clamscan command used to scan periodicaly a specific folder for detecting trojans, viruses, malware & other malicious threats. If something bad is detected, an email is sent.

License: MIT License

Dockerfile 20.41% Shell 79.59%
clamscan docker

clamscan-docker's People

Contributors

kerphi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clamscan-docker's Issues

Question - SCAN_ONLY_NEW_FILES and BIG BIG folder

Hello,

First of all, thank you for this inspiring open-source project.

I'm wondering about a concept in your project.
If I understand correctly, you rsync the folder to be scanned to a temporary folder within the docker container. Is this the case?

If so, does that mean that your server needs to have double the disk space? that's unmanageable with large folders, isn't it?

Thanks for the clarification!

add FRESHCLAM_AT_STARTUP parameter

  • if FRESHCLAM_AT_STARTUP=1 then when the container starts, a freshclam should be launched
  • if FRESHCLAM_AT_STARTUP=0 then when the container starts, freshclam will not be launched and it will wait for the crontab to run it (each hours)

CLAMSCAN_OPTIONS: make possible to customize clamscan parameters

Change the default parameters to: --recursive=yes --allmatch=yes --remove=no --suppress-ok-results

Then add a parameter CLAMSCAN_OPTIONS making possible to customize clamscan command.

As a result we should have:

clamscan --recursive=yes --allmatch=yes --remove=no --suppress-ok-results  /folder-to-scan/

SCAN_ONLY_NEW_FILES

SCAN_ONLY_NEW_FILES could be true by default. Then the scan will scan a first time the whole FOLDER_TO_SCAN content, and the next time (CRON_CLAMSCAN) it will only scan the new files found.

Thanks to this feature, the process will be lighter (less CPU usage) especially when there is lot and lot of files in FOLDER_TO_SCAN.

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.