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
This commit is contained in:
Ankur Mhatre
2026-12-01 08:32:09 +05:30
co-authored by Claude Sonnet 5.5
parent ddc3ec9d90
commit bb12eaca0a
30 changed files with 744 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Run the Jib image and call it.
source "$(dirname "$0")/lib.sh"
docker rm -f jib-demo-run >/dev/null 2>&1 || true
{
banner "docker run jib-demo:1.0.0 (memory limit 512m)"
docker run -d --name jib-demo-run -m 512m -p 18080:8080 jib-demo:1.0.0 >/dev/null
for i in $(seq 1 60); do curl -s -o /dev/null localhost:18080/actuator/health && break; sleep 1; done
echo '$ curl localhost:18080/hello'
curl -s localhost:18080/hello; echo
echo '$ curl localhost:18080/actuator/health'
curl -s localhost:18080/actuator/health; echo
banner "First lines of the container log"
docker logs jib-demo-run 2>&1 | grep -E 'Starting JibDemoApplication|Tomcat started|Started JibDemoApplication' | sed -E 's/^[0-9T:.Z-]+ +//'
} 2>&1 | clean | tee "$OUT/03-run.txt"
docker rm -f jib-demo-run >/dev/null 2>&1 || true