How Can I Build a Kaniko Image Using Another Kaniko Image?
Asked by
baud9-check
I've been trying to figure out if there's a way to build a Kaniko image using another Kaniko image, especially since Kaniko has been archived. I've attempted several script versions, but I keep hitting issues like 'files not found' and conflicts with other Kaniko files. Has anyone else successfully created a stable script for this process?
Answers
Kaniko isn't dead anymore! Chainguard has revived it, so you might find updated resources and support for your builds now. It's worth checking out what they've done with it.
Reply to this answer
I wanted to jump in on this! You can definitely run Kaniko inside a container while pointing the executor at the Kaniko repository. Just make sure to mount `/kaniko` properly to avoid any file conflicts. With that set up, you should be good to go!
Reply to this answer
Another option is to use Buildah to build Kaniko. You can even use Buildah to build another instance of Buildah if you like! But seriously, just stick with Buildah or look into the Kaniko Chainguard imagesโthey can simplify things a bit for you.
Reply to this answer
I prefer using the GitHub link for Kaniko by mzihlmann. Chainguard basically took it over and integrated it into their secure supply chain. Just be mindful about how you want to approach it for building purposes!
Reply to this answer
Add your answer
Answers are reviewed before publication.
roll_call_: Yeah, but can you share how to actually build it using Kaniko? That's what I'm struggling with!