-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpringBoot Layered Jar not properly reusing cache #2393
Comments
I think this issue is not just specific to SpringBoot. I think none of the container images generated by the generators are able to utilize the docker cache. We add some labels to container image in BaseGenerator This adds a label build date with timestamp in Dockerfile, this changes for every build even if no change is applied. This triggers rebuild of layers added below labels. Here is a diff of two Dockerfiles generated on two consecutive We should change |
I'm not really sure about this. For Jib we're already basing the build on a constant date. |
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (eclipse-jkube#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
…label (#2393) We add `org.label-schema.build-date` LABEL to image while creating opinionated container images. This causes Dockerfile to be different for every build and it doesn't utilize docker cache properly. Signed-off-by: Rohan Kumar <[email protected]>
Description
The current approach to prepare the layers for Spring Boot Layered Jar nested generator is not working OK.
The dependency layers don't preserve the original creation date of the jar dependencies. This causes the layer digest to change from build to build. Hence, the layers can't be reused from their cached digest id.
Note
It seems that when the assembly is prepared, the timestamps for the files are lost.
Relates to
The text was updated successfully, but these errors were encountered: