Hi everyone,
Am evaluating dagger to see if it can be used in our CI workflows and have a quick question about building new images from within the dagger function.
I am evaluating a tool https://project-copacetic.github.io/copacetic/website/ that uses a Trivy vulernability report to determine if an image has any vulnerabilities that can be patched. If it can be patched it will run and generate a new image.
I am trying to get this working in dagger - so far I have been able to use a Trivy container, build a buildkit container as service and finally build a Copa container (based on its Dockerfile for GH Actions - https://github.com/project-copacetic/copa-action/blob/main/Dockerfile). However, I am finding that when Copa runs and patches the image my dagger function hangs on the last step of Copa which is to create the new image. I ultimately want the new image to be available on my host machine/where dagger is installed.
Is anyone able to advise on how I can debug what is happening or has any experience on recreating the local image?
copa is a CLI tool written in Go and based on buildkit that can be used to directly patch container images given the vulnerability scanning results from popular tools like Trivy.