jib

:sailboat: Build container images for your Java applications.

Github星跟踪图

stable
Maven Central
Gradle Plugin Portal
Build Status
Build Status
Build Status
Gitter version

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.

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

Examples

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

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 a distroless 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.

Frequently Asked Questions (FAQ)

See the Frequently Asked Questions (FAQ) page.

Privacy

See the Privacy page.

Get involved with the community

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

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

主要指标

概览
名称与所有者GoogleContainerTools/jib
主编程语言Java
编程语言Java (语言数: 5)
平台
许可证Apache License 2.0
所有者活动
创建于2018-01-22 18:30:43
推送于2025-05-16 01:15:36
最后一次提交2025-04-23 22:03:16
发布数190
最新版本名称v3.4.5-maven (发布于 2025-03-17 15:02:15)
第一版名称v0.1.0 (发布于 )
用户参与
星数13.9k
关注者数325
派生数1.5k
提交数2.4k
已启用问题?
问题数1714
打开的问题数167
拉请求数2317
打开的拉请求数51
关闭的拉请求数304
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?