GoogleContainerTools / GoogleContainerTools/jib

Jib should avoid parallel image downloads for same image

Open
#2,007 16 comments 1 reaction 1 assignee Claimed by @emmileaf 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

Although jib is thread-safe, it should be smarter.

Jib doesn't currently lock the base image cache when downloading a base image, but instead downloads into a temporary directory and then attempts to moves the downloaded image into place. There is no locking to block other threads. So a Maven project with _N_ modules that build images using the same base image (like `gcr.io/distroless/java`) may result in _N_ simultaneous pulls of the same image. Maybe we should provide a component to centralize downloading images?

_Originally posted by @briandealwis in https://github.com/GoogleContainerTools/jib/issues/1904#issuecomment-521352655_

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.