-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support clamav on aarch64/arm64 by using the alpine package #6094
base: main
Are you sure you want to change the base?
Conversation
e56fee0
to
576298f
Compare
Signed-off-by: Zoey <[email protected]>
576298f
to
5cadc7b
Compare
the only downside I see is that the alpine package may be a bit oudated compared to the direct image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also needs to be changed then in the release repo
Hi @Zoey2936, first of all thanks a lot for the PR! |
this is fine for me |
Indeed. Would you mind adjusting the PR or shall I? |
freshclam --foreground --stdout --daemon & | ||
clamd --foreground --config-file=/tmp/clamd.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt we better use supervisord for that? Then it will make sure to automatically restart both services if they should be stopped :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats how it is done in the start script of the official clamav image, but yes, feel free to edit this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to adjust all places in the docs and AIO interface and so on. Can you handle this or shall I? :)
can you please do this? Thanks! |
Containers/clamav/start.sh
Outdated
if ! freshclam --foreground --stdout; then | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could also run inside the Dockerfile, which would make the docker image bigger, but the container may starts faster depending on the internet speed it has, but the pull would take longer.
This is needed to download the initial databases which will be updated by the freshclam deamon while running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very good idea! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly? both is reasonable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean to run it in the Dockerfile already :)
mkdir /run/clamav && \ | ||
chmod 777 -R /run/clamav /var/log/clamav && \ | ||
sed -i "s|#\?MaxDirectoryRecursion.*|MaxDirectoryRecursion 30|g" /etc/clamav/clamd.conf && \ | ||
sed -i "s|#\?MaxFileSize.*|MaxFileSize 2G|g" /etc/clamav/clamd.conf && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sed -i "s|#\?MaxFileSize.*|MaxFileSize 2G|g" /etc/clamav/clamd.conf && \ | |
sed -i "s|#\?MaxFileSize.*|MaxFileSize aio-placeholder|g" /etc/clamav/clamd.conf && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Signed-off-by: Zoey <[email protected]>
Signed-off-by: Zoey <[email protected]>
No description provided.