talira

Build container images for your Java applications

open sourceApache-2.0self-hostablefree

Jib builds optimized Docker and OCI images for Java applications without a Docker daemon or a Dockerfile. It runs as a Maven or Gradle plugin (or as the Jib CLI, or the Jib Core Java library), splits the application into layers so dependencies, resources and classes are cached separately and only changed layers are rebuilt, produces reproducible images, and pushes straight to any container registry. It's a Google Container Tools project under Apache-2.0.

Problems it solves

  • build a Docker image for our Spring Boot app without writing a Dockerfile
  • build container images in CI without a Docker daemon or privileged mode
  • only rebuild the layer with our classes instead of the whole image on every change
  • reproducible container image builds for a Java app
  • push a Java app's image to our registry straight from Maven or Gradle

Features

  • Maven and Gradle plugins
  • Jib CLI and Jib Core library
  • no Docker daemon or Dockerfile needed
  • layers split dependencies from classes for fast rebuilds
  • reproducible images
  • pushes to any registry
  • Docker and OCI image formats

Limitations

  • Builds images for Java (JVM) applications only1

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Jib does.

  1. Buildah A tool that facilitates building OCI container images
  2. ko Simple, fast container image builder for Go applications
  3. kaniko Build Container Images In Kubernetes
  4. BuildKit concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
  5. Docker Build Cloud Build container images faster on cloud builders with a shared cache, locally and in CI
  6. Docker Buildx Docker CLI plugin for extended build capabilities with BuildKit

Compare Jib with the top 3