GoogleContainerTools / GoogleContainerTools/jib

Support compression for tar images in jib-core

Open
#2,895 1 comment 0 reactions 0 assignees View on GitHub
area/jib-core enhancement priority:p3
Dominant language
Java
Stars
14.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

**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 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.