Search code examples
dockermavenjib

Using GoogleContainerTools/jib only to build without deploy?


I'd like to use jib but only for building an image and not deploying it to the cloud or dockerhub.

Is it possible?


Solution

  • Jib supports also building an image without sending it to a remote registry, e.g. with the Gradle plugin you can run:

    gradle jibDockerBuild
    

    instead of:

    gradle jib
    

    It also supports commands like gradle jibBuildTar to build the image and store it in a tar file.