You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncompressed archives in the tars attribute is no longer compressed when creating the image, this might make images bigger compared to 1.x. Use pkg_tar#extension or tar#compress attribute to compress the layers beforehand.
When loading an image in from rules_oci, I see the exception
* What went wrong:
Execution failed for task ':app:jibBuildTar'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: org.apache.commons.compress.compressors.CompressorException: No Compressor found for the stream signature.
That tracks, as there is no longer any compression.
Expected behavior:
Build succeeds.
Steps to reproduce:
start a local registry (docker run -d -p 5000:5000 --name registry registry)
use bazel and rules_oci to produce a docker image (targeting a local registry, using rules_oci's oci_load)
push to the local registry (docker push localhost:5000/distroless/java21:nonroot, required as jib can't load registry images)
Try to build an image using that registry image (see gradle config below)
jib-gradle-plugin Configuration:
jib {
from {
setAllowInsecureRegistries(true)
image ="localhost:5000/distroless/java21:nonroot"
Log output:
* What went wrong:
Execution failed for task ':app:jibBuildTar'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: org.apache.commons.compress.compressors.CompressorException: No Compressor found for the stream signature.
Additional Information:
Can be worked around by re-enabling compression as the rules_oci changelog points out.
pkg_tar(
name = "tar_java" + version + "_" + arch,
extension = "tar.gz",
The text was updated successfully, but these errors were encountered:
Sineaggi
changed the title
Issue with loading images created by bazel rules_oci
Jib cannot load images created by bazel rules_oci 2.x
Apr 11, 2025
Environment:
Description of the issue:
Jib fails to load images produced with bazel's rules_oci 2.x
https://github.com/bazel-contrib/rules_oci/releases/tag/v2.0.0
This seems to be due to the following change
When loading an image in from rules_oci, I see the exception
That tracks, as there is no longer any compression.
Expected behavior:
Build succeeds.
Steps to reproduce:
docker run -d -p 5000:5000 --name registry registry
)docker push localhost:5000/distroless/java21:nonroot
, required as jib can't load registry images)jib-gradle-plugin
Configuration:Log output:
Additional Information:
Can be worked around by re-enabling compression as the rules_oci changelog points out.
The text was updated successfully, but these errors were encountered: