Skip to content
πŸ— Build container images for your Java applications.
Java Other
  1. Java 99.6%
  2. Other 0.4%
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Tweak issue template and reorganize FAQ (#1861) Jul 22, 2019
docs Update FAQ with layering information (#2066) Oct 16, 2019
examples Update version strings for 1.7.0 (#2079) Oct 18, 2019
gradle/wrapper Move to unified gradle build (#1835) Aug 27, 2019
jib-core Eliminate generic-related warnings and minor cleanups (#2082) Oct 18, 2019
jib-gradle-plugin More minor cleanup (#2085) Oct 18, 2019
jib-maven-plugin More minor cleanup (#2085) Oct 18, 2019
jib-plugins-common Remove unused methods (#2081) Oct 18, 2019
kokoro cd into directory (#1934) Aug 27, 2019
logo Adds logo with no text and small square icons. (#1295) Dec 5, 2018
proposals Proposal RFC: custom output file locations (#2024) Oct 1, 2019
.gitattributes Upgrade / add Gradle wrappers (#1095) Oct 5, 2018
.gitignore Move to unified gradle build (#1835) Aug 27, 2019
.travis.yml Move to unified gradle build (#1835) Aug 27, 2019
CODE_OF_CONDUCT.md code of conduct (#533) Jul 10, 2018
CONTRIBUTING.md Update version strings for 1.7.0 (#2079) Oct 18, 2019
LICENSE Initialize repository with README, LICENSE and CONTRIBUTING Jul 24, 2017
README.md Survey in README.md (/, maven, gradle, faq) (#2020) Sep 26, 2019
STYLE_GUIDE.md Adds initial style guide. (#1208) Nov 15, 2018
build.gradle mockito 3.1.0 (#2033) Oct 3, 2019
gradlew Move to unified gradle build (#1835) Aug 27, 2019
gradlew.bat Move to unified gradle build (#1835) Aug 27, 2019
settings.gradle Move to unified gradle build (#1835) Aug 27, 2019

README.md

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

Jib

Jib - Containerize your Java applications.

β˜‘οΈ 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.

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.

You can’t perform that action at this time.