-
Notifications
You must be signed in to change notification settings - Fork 22
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
Docker build fails with "CMake Error" #20
Comments
Me, too. I've tested on 0.105, 1.0, 1.1 & unstable with the same issue:
|
We haven't really finished stabilizing the Debian dockerfiles. I guess I wouldn't be surprised if something is broken. |
Sorry that I meant the alpine image, not the Debian one. |
Hey all, I think the issue you're facing is that since we moved the Dockerfile stuff from the main clamav repo over to here -- we forgot to update our build instructions to tell you that you need to copy the I will push up and update soon that adds this detail to our build instructions. I think we'll also need to rework the README as well because the build instructions for the bytecode compiler will also be different, so we may end up with several layers of README files. |
Hi @micahsnyder , thanks a lot for your information. Sorry for making the confusion. I don't use docker build, just pull & run the clamav/clamav images and found that issue. |
@vienleidl I'm quite confused. The error described above is one you would get from trying to build the image. |
Hi @micahsnyder, never mind! 2 weeks ago, I pulled and ran these images of clamav/clamav: latest, 0.105, 1.0, 1.1 & unstable. I didn't build. The container was crashing and failed to start with the above errors. But now I've just tested again and they are gone. Even though, the container now is loaded successfully, but I still see some errors keep appearing:
|
@vienleidl you probably have not allocated enough memory for the images. You should provide them with at least 4GB of RAM with the default configuration, or else 2GB or maybe 3GB of RAM if you set the If you plan to change the configuration to support scanning much larger files, then I would recommend allocating 6GB for each container. |
Great! Thanks a lot for your suggestion! I've just tested on Azure Container Apps with 2 GB of memory. It works well.
|
This is obviously not enough, Dockerfile cmake command needs a CMakeLists.txt which use its variables passed in arguments into https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.0/alpine/Dockerfile#L46 . |
I have the same issue on Alpine images. Do you know when it will be fixed? Thank you very much! |
@vienleidl you don't need to wait for a fix. If you want to build a clamav image, just
|
I tried but another one occured |
I'm too having the same issue, I'm building from 'main' debian version 1.3. There are no other branches / tags in this repo.
|
I tried Debian version 1.2 and had the same issue |
This error message implies you did not place Dockerfile (and scripts directory) inside the clamav source code directory before building. @xposix Did you follow these directions? #20 (comment) |
Sorry yes I just realized that building the image is not straightforward and instructions need to be followed. Sorry and thank you! |
tried to build the 1.1.0 debian as well as alpine image and both fail:
is the file really missing or what is going on here?
i am using gitlab runner for building.
The text was updated successfully, but these errors were encountered: