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
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
|
|
=== mvn jib:build to localhost:5000 (base image pulled from public.ecr.aws/docker/library/eclipse-temurin:25-jre) ===
|
|
$ mvn compile jib:build -Dimage.name=localhost:5000/jib-demo -Djib.allowInsecureRegistries=true
|
|
[INFO] Containerizing application to localhost:5000/jib-demo, localhost:5000/jib-demo:1.0.0...
|
|
[INFO] Getting manifest for base image public.ecr.aws/docker/library/eclipse-temurin:25-jre...
|
|
[INFO] Building dependencies layer...
|
|
[INFO] Building classes layer...
|
|
[INFO] Building extra files layer...
|
|
[INFO] Building jvm arg files layer...
|
|
[INFO] Building resources layer...
|
|
[INFO] Using base image with digest: sha256:4ed132f6832e...
|
|
[INFO] Built and pushed image as localhost:5000/jib-demo, localhost:5000/jib-demo:1.0.0
|
|
[INFO] BUILD SUCCESS
|
|
|
|
=== What the registry now holds ===
|
|
$ curl localhost:5000/v2/_catalog
|
|
{"repositories":["jib-demo"]}
|
|
|
|
$ curl localhost:5000/v2/jib-demo/tags/list
|
|
{"name":"jib-demo","tags":["latest","1.0.0"]}
|
|
|
|
$ manifest media type and layer count
|
|
application/vnd.docker.distribution.manifest.v2+json layers: 11
|
|
|
|
=== Pull and run what Jib pushed ===
|
|
jib-demo image: this file came from src/main/jib/etc/motd.txt via extraDirectories
|