How to Build a Kaniko Image Using Another Kaniko Image?

0
0
Asked By CuriousCactus92 On

I've learned that kaniko has been archived, but I feel there's still a way to create a kaniko image using another kaniko image. I've tried various script versions but keep running into issues like 'files not found' and conflicts with other kaniko files. Has anyone successfully figured out a working script for this situation?

4 Answers

Answered By MightyMango88 On

If you're really in a crunch and need something off-the-shelf, I'd suggest checking out https://github.com/mzihlmann/kaniko. Chainguard's take on kaniko adapts it for a 'secure by default' supply chain, so it might be worth looking into for reliability.

CuriousCactus92 -

That's interesting! But I'm still stuck on how to actually build it using kaniko. Any tips?

Answered By TechyTurtle07 On

You can build kaniko using another kaniko by running it inside a container. Just make sure the executor points to the kaniko repo and that you mount the /kaniko directory correctly to avoid conflicts. That should help you get it running!

Answered By DevDude23 On

Oh, don't worry—kaniko isn't dead anymore! Chainguard has taken it over, so it's actively maintained now. You might want to check their updated versions if you haven’t already!

Answered By CodeCrafter56 On

I recommend using buildah for this! It's a great tool that can build Kaniko, and it can even build a buildah image that can subsequently build more Kaniko versions. So you get a nice chain of builds going!

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.