Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jib

> DevOps
Open source

🏗 Build container images for your Java applications.

14.4K stars0 likes0 views
WebsiteGitHub

About

🏗 Build container images for your Java applications.

Jib

☑️ Jib User Survey
What do you like best about Jib? What needs to be improved? Please tell us by taking a one-minute survey. Your responses will help us understand Jib usage and allow us to serve our customers (you!) better.

What is Jib?

Jib builds optimized Docker and OCI images for your Java applications without a Docker daemon - and without deep mastery of Docker best-practices. It is available as plugins for Maven and Gradle and as a Java library.

  • Maven: See documentation for jib-maven-plugin.
  • Gradle: See documentation for jib-gradle-plugin.
  • Jib Core: A general-purpose container-building library for Java.
  • Jib CLI: A command-line interface for building images that uses Jib Core.

Jib works well with Google Cloud Build. For details, see how to use Jib on Google Cloud Build.

For more information, check out the official blog post or watch this talk (slides).

Goals

  • Fast - Deploy your changes fast. Jib separates your application into multiple layers, splitting dependencies from classes. Now you don’t have to wait for Docker to rebuild your entire Java application - just deploy the layers that changed.

  • Reproducible - Rebuilding your container image with the same contents always generates the same image. Never trigger an unnecessary update again.

  • Daemonless - Reduce your CLI dependencies. Build your Docker image from within Maven or Gradle and push to any registry of your choice. No more writing Dockerfiles and calling docker build/push.

Quickstart

  • Maven - See the jib-maven-plugin Quickstart.

  • Gradle - See the jib-gradle-plugin Quickstart.

  • Jib Core - See the Jib Core Quickstart.

  • Jib CLI - See the Jib CLI doc.

Examples

The examples directory includes the following examples (and more).

  • helloworld
  • Spring Boot
  • Micronaut
  • Multi-module project
  • Spark Java using Java Agent

How Jib Works

Whereas traditionally a Java application is built as a single image layer with the application JAR, Jib's build strategy separates the Java application into multiple layers for more granular incremental builds. When you change your code, only your changes are rebuilt, not your entire application. These layers, by default, are layered on top of an OpenJDK base image, but you can also configure a custom base image. For more information, check out the official blog post or watch this talk (slides).

See also rules_docker for a similar existing container image build tool for the Bazel build system.

Need Help?

A lot of questions are already answered!

  • Frequently Asked Questions (FAQ)
  • Stack Overflow
  • GitHub issues

For usage questions, please ask them on Stack Overflow.

Privacy

See the Privacy page.

Get involved with the community

We welcome contributions! Here's how you can contribute:

  • Browse issues or file an issue
  • Chat with us on gitter
  • Join the jib-users mailing list
  • Contribute:
    • Read the contributing guide before starting work on an issue
    • Try to fix good first issues
    • Help out on issues that need help
    • Join in on discussion issues

Make sure to follow the Code of Conduct when contributing so we can foster an open and welcoming community.

Disclaimer

This is not an officially supported Google product.

Issues· 257 open

View all issuesOpen on GitHub
  • #4135

    Security Policy violation Binary Artifacts

    priority: p2type: processallstarUpdated Oct 1, 2026
  • #2007

    Jib should avoid parallel image downloads for same image

    area/jib-corepriority:p3enhancementUpdated Sep 29, 2026
  • #4461

    Scala2 JDK25 MainClassFinder finds the singleton implementation class name(Main$) along with the correct class name(Main)

    type:bugpriority: p3Updated Sep 29, 2026
  • #4237

    Jib MacOS Continuous job still experiencing failure with jetty

    priority:p3type:bugUpdated Sep 29, 2026
  • #4067

    Convert Gradle config parameters `jib.container.environment` to use lazy evaluation

    priority:p3good first issueenhancementUpdated Sep 28, 2026
  • #4498

    Expose mediaType in ContentDescriptorTemplate

    priority: p3type: feature requestUpdated Sep 22, 2026
  • #4314

    skipExistingImages not working correctly?

    priority:p3type:bugUpdated Sep 22, 2026
  • #4529

    Suppressed NPE on RegistryUnauthorizedException

    type:bugpriority: p3Updated Sep 22, 2026
  • #4301

    Pushing to GitHub fails with BLOB_UPLOAD_UNKNOWN

    priority:p3type:bugUpdated Sep 18, 2026
  • #4385

    Jib authentication logic may not determine if authentication is required correctly

    priority: p3type: feature requestUpdated Sep 8, 2026

> Tags

Javacontainersdockerdocker-registrygradle

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理