Commit Graph

4 Commits

Author SHA1 Message Date
Micah Snyder
10260c77b3 docker: omit freshclam.dat file from image
The freshclam.dat file shouldn't be in the Docker images or else
everyone using the image will have the same UUID.

This commit deletes it after each update.
2021-09-28 18:21:50 -07:00
Micah Snyder
6d3685c421 Docker: milter daemon, news, docs, github action
The milter default was not set correctly so it was starting
clamav-milter by default. Added default true/false settings for each of
the docker daemon environment variables.

Added command to entrypoint to change database directory ownership to
the clamav user, in case it is a mounted volume (which get root ownership
by default).

Removed the clamav user & group from the build image, as it isn't needed
until the base image.

Added announcement details and acknowledgements to the News document.

Added details to the Docker Readme describing:

- the tag naming convention
- how to mount database volumes
- various other tweaks

Fixed the path for the update script in the GitHub Action, and changed
from alpine-latest to ubuntu-latest, because alpine-latest doesn't seem
to be an option.
2021-04-29 18:15:56 -07:00
Olliver Schinagl
21a4d59fce docker: Add script to update virus database
To reduce the need for constant database updates, also push a docker
image containing the virus database.

Ideally, this script is called every time a major virus database update
happens, but as that requires integration with other systems, lets start
by having a scheduled update.

To do this a github action workflow was added on a schedule that runs
once a month. It does require the proper secrets to be setup however and
made accessible.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2021-04-29 17:55:12 -07:00
Olliver Schinagl
24b3ae27b3 Docker: Add initial dockerfile
This dockerfile allows users/services compile the current codebase and
use the container as a dockerized clamav daemon.

Useful for testing, but also for running clamd containerized.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2021-04-27 20:39:38 +02:00