🏗 Build container images for your Java applications.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] over 3 years ago
JavaContainerBuilder#fromDistroless()
and JavaContainerBuilder#fromDistrolessJetty()
are deprecated. To migrate, check the Javadoc. (#3123)*-docker.pkg.dev
), Jib now tries Google Application Default Credentials last like it has been doing for gcr.io
. (#3241)TarImage
are set to the epoch, making the tarball reproducible. (#3158)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
jib.container.entrypoint
is configured. (#3295)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
<container><entrypoint>
is configured. (#3295)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
*-docker.pkg.dev
), Jib now tries Google Application Default Credentials last like it has been doing for gcr.io
. (#3241)/app/jib-classpath-file
and /app/jib-main-class-file
. They hold, respectively, the final Java runtime classpath and the main class computed by Jib that are suitable for app execution on JVM. For example, with Java 9+, setting the container entrypoint to java --class-path @/app/jib-classpath-file @/app/jib-main-class-file
will work to start the app. (This is basically the default entrypoint set by Jib when the entrypoint is not explicitly configured by the user.) The files are always generated whether Java 8 or 9+, or whether jib.container.entrypoint
is explicitly configured. The files can be helpful especially when setting a custom entrypoint for a shell script that needs to get the classpath and the main class computed by Jib, or for AppCDS. (#3280)java -cp @/app/jib-classpath-file
). As such, <container><expandClasspathDependencies>
takes no effect for Java 9+. (#3280)jib:buildTar
are set to the epoch, making the tarball reproducible. (#3158)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
*-docker.pkg.dev
), Jib now tries Google Application Default Credentials last like it has been doing for gcr.io
. (#3241)/app/jib-classpath-file
and /app/jib-main-class-file
. They hold, respectively, the final Java runtime classpath and the main class computed by Jib that are suitable for app execution on JVM. For example, with Java 9+, setting the container entrypoint to java --class-path @/app/jib-classpath-file @/app/jib-main-class-file
will work to start the app. (This is basically the default entrypoint set by Jib when the entrypoint is not explicitly configured by the user.) The files are always generated whether Java 8 or 9+, or whether jib.container.entrypoint
is explicitly configured. The files can be helpful especially when setting a custom entrypoint for a shell script that needs to get the classpath and the main class computed by Jib, or for AppCDS. (#3280)java -cp @/app/jib-classpath-file
). As such, jib.container.expandClasspathDependencies
takes no effect for Java 9+. (#3280)jibBuildTar
are set to the epoch, making the tarball reproducible. (#3158)jib.container.labels
using Gradle Property and Provider. (#3242)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
--image-metadata-out
option to specify the JSON output file that should contain image metadata (image ID, digest, and tags) after build is complete. (#3187)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
adoptopenjdk:{8,11}-jre
and jetty
(for WAR). (#3124)<includes>
and <excludes>
options for <extraDirectories>
. This enables copying a subset of files from the source directory using glob patterns. (#2564)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
adoptopenjdk:{8,11}-jre
and jetty
(for WAR). (#3124)includes
and excludes
options for jib.extraDirectories
. This enables copying a subset of files from the source directory using glob patterns. (#2564)configurationName
to specify the name of the Gradle Configuration to use. The option can be lazily configured, for example, using Gradle Provider
or Property
. (#3034) jib {
configurationName = 'myconfig'
}
See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
mirror.gcr.io
) are supported. (#3134)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
openjdk
images to the adoptopenjdk
images on Docker Hub. (#3108)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
jar
command which can be used to containerize a JAR with $ jib jar --target ... my-app.jar.
By default, the command will add the contents of the JAR into optimized layers on the container. (#11)See CHANGELOG.md for more details
Published by github-actions[bot] over 3 years ago
Containerizer#addRegistryMirrors
for configuring registry mirrors for base images. This is useful when hitting Docker Hub rate limits. Only public mirrors (such as mirror.gcr.io
) are supported. (#2999)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
mirror.gcr.io
) are supported. (#3011)See CHANGELOG.md for more details.
Published by github-actions[bot] over 3 years ago
mirror.gcr.io
) are supported. (#3011)See CHANGELOG.md for more details.
Published by github-actions[bot] almost 4 years ago
NullPointerException
when pulling an OCI base image whose manifest does not have mediaType
information. (#2819)docker://...
) that has duplicate layers. (#2829)See CHANGELOG.md for more details.
Published by github-actions[bot] almost 4 years ago
Preview release
Published by loosebazooka almost 4 years ago
@Optional
on boolean attribute (#2930)See CHANGELOG.md for more details.
Published by loosebazooka almost 4 years ago
See CHANGELOG.md for more details.
Published by chanseokoh almost 4 years ago
jib.container.expandClasspathDependencies
to preserve the order of loading dependencies as configured in a project. The option enumerates dependency JARs instead of using a wildcard (/app/libs/*
) in the Java runtime classpath for an image entrypoint. (#1871, #1907, #2228, #2733)
jib.(to|from).auth.(username|password)
and jib.from.image
using Gradle Property and Provider. (#2905)NullPointerException
when pulling an OCI base image whose manifest does not have mediaType
information. (#2819)docker://...
) that has duplicate layers. (#2829)See CHANGELOG.md for more details.