Use Paketo tiny builder by default for JVM and native apps

Closes gh-40859
This commit is contained in:
Scott Frederick
2024-06-28 11:30:43 -05:00
parent 99904d0307
commit 26b59ae912
13 changed files with 17 additions and 22 deletions

View File

@@ -274,13 +274,9 @@ class PaketoBuilderTests {
"paketo-buildpacks/apache-tomcat", "paketo-buildpacks/dist-zip",
"paketo-buildpacks/spring-boot");
metadata.processOfType("web")
.satisfiesExactly((command) -> assertThat(command).endsWith("sh"),
(arg) -> assertThat(arg).endsWith("catalina.sh"),
(arg) -> assertThat(arg).isEqualTo("run"));
.containsSubsequence("java", "org.apache.catalina.startup.Bootstrap", "start");
metadata.processOfType("tomcat")
.satisfiesExactly((command) -> assertThat(command).endsWith("sh"),
(arg) -> assertThat(arg).endsWith("catalina.sh"),
(arg) -> assertThat(arg).isEqualTo("run"));
.containsSubsequence("java", "org.apache.catalina.startup.Bootstrap", "start");
});
assertImageHasJvmSbomLayer(imageReference, config);
assertImageHasDependenciesSbomLayer(imageReference, config, "apache-tomcat");

View File

@@ -38,5 +38,6 @@ application {
bootBuildImage {
archiveFile = bootDistZip.archiveFile
builder = "paketobuildpacks/builder-jammy-base:latest"
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
}

View File

@@ -38,5 +38,6 @@ application {
bootBuildImage {
archiveFile = distZip.archiveFile
builder = "paketobuildpacks/builder-jammy-base:latest"
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
}