mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 20:09:02 +00:00
Document that you need to build with Java 25 for buildpack build-image Graal support
Closes gh-45501
This commit is contained in:
+2
@@ -37,6 +37,8 @@ NOTE: The CNB builder used for the images is `paketobuildpacks/builder-noble-jav
|
||||
It has a small footprint and reduced attack surface. It does not include a shell and contains a reduced set of system libraries.
|
||||
If you need more tools in the resulting image, you can use `paketobuildpacks/ubuntu-noble-run:latest` as the *run* image.
|
||||
|
||||
NOTE: You have to build your application with at least JDK 25, because Buildpacks use the same GraalVM native-image version as the Java version used for compilation.
|
||||
|
||||
|
||||
|
||||
[[howto.native-image.developing-your-first-application.buildpacks.system-requirements]]
|
||||
|
||||
+1
@@ -56,6 +56,7 @@ NOTE: Your executable jar must include AOT generated assets such as generated cl
|
||||
Spring Boot applications usually use Cloud Native Buildpacks through the Maven (`mvn spring-boot:build-image`) or Gradle (`gradle bootBuildImage`) integrations.
|
||||
You can, however, also use {url-buildpacks-docs}/for-platform-operators/how-to/integrate-ci/pack/[`pack`] to turn an AOT processed Spring Boot executable jar into a native container image.
|
||||
|
||||
NOTE: You have to build your application with at least JDK 25, because Buildpacks use the same GraalVM native-image version as the Java version used for compilation.
|
||||
|
||||
First, make sure that a Docker daemon is available (see https://docs.docker.com/installation/#installation[Get Docker] for more details).
|
||||
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user[Configure it to allow non-root user] if you are on Linux.
|
||||
|
||||
Reference in New Issue
Block a user