Time is always a nasty thing and without proper timezone data it is even
harder. Set a default timezone (easily to be overridde by the user from
the cli with docker run --env) and as a consequence add the timezone
data package.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Prevent healthcheck from initially failing as the container
is still starting up. ClamAV's database loading can take quite a time,
in which the healthcheck is constantly failing. While it is impossible to
have a default that works everywhere (slower systems vs fast ones). Using 6
minutes tries to find a compromise here but it by no means perfect.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Add support for Rust FreeBSD, OpenBSD targets
Add support for Rust on GNU aarch64.
Add support for Rust on Alpine (musl x86_64).
Note: Current trick of checking for musl libc.so doesn't work when
cross compiling. TODO: Find a better way to check if the target is
MUSL.
Add Rust toolchain to fix Dockerfile build.
The URL registry.hub.docker.com was apparently deprecated for a while,
and started to give 404 errors as of today for some repo's. The correct
URL is index.docker.io, so lets use that instead.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
The iconv_open() function fails on Alpine because the musl iconv
implementation does not support //TRANSLIT.
See: https://github.com/akrennmair/newsbeuter/issues/364#issuecomment-250208235
This commit also makes it so `ctest` must pass when building the Docker
image, now that the tests with utf8 conversion are expected to pass.
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.
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>