Kaniko: Ability to use a TempFile instead of an in-memory buffer for tarball snapshots to build large Docker containers?

Created on 16 Sep 2018  路  2Comments  路  Source: GoogleContainerTools/kaniko

https://github.com/GoogleContainerTools/kaniko/blob/13accbaf3243a5cf477c9e3d5116dc09dd80ae37/pkg/snapshot/snapshot.go#L57-L70

I'm interested in building multi-GB Docker images with Kaniko. Unfortunately, doing this immediately exhausts the RAM. I think this is because the snapshotting steps take a tarball snapshot of the whole filesystem in-memory.

It would be nice to have an option to tell kaniko to use a Tempfile for the snapshot backing.

kinenhancement kinfeature-request

Most helpful comment

Woah! I didn't expect this to be resolved. "Have a bit of faith." - Some videogame I'm currently playing.

I look forward to trying this.

All 2 comments

@nelsonjchen this should be fixed with #428. I'll go ahead and close this issue, please comment or open another if you run into any more problems!

Woah! I didn't expect this to be resolved. "Have a bit of faith." - Some videogame I'm currently playing.

I look forward to trying this.

Was this page helpful?
0 / 5 - 0 ratings