/malware-scanner-service

Provide an HTTP interface that uses ClamAV to scan POSTed files for malware

Primary LanguageShellMIT LicenseMIT

Provide a malware-scanner service over an HTTP interface. Files can be POSTed to the interface, which will respond with a true (file is clean) or false (file is infected).

Deprecation warning

This repository is deprecated, in favour of

moj-clamav-daemon

and

moj-clamav-rest

because it is easier for our deployment system to work with individual github repositories, each of which builds a single docker image, than one repository building multiple docker images.

This repository is left here for reference.

This project is based on;

  • ClamAV - Open source virus scanner

  • clamav-java - Open source project providing a streaming interface to the clamd daemon

  • clamav-rest - Open source project providing a REST(ish) interface on top of clamav-java

  • UKHomeOffice/docker-clamav - Open source project by UK Home Office tying together all of the above

The Home Office project is designed to target a kubernetes cluster. This project is fundamentally the same, but with the source files organised slightly differently, and using Docker Compose to tie the containers together.

Usage

Using docker compose

docker-compose up

./test/test.sh

To build and test the containers without docker compose

./build.sh