Open Drimkast opened 1 month ago
Can you attach a full build log? It would be helpful to get more context on what is happening, what buildpacks are being used, etc...
Thanks
Is this something new you're seeing? Like after a recent buildpack upgrade? Or are you trying some new options/configuration? What command are you using to run your app?
This behavior appeared after adding DNS cahce in k8s (/etc/resolv.conf like real k8s)
I use Spring Boot Gradle plugin and build app via bootBuildImage task
OK, I think I know what's going on here. This is related to changes in the Jammy stack, where files are not writable by default. We are going to need to either a.) make this file group writable so it can be modified at build time or copy it to /tmp
, modify, and change the JVM to read from there.
When link-local DNS cache is present i have warning at start of docker container: WARNING: Unable to disable JVM DNS caching disabled in favor of link-local DNS caching because /layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties is read-only
It seems problem in contribute
java-security-properties
layer at build time here and trying to access it at runtime hereSteps to Reproduce
bellsoft-liberica
buildpack and enabled link-local DNS cache. Reproduces on local docker env with mounted /etc/resolv.conf containingnameserver 169.254.25.10