liveBook · Manning

Jib

As explained in Quarkus in Action

Jib is a container-image building tool that constructs images for Java applications without requiring a Docker daemon.

Jib builds fast, reproducible container images for Java applications without using a Docker daemon during image construction. It produces Docker- and OCI-compatible images and separates application dependencies into their own layer, allowing rebuilds to reuse dependencies that change less often. section 11.2

Quarkus integrates Jib through the quarkus-container-image-jib extension, but the Quarkus CLI can also invoke it directly. The CLI supports both Maven and Gradle projects; Maven additionally supports the quarkus:image-build goal. section 11.2 section 11.2.1

Build a Reservation service image

Run quarkus image build jib from the service project. Quarkus creates an image such as <username>/reservation-service:1.0.0-SNAPSHOT. Although Jib builds without a daemon, Docker or Podman is still needed when the image must be registered in a local registry. section 11.2.1 section 11.2

Push the resulting image with quarkus image push. The command targets Docker Hub by default and performs a standard docker push, so authentication and matching local and Docker usernames can enable the default workflow. section 11.2.1

How Quarkus in Action covers it

How deep it goes
Explains daemonless layered builds, Quarkus commands, registry pushing, and local Docker or Podman constraints.
Examples
Uses the Reservation service and the quarkus image build jib command to create a tagged local image.
What it assumes
Assumes a Quarkus application and CLI, while explaining image construction and local registry requirements.
What you can do after
Build and push a Quarkus container image using the CLI and Jib.
How it connects
Connects container images with Quarkus CLI, Maven, Gradle, Docker, Podman, Docker Hub, and OCI compatibility.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.