Use Paketo tiny builder by default for JVM and native apps
Closes gh-40859
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -38,5 +38,6 @@ application {
|
||||
|
||||
bootBuildImage {
|
||||
archiveFile = bootDistZip.archiveFile
|
||||
builder = "paketobuildpacks/builder-jammy-base:latest"
|
||||
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
|
||||
}
|
||||
@@ -38,5 +38,6 @@ application {
|
||||
|
||||
bootBuildImage {
|
||||
archiveFile = distZip.archiveFile
|
||||
builder = "paketobuildpacks/builder-jammy-base:latest"
|
||||
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
|
||||
}
|
||||
Reference in New Issue
Block a user