Comments (2)
This is intentional, because the purpose of jibDockerBuild
is to push an image to a Docker engine. Suppose that your Docker daemon doesn't have an image yet, while there exist jib-image.digest
, etc. (which can be created by other tasks) whose presence makes Gradle skip jibDockerBuild
. Then you'll have to clean them to be able to push an image to your Docker daemon. (Worse, there is no way to check whether the exact same image already exists in a Docker engine, which is the limitation of the Docker Engine API. Even if it were possible, jibDockerBuild
would have to run every time to do the check anyway.)
But at least Jib caches all the necessary assets including image layers, so subsequent jibDockerBuild
runs don't rebuild assets already built and are fast. It's just that it has to push an image to Docker every time (which could have been even faster if the Docker Engine API had better support).
from jib.
This is intentional, because the purpose of
jibDockerBuild
is to push an image to a Docker engine. Suppose that your Docker daemon doesn't have an image yet, while there existjib-image.digest
, etc. (which can be created by other tasks) whose presence makes Gradle skipjibDockerBuild
. Then you'll have to clean them to be able to push an image to your Docker daemon. (Worse, there is no way to check whether the exact same image already exists in a Docker engine, which is the limitation of the Docker Engine API. Even if it were possible,jibDockerBuild
would have to run every time to do the check anyway.)But at least Jib caches all the necessary assets including image layers, so subsequent
jibDockerBuild
runs don't rebuild assets already built and are fast. It's just that it has to push an image to Docker every time (which could have been even faster if the Docker Engine API had better support).
Ah I see, that actually makes sense. Unless theres a way for gradle to do the up-to-date check towards the docker engine (like checking with docker inspect <image>
), it has to be kept like this. Thanks for the well-explained reply 👍
from jib.
Related Issues (20)
- Core Release v0.27.1-core
- Jib does not provide meaningful exception message jib:build
- Impossible to build amd-64 docker on Mac M3 machine HOT 17
- Jib client push to Harbor fails on 502 errors
- No progress after "Container entrypoint set to" with jib-maven-plugin 3.4.3 HOT 5
- Add additional jvmflag support
- Align containerizingMode with Spring's Class Data Sharing (CDS) approach
- Allow changing existing jib images without the "package" maven goal having run
- The credential helper (docker-credential-osxkeychain) has nothing for server URL HOT 2
- Timestamped Snapshots are not well respected with jib
- manifest unknown | If this is a bug, please file an issue at
- v0.27.1-core not building amd64 images on M1+ macs HOT 1
- Jib gradle plugin and Java modules? HOT 4
- Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.2.1:dockerBuild HOT 1
- Docker not found when using Java 21 HOT 2
- The configured platforms don't match the Docker Engine's OS and architecture HOT 4
- Google Container Registry Migration to Google Artifact Registry
- Unrecognized field "artifactType" in ManifestDescriptorTemplate HOT 1
- stuck at 40,0% complete HOT 1
- Duplicate put requests to registry trigger errors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jib.