How Can I Build a Kaniko Image Using Another Kaniko?

0
15
Asked By MightyPineapple42 On

I heard that Kaniko is archived now, but I'm curious if there's still a way to build a Kaniko image using another Kaniko image. I've tried several scripts but keep encountering issues like 'file not found' or conflicts with other Kaniko files. Has anyone figured out a stable script or method to make this work?

5 Answers

Answered By CuriousCoder88 On

You can definitely build Kaniko with itself! Just run Kaniko in a container and point the executor to the Kaniko repository. Make sure you mount the /kaniko directory correctly to avoid any file conflicts.

Answered By BuildahBandit On

Have you thought about using Buildah? It’s a solid option to build Kaniko, or even to create an updated version of Kaniko that can build other Kaniko images. I recommend checking out some of the Kaniko Chainguard images too. They have some useful features!

Answered By QuestionAsker88 On

That all sounds great, but I'm still stuck on how to specifically use Kaniko to build itself. Anyone have a clear example?

Answered By RevivedKanikoFan On

Interestingly, Kaniko isn’t dead after all. Chainguard has revived it, so you might want to explore their updated versions!

Answered By OpinionatedUser101 On

I’d personally recommend using the Kaniko repo maintained by mzihlmann. They’ve adapted it to fit into a secure-by-default supply chain which could be really beneficial.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.