-
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
Can registry push be disabled? #2370
Comments
You can try jibBuildTar which produces an image on disk and also the image meta data files in the build directory |
Wait, this is the default behavior of Jib image pushing. It pushes only those bits that are missing. |
I think this is related to #2360 ? |
This may be useful: https://stackoverflow.com/a/60869500/1701388)
|
I usually like to inspect the images I'm developing, or for example during a CI pipeline, have an opportunity to test the build without pushing is useful. |
Also
And on a side note inspectiong image layers is really productive with |
@bric3 in order to test or inspect an image (also with |
@chanseokoh Ah yes good point ! 🤦 I still think jib should have a toggle to disable pushing, or a separate task like Thanks for your patience ! |
Jib is intentionally not a interface for docker. We can build image to docker (as it is a target like tar or regitsry), but we expect any user using docker to use docker cli or some othe docker tool. The way jib builds to a registry is not through docker. Jib builds layers and then interfaces with the registry directly to push an image to it (docker is not involved). |
Closing as part of cleanup. Please re-open if it's still relevant |
Can we instruct Jib to execute normally, but not push the generated images to a registry?
Reason: we would like to examine the digest generated, check whether it already exists in our repository, and only if missing, push the image.
The text was updated successfully, but these errors were encountered: