lifecycle icon indicating copy to clipboard operation
lifecycle copied to clipboard

Is it possible to export a tarball?

Open poy opened this issue 3 years ago • 5 comments

Is it possible export a tarball instead of pushing to the local docker daemon or a container registry in the exporter?

An example of how another project accomplishes this is Kaniko's --tarPath flag.

poy avatar Oct 05 '20 04:10 poy

@poy It is not currently possible, but it is something we could specify/implement in the future if there is sufficient interest. Would you be comfortable sharing your use case?

ekcasey avatar Oct 05 '20 13:10 ekcasey

@poy Would you be providing inputs images (i.e the run-image and previous image) as tarballs as well?

ekcasey avatar Oct 05 '20 19:10 ekcasey

@ekcasey Our use case can be summarized as a pipeline that produces a container, analyzes it and then pushes it. Each stage expects to receive a tarball as an input.

At the moment, we don't require the inputs to be tarballs.

poy avatar Oct 06 '20 15:10 poy

This may also be useful for the BuildKit integration. Specifically in removing the need to reimplement export.

It would require more thought but maybe the export phase could take an option to export as oci layout format. This oci layout directory or archive can then be read by the BuildKit frontend and processed to include layers and image config (labels, env vars, etc).

jromero avatar Apr 01 '21 15:04 jromero

Note from discussion: Generating a tar means having to write all layers (as opposed to being able to skip them during publish)

jabrown85 avatar Apr 01 '21 16:04 jabrown85