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:
co-authored by
Claude Sonnet 5.5
parent
ddc3ec9d90
commit
bb12eaca0a
@@ -0,0 +1,56 @@
|
||||
|
||||
=== mvn jib:dockerBuild ===
|
||||
$ mvn jib:dockerBuild -Djib.from.image=docker://eclipse-temurin:25-jre
|
||||
[INFO] Containerizing application to Docker daemon as jib-demo, jib-demo:1.0.0...
|
||||
[INFO] Building dependencies layer...
|
||||
[INFO] Building resources layer...
|
||||
[INFO] Building classes layer...
|
||||
[INFO] Building extra files layer...
|
||||
[INFO] Building jvm arg files layer...
|
||||
[INFO] Container entrypoint set to [java, -XX:MaxRAMPercentage=75, -cp, @/app/jib-classpath-file, com.ankurm.jibdemo.JibDemoApplication]
|
||||
[INFO] Built image to Docker daemon as jib-demo, jib-demo:1.0.0
|
||||
[INFO] BUILD SUCCESS
|
||||
[INFO] Total time: 6.894 s
|
||||
|
||||
=== Image config ===
|
||||
tags=[jib-demo:1.0.0 jib-demo:latest localhost:5000/jib-demo:1.0.0]
|
||||
user=1000
|
||||
created=1970-01-01T00:00:00Z
|
||||
exposed=map[8080/tcp:{}]
|
||||
entrypoint=["java","-XX:MaxRAMPercentage=75","-cp","@/app/jib-classpath-file","com.ankurm.jibdemo.JibDemoApplication"]
|
||||
layers=11
|
||||
size=540348618 bytes
|
||||
|
||||
=== Layers Jib added on top of the base image ===
|
||||
12.3kB jib-maven-plugin:3.5.2
|
||||
16.4kB jib-maven-plugin:3.5.2
|
||||
32.8kB jib-maven-plugin:3.5.2
|
||||
28.7kB jib-maven-plugin:3.5.2
|
||||
22.2MB jib-maven-plugin:3.5.2
|
||||
|
||||
=== What is inside /app (no fat jar) ===
|
||||
classes
|
||||
jib-classpath-file
|
||||
jib-main-class-file
|
||||
libs
|
||||
resources
|
||||
|
||||
HdrHistogram-2.2.2.jar
|
||||
commons-logging-1.4.0.jar
|
||||
jackson-annotations-2.21.jar
|
||||
jackson-core-3.1.8.jar
|
||||
jackson-databind-3.1.8.jar
|
||||
... 49 jars in /app/libs
|
||||
|
||||
/app/classes:
|
||||
com
|
||||
|
||||
/app/resources:
|
||||
application.properties
|
||||
com
|
||||
|
||||
jib-demo image: this file came from src/main/jib/etc/motd.txt via extraDirectories
|
||||
|
||||
/app/resources
|
||||
/app/classes
|
||||
/app/libs/spring-boot-starter-webmvc-4.2.0.jar
|
||||
Reference in New Issue
Block a user