Files
java-devops-demo/jib/scripts/10-default-base.sh
T
Ankur MhatreandClaude Sonnet 5.5 bb12eaca0a Add jib: Spring Boot 4.2.0 images with Jib 3.5.2 vs Buildpacks
Same app built both ways: layers, reproducible digest, extraDirectories, registry push
without a daemon, wrong-JRE and missing-compile failures, Buildpacks memory calculator at
512 MB. Captured output in jib/output, regenerated by jib/scripts/run-all.sh.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
2026-12-01 08:32:09 +05:30

9 lines
570 B
Bash
Executable File

#!/usr/bin/env bash
# Which base image does Jib choose when you do not say? Ask it, with no -Djib.from.image override.
source "$(dirname "$0")/lib.sh"
{
banner "mvn compile jib:buildTar with no base-image override (java.version=25 in the pom)"
echo '$ mvn compile jib:buildTar'
"${MVN[@]}" clean compile jib:buildTar 2>&1 | grep -E 'Getting manifest|Using base image|Built image|ERROR\] (Failed|GET|\{)|BUILD' | sed -E 's/with digest: sha256:([0-9a-f]{12})[0-9a-f]+/with digest: sha256:\1.../' | cut -c1-300 || true
} 2>&1 | clean | tee "$OUT/10-default-base.txt"