Can I Build a Kaniko Image Using Another Kaniko Image?

0
0
Asked By Wanderlust42 On

Hey everyone! I've been exploring the possibility of building a Kaniko image from another Kaniko image since I heard that Kaniko is now archived. I've tried multiple scripts, but I keep running into file conflicts and errors like 'files not found'. Has anyone had success with this? I'm looking for a reliable script that works in this scenario.

3 Answers

Answered By CreativeCoder88 On

You can definitely build Kaniko using itself! Just make sure to run Kaniko inside a container where the executor points at the Kaniko repo, and mount the /kaniko directory correctly to avoid conflicts. That should set you on the right path.

Answered By DevNinja77 On

By the way, Kaniko isn’t dead! It’s been revived by Chainguard, so it’s definitely still an option to use their support. However, if you’re looking for something else, there's also a GitHub repo by mzihlmann that looks promising.

Answered By BuildahGuru On

Another option is to use Buildah for this. You can build Kaniko, or even use Buildah to create another Buildah, which can then build an updated Kaniko. It's a bit of a roundabout way, but Buildah is solid.

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.