Skip to content

πŸ— Build container images for your Java applications.

License

Notifications You must be signed in to change notification settings

gluo1130/jib

This branch is 254 commits behind GoogleContainerTools/jib:master.

Folders and files

NameName
Last commit message
Last commit date
Mar 25, 2022
Jan 18, 2022
Jan 19, 2022
Apr 1, 2022
Dec 22, 2020
Aug 16, 2021
Apr 6, 2022
Mar 30, 2022
Jan 12, 2021
Apr 1, 2022
Aug 13, 2021
Mar 31, 2022
Feb 11, 2022
Jan 12, 2021
Mar 4, 2020
Dec 5, 2018
Nov 9, 2021
Oct 5, 2018
Mar 1, 2021
Jul 10, 2018
Mar 31, 2022
Jul 24, 2017
Jan 19, 2022
Apr 13, 2022
Nov 6, 2019
Apr 22, 2022
Feb 18, 2022
Aug 27, 2019
Aug 27, 2019
Apr 16, 2020

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.
Jib CLI: A command-line interface for building images that uses Jib Core.

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 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!

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:

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.

About

πŸ— Build container images for your Java applications.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.7%
  • Other 0.3%