Does java buildpacks will download jre everytime? #192
Replies: 1 comment · 5 replies
-
Hard to say if it is true or not for your particular case without more information, but generally speaking, it should not download every time. If it does, then something is not working properly. To expand, there are things you can do which will make it download every time. For example, changing the name of your application image or appending a unique build number to the name of your application image, or clearing out the cache. Anyway, if you are seeing it download on every build, feel free to post your build logs and we can look at why it is doing that. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi dmikusa:
Best Regards |
Beta Was this translation helpful? Give feedback.
All reactions
-
So I see things like
It says Please run one more build and include the |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi dmikusa: |
Beta Was this translation helpful? Give feedback.
All reactions
-
OK, it looks like there is some difference between the expected/actual metadata. It is probably a known issue where the deprecation date can cause problems. Fortunately, there is a fix for this in the latest libpak (1.66.0), and we're rolling that out here shortly (hopefully by the end of this week). I would suggest trying again with the latest buildpacks next week, and then please report back on how that went. If it's not it, we can look at other options. |
Beta Was this translation helpful? Give feedback.
-
Hi:
I often use command like this to build image.
mvn clean package
pack build icede-demo-java --path target/*.jar --buildpack gcr.io/paketo-buildpacks/java --builder paketobuildpacks/builder:base --env BP_JVM_VERSION=17
When i modify my code and decide to build a new image, I notice command output will contain "Downloading from https://github.com/bell-sw/Liberica/releases/download/17.0.7+7/bellsoft-jre17.0.7+7-linux-amd64.tar.gz
". It seems like buildpacks will download jre everytime.
Is that true? If so, is there any chance to avoid download jre everytime?
Best Regards
Beta Was this translation helpful? Give feedback.
All reactions