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
37 lines
2.6 KiB
Plaintext
37 lines
2.6 KiB
Plaintext
|
|
=== Cold builds (Jib: local Jib cache removed; Buildpacks: cleanCache=true), seconds ===
|
|
jib cold: 9
|
|
buildpacks cold: 19
|
|
|
|
=== Warm rebuilds after a one-line change, seconds ===
|
|
jib warm: 10
|
|
buildpacks warm: 13
|
|
|
|
=== Images (docker image inspect) ===
|
|
jib-demo:1.0.0 size=540348618 layers=11 created=1970-01-01T00:00:00Z user=1000
|
|
jib-demo:buildpacks size=658601199 layers=18 created=1980-01-01T00:00:01Z user=1002:1001
|
|
|
|
=== Is there a shell in the final image? (docker run --entrypoint sh ... -c 'echo yes') ===
|
|
jib-demo:1.0.0 yes
|
|
jib-demo:buildpacks docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: exec: "sh": executable file not found in $PATH
|
|
|
|
=== Run each image under a memory limit ===
|
|
--- jib-demo:1.0.0 memory=512m
|
|
{"maxHeapMb":371,"user":"ubuntu","greeting":"hello from a Jib image","javaVersion":"25.0.5.1+2-LTS"}
|
|
container memory in use: 141.6MiB / 512MiB
|
|
INFO 1 --- [jib-demo] [ main] com.ankurm.jibdemo.JibDemoApplication : Started JibDemoApplication in 2.558 seconds (process running for 2.85)
|
|
--- jib-demo:buildpacks memory=512m
|
|
container exited with code 82
|
|
unable to calculate memory configuration
|
|
fixed memory regions require 591743K which is greater than 512M available for allocation: -XX:MaxDirectMemorySize=10M, -XX:MaxMetaspaceSize=79743K, -XX:ReservedCodeCacheSize=240M, -Xss1M * 250 threads
|
|
--- jib-demo:buildpacks memory=512m -e BPL_JVM_THREAD_COUNT=50
|
|
{"greeting":"hello from a Jib image","user":"cnb","maxHeapMb":131,"javaVersion":"25.0.5.1+5-LTS"}
|
|
container memory in use: 136.9MiB / 512MiB
|
|
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx137344K -XX:MaxMetaspaceSize=79743K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 512M, Thread Count: 50, Loaded Class Count: 11665, Headroom: 0%)
|
|
INFO 1 --- [jib-demo] [ main] com.ankurm.jibdemo.JibDemoApplication : Started JibDemoApplication in 3.036 seconds (process running for 3.359)
|
|
--- jib-demo:buildpacks memory=1g
|
|
{"javaVersion":"25.0.5.1+5-LTS","maxHeapMb":433,"user":"cnb","greeting":"hello from a Jib image"}
|
|
container memory in use: 132.4MiB / 1GiB
|
|
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx456832K -XX:MaxMetaspaceSize=79743K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 1G, Thread Count: 250, Loaded Class Count: 11665, Headroom: 0%)
|
|
INFO 1 --- [jib-demo] [ main] com.ankurm.jibdemo.JibDemoApplication : Started JibDemoApplication in 2.895 seconds (process running for 3.259)
|