Skip to content

Commit ca3fbb2

Browse files
committed
Mention system libraries as a reason not to use tiny builder
Closes gh-43716
1 parent e1e8487 commit ca3fbb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/how-to/pages/native-image/developing-your-first-application.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ The resulting image doesn't contain a JVM, instead the native image is compiled
3434
This leads to smaller images.
3535

3636
NOTE: The CNB builder used for the images is `paketobuildpacks/builder-jammy-java-tiny:latest`.
37-
It has small footprint and reduced attack surface, but you can also use `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest` to have more tools available in the image if required.
37+
It has a small footprint and reduced attack surface. It does not include a shell and contains a reduced set of system libraries.
38+
Use `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest` to have more tools available in the image if required.
3839

3940

4041

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/antora/modules/gradle-plugin/pages/packaging-oci-image.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ NOTE: The plugin detects the target Java compatibility of the project using the
251251
When using the default Paketo builder and buildpacks, the plugin instructs the buildpacks to install the same Java version.
252252
You can override this behavior as shown in the xref:packaging-oci-image.adoc#build-image.examples.builder-configuration[builder configuration] examples.
253253

254-
NOTE: The default builder `paketobuildpacks/builder-jammy-java-tiny:latest` does not include a shell.
255-
Applications that require a shell to run a start script, as might be the case when the {url-gradle-docs-application-plugin}[`application` plugin] has been applied to generate a distribution zip archive, should override the `builder` configuration to use one that includes a shell, such as `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest`.
254+
NOTE: The default builder `paketobuildpacks/builder-jammy-java-tiny:latest` contains a reduced set of system libraries and does not include a shell.
255+
Applications that require a shell to run a start script, as might be the case when the {url-gradle-docs-application-plugin}[`application` plugin] has been applied to generate a distribution zip archive, or that depend upon a system library that is not present, should override the `builder` configuration to use one that includes a shell and a broader set of system libraries, such as `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest`.
256256

257257

258258

0 commit comments

Comments
 (0)