-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cache compressed local base image layers #1957
Conversation
…he-local-base-layers
…he-local-base-layers
…he-local-base-layers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just went over at a high level to see the general direction.
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ExtractTarStep.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ExtractTarStep.java
Outdated
Show resolved
Hide resolved
I think this should be mostly good for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis is failing. Did you rename the branch at some point?
warning: Could not find remote branch fix-skaffold-init to clone.
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/ExtractTarStep.java
Outdated
Show resolved
Hide resolved
Hmm, I did accidentally start the skaffold fix on this branch so I needed to revert some stuff, I must have messed up and renamed this branch instead of making a new one. I'll fix it tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully one day, we restructure the cache to have consistency between local and remote layers in cache and remove some duplicate code, but that sounds like needing more thoughts (#1982).
Part of #1912.
I did some manual tests and here is how long each build took, running
jibBuildDocker
on a small test project with the following base images.docker://gcr.io/distroless/java
tar://distroless.tar
docker://openjdk:8
tar://openjdk.tar
This is a pretty big improvement; it seems the next bottleneck to overcome is the
docker save
that runs with adocker://
base image.