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

Support compression for tar images in jib-core #2895

Open
alpar-t opened this issue Nov 16, 2020 · 1 comment
Open

Support compression for tar images in jib-core #2895

alpar-t opened this issue Nov 16, 2020 · 1 comment

Comments

@alpar-t
Copy link

alpar-t commented Nov 16, 2020

Description of the issue:

We use jib-core to implement tooling to deal with a large number of docker images.
Some of these are large, build with the docker cli then saved and Jib takes over from there.
We observed that these tend to compress well, close to half the size, and there's a significant amount of
build time we can save by storing and transferring compressed images.

It would be great if Jib would support working with a compressed tar image directly.
From poking around it seems that TarExtractor could implement that rather seamlessly,
It already relies on commons-compress so it wouldn't introduce additional dependencies
either (the implementation of the compression algorithms is a runtime dependency).

Would you consider a PR that adds support for de-compressing the tar archive in TarExtractor
based on the file extension ?

@chanseokoh
Copy link
Member

Hi @alpar-t,

Sorry for the delay. It makes sense to support a compressed Docker tar image. I just wasn't sure if we should decompress it in TarExtractor or LocalBaseImageSteps.cacheDockerImageTar(). Maybe it's reasonable and simple to do it within TarExtractor.

We welcome your contributions!

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

No branches or pull requests

4 participants