Git Product home page Git Product logo

Comments (2)

chanseokoh avatar chanseokoh commented on July 23, 2024

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.

JoarSvartholm avatar JoarSvartholm commented on July 23, 2024

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).

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.