https://github.com/iinm/savdi-on-docker
Sophos Antivirus Dynamic Interface (SAVDI) on Docker
https://github.com/iinm/savdi-on-docker
docker sophos
Last synced: about 2 months ago
JSON representation
Sophos Antivirus Dynamic Interface (SAVDI) on Docker
- Host: GitHub
- URL: https://github.com/iinm/savdi-on-docker
- Owner: iinm
- License: unlicense
- Created: 2020-05-17T04:02:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T22:17:37.000Z (about 5 years ago)
- Last Synced: 2025-02-15T23:14:53.816Z (3 months ago)
- Topics: docker, sophos
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SAVDI on Docker

This repository provides resources to build docker image that run Sophos Antivirus Dynamic Interface (SAVDI).
Note that additional proprietary resources are required to build image. (See `Makefile`)Main process launches following processes on container.
- savdi daemon : savdi itself
- sophos updater : This process updates sophos periodically and reload savdi daemon if there is any updates.
- logcat : This process cat log file contents to stdout and truncate them periodically.
(It's really agry but required because daemon can't output log to stdout even if we configure to output to 'CONSOLE' using `savdid.conf`)For more detail see `init.sh`.
## Build
```sh
# (optional) configure
edit ./savdid.conf
sed -i '' 's,# COPY savdid.conf,COPY savdid.conf,g' Dockerfile# build image
make image# or specify tag (defalt: branch name)
make tag=latest image# or pass username / password if you have license
env SOPHOS_INSTALL_OPTIONS="--update-source-username=$username --update-source-password=$password" make image
```## Run
```sh
docker run --rm -it -p 4010:4010 -e SOPHOS_UPDATE_INTERVAL_SEC=3600 savdi:
```## Test
```sh
make run
``````sh
echo '123' | ./scandata.sh
echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' | ./scandata.sh
```