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 tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Jib does.
- Buildah A tool that facilitates building OCI container images
- ko Simple, fast container image builder for Go applications
- kaniko Build Container Images In Kubernetes
- BuildKit concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
- Docker Build Cloud Build container images faster on cloud builders with a shared cache, locally and in CI
- Docker Buildx Docker CLI plugin for extended build capabilities with BuildKit
