Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Zoey2936
Copy link
Collaborator

No description provided.

@Zoey2936 Zoey2936 force-pushed the clamav-alpine-aarch64 branch 2 times, most recently from e56fee0 to 576298f Compare February 26, 2025 14:17
@Zoey2936 Zoey2936 force-pushed the clamav-alpine-aarch64 branch from 576298f to 5cadc7b Compare February 26, 2025 14:41
@Zoey2936 Zoey2936 marked this pull request as ready for review February 26, 2025 14:42
@Zoey2936 Zoey2936 requested a review from szaimen February 26, 2025 14:42
@Zoey2936
Copy link
Collaborator Author

the only downside I see is that the alpine package may be a bit oudated compared to the direct image

Copy link
Collaborator Author

@Zoey2936 Zoey2936 left a 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

@szaimen
Copy link
Collaborator

szaimen commented Feb 27, 2025

Hi @Zoey2936, first of all thanks a lot for the PR! ☺️

@szaimen
Copy link
Collaborator

szaimen commented Feb 27, 2025

the only downside I see is that the alpine package may be a bit oudated compared to the direct image

this is fine for me

@szaimen
Copy link
Collaborator

szaimen commented Feb 27, 2025

also needs to be changed then in the release repo

Indeed. Would you mind adjusting the PR or shall I?

Comment on lines +9 to +10
freshclam --foreground --stdout --daemon &
clamd --foreground --config-file=/tmp/clamd.conf
Copy link
Collaborator

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 :)

Copy link
Collaborator Author

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

Copy link
Collaborator

@szaimen szaimen left a 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? :)

@szaimen szaimen added 2. developing Work in progress enhancement New feature or request labels Feb 27, 2025
@szaimen szaimen added this to the next milestone Feb 27, 2025
@Zoey2936
Copy link
Collaborator Author

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!

Comment on lines 3 to 5
if ! freshclam --foreground --stdout; then
exit 1
fi
Copy link
Collaborator Author

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.

Copy link
Collaborator

@szaimen szaimen Feb 27, 2025

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! :)

Copy link
Collaborator Author

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

Copy link
Collaborator

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 && \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sed -i "s|#\?MaxFileSize.*|MaxFileSize 2G|g" /etc/clamav/clamd.conf && \
sed -i "s|#\?MaxFileSize.*|MaxFileSize aio-placeholder|g" /etc/clamav/clamd.conf && \

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants