Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.34k stars 699 forks source link

clamav image is amd64 only. Will an aarch64 version be released? #512

Closed millerthegorilla closed 2 years ago

millerthegorilla commented 2 years ago

Describe the bug

When starting the clamav container using systemd, an error is produced stating ``{"msg":"exec container process/init`: Exec format error","level":"error","time":"2022-03-20T18:00:00.000838151Z"}'''

Tinternet reckons that it is a byte order mark error, which makes sense, as it has probably been compiled on a different architecture. I am running coreos on a pi4, and am unable currently to mount the image to examine it to be certain. Answer one explains how to examine the file to see the bom problem. https://stackoverflow.com/questions/42494853/standard-init-linux-go178-exec-user-process-caused-exec-format-error

How to reproduce the problem

start a clamav image using podman or systemctl on a coreos pi4b.

millerthegorilla commented 2 years ago

Ok, I was able to examine the file and it has no BOM on the init script. It does use tini though, so I wonder if that is what is causing the issue. Are there any plans to create a clamav container specifically for aarc64?

millerthegorilla commented 2 years ago

Ok, so tini has different versions for different architectures. I am guessing that the clamav container will only work with amd64. I guess I will have to try creating my own image until the clamav team see fit to release one specifically for aarch64.

millerthegorilla commented 2 years ago

https://sdeoras.medium.com/special-case-of-building-multi-arch-container-images-distroless-go-and-podman-ad3e2ba0ccea

micahsnyder commented 2 years ago

Yes, I would like to build them as multi arch images. Just need to find time to make the required changes.

This is a duplicate of https://github.com/Cisco-Talos/clamav/issues/482