MCPcopy
hub / github.com/GoogleContainerTools/jib

github.com/GoogleContainerTools/jib @v3.5.3-gradle sqlite

repository ↗ · DeepWiki ↗ · release v3.5.3-gradle ↗
4,830 symbols 25,649 edges 601 files 1,463 documented · 30%
README

stable Maven Central Gradle Plugin Portal Build Status Build Status Build Status SLSA 3 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.

Jib works well with Google Cloud Build. For details, see how to use Jib on Google Cloud Build.

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). * helloworld * Spring Boot * Micronaut * Multi-module project * Spark Java using Java Agent

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.

Extension points exported contracts — how you extend this code

Blob (Interface)
Holds a BLOB source for writing to an OutputStream. [10 implementers]
jib-core/src/main/java/com/google/cloud/tools/jib/blob/Blob.java
ExtensionLogger (Interface)
Logger for plugin extensions. [7 implementers]
jib-plugins-extension-common/src/main/java/com/google/cloud/tools/jib/plugins/extension/ExtensionLogger.java
ArtifactProcessor (Interface)
Interface to create layers and compute entrypoint from JAR or WAR file contents. [10 implementers]
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/ArtifactProcessor.java
JibTask (Interface)
A task with a JibExtension. [9 implementers]
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibTask.java
AuthProperty (Interface)
Holds a username and password property. [5 implementers]
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/AuthProperty.java
FilePermissionsProvider (Interface)
Interface for providing rules to determine file permissions on a container. [3 implementers]
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/FilePermissionsProvider.java
MavenData (Interface)
Holds Maven-specific data and properties. [2 implementers]
jib-maven-plugin-extension-api/src/main/java/com/google/cloud/tools/jib/maven/extension/MavenData.java
JibGradlePluginExtension (Interface)
Jib Gradle plugin extension API. If a class implementing the interface is visible on the classpath of the Jib Gradle [2 …
jib-gradle-plugin-extension-api/src/main/java/com/google/cloud/tools/jib/gradle/extension/JibGradlePluginExtension.java

Core symbols most depended-on inside this repo

get
called by 937
jib-core/src/main/java/com/google/cloud/tools/jib/frontend/CredentialRetrieverFactory.java
resolve
called by 751
jib-core/src/main/java/com/google/cloud/tools/jib/docker/DockerClientResolver.java
of
called by 588
jib-core/src/main/java/com/google/cloud/tools/jib/api/ImageReference.java
get
called by 584
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/OwnershipProvider.java
asList
called by 435
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/DefaultCredentialRetrievers.java
toString
called by 348
jib-core/src/main/java/com/google/cloud/tools/jib/api/LogEvent.java
get
called by 327
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/AbsoluteUnixPath.java
getMessage
called by 260
jib-core/src/main/java/com/google/cloud/tools/jib/api/LogEvent.java

Shape

Method 4,110
Class 659
Interface 46
Enum 15

Languages

Java100%

Modules by API surface

jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfiguration.java92 symbols
jib-plugins-common/src/test/java/com/google/cloud/tools/jib/plugins/common/PluginConfigurationProcessorTest.java81 symbols
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/MavenProjectPropertiesTest.java70 symbols
jib-plugins-common/src/main/java/com/google/cloud/tools/jib/plugins/common/RawConfiguration.java52 symbols
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/BuildContext.java45 symbols
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ContainerConfigurationTemplate.java42 symbols
jib-maven-plugin/src/integration-test/java/com/google/cloud/tools/jib/maven/BuildImageMojoIntegrationTest.java41 symbols
jib-cli/src/test/java/com/google/cloud/tools/jib/cli/JarTest.java41 symbols
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/MavenProjectPropertiesExtensionTest.java39 symbols
jib-core/src/test/java/com/google/cloud/tools/jib/registry/RegistryEndpointCallerTest.java39 symbols
jib-cli/src/test/java/com/google/cloud/tools/jib/cli/WarTest.java39 symbols
jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/ContainerBuildPlan.java39 symbols

Dependencies from manifests, versioned

com.google.cloud.tools:tiny-test-lib0.0.1-SNAPSHOT · 1×
com.google.guava:guava32.0.0-jre · 1×
com.jib.test:lib1.0.0.TEST-SNAPSHOT · 1×
com.sparkjava:spark-core2.9.1 · 1×
com.test:dependency1.0.0 · 1×
de.thomaskrille:dropwizard-template-config
io.dropwizard:dropwizard-bom
io.dropwizard:dropwizard-core
jakarta.servlet:jakarta.servlet-api5.0.0 · 1×
junit:junit4.13.1 · 1×
org.slf4j:slf4j-simple1.7.28 · 1×

For agents

$ claude mcp add jib \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact