project-copacetic / copacetic

🧵 CLI tool for directly patching container images using reports from vulnerability scanners
https://project-copacetic.github.io/copacetic/
Apache License 2.0
843 stars 57 forks source link

[QUESTION] How this app is better than just updating all the packages using OS commands #642

Open smartaquarius10 opened 1 month ago

smartaquarius10 commented 1 month ago

What is your question?

Hello,

Generally, people write just these commands in dockerfile which updates the package and remove the vulnerabilities

apk upgrade
apk update

How copaceptic is better than adding these 2 lines. If we add this in a enterprise ci/cd pipeline then it raises few concerns

Any suggestion on this. How this app is beneficial than old-school os commands.

Regards, Tanul

ashnamehrotra commented 1 month ago

@smartaquarius10 Adding those lines requires modifying Dockerfiles and doing a complete rebuild of the image upstream, which can take extra time when dealing with large amount of images and is not always possible when using images your team does not publish.

Using Copa allows for an efficient and quicker patch takes away the reliance on image publishers. Instead of a rebuild pipeline to do this work, you can use a single tool. Copa internally uses the same base image commands (like apk for alpine as you mentioned), but takes away the manual effort from the engineering side to automate this process. Owning Copa as a single tool will be simpler than maintaining image rebuild piplelines.

We also have a Copa Github Action to allow for easy integration into your pipelines, and are working on a Docker Extension in #481.