Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to export a tarball? #423

Open
poy opened this issue Oct 5, 2020 · 5 comments
Open

Is it possible to export a tarball? #423

poy opened this issue Oct 5, 2020 · 5 comments
Labels

Comments

@poy
Copy link
Contributor

poy commented Oct 5, 2020

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 poy added status/triage type/bug Something isn't working labels Oct 5, 2020
@ekcasey
Copy link
Member

ekcasey commented Oct 5, 2020

@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
Copy link
Member

ekcasey commented Oct 5, 2020

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

@ekcasey ekcasey added type/enhancement New feature or request and removed type/bug Something isn't working labels Oct 5, 2020
@poy
Copy link
Contributor Author

poy commented Oct 6, 2020

@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.

@jromero
Copy link
Member

jromero commented Apr 1, 2021

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).

@jabrown85
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants