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
+11
View File
@@ -0,0 +1,11 @@
=== docker run jib-demo:1.0.0 (memory limit 512m) ===
$ curl localhost:18080/hello
{"user":"ubuntu","maxHeapMb":371,"javaVersion":"25.0.5.1+2-LTS","greeting":"hello from a Jib image"}
$ curl localhost:18080/actuator/health
{"groups":["liveness","readiness"],"status":"UP"}
=== First lines of the container log ===
INFO 1 --- [jib-demo] [ main] com.ankurm.jibdemo.JibDemoApplication : Starting JibDemoApplication using Java 25.0.5.1 with PID 1 (/app/classes started by ubuntu in /)
INFO 1 --- [jib-demo] [ main] o.s.boot.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
INFO 1 --- [jib-demo] [ main] com.ankurm.jibdemo.JibDemoApplication : Started JibDemoApplication in 2.919 seconds (process running for 3.306)