Use paketobuildpacks/builder-noble-java-tiny as the default image builder
Closes gh-42711
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
* Copyright 2012-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -278,9 +278,9 @@ class PaketoBuilderTests {
|
||||
"paketo-buildpacks/apache-tomcat", "paketo-buildpacks/dist-zip",
|
||||
"paketo-buildpacks/spring-boot");
|
||||
metadata.processOfType("web")
|
||||
.containsSubsequence("java", "org.apache.catalina.startup.Bootstrap", "start");
|
||||
.containsSubsequence("sh", "/layers/paketo-buildpacks_apache-tomcat/tomcat/bin/catalina.sh", "run");
|
||||
metadata.processOfType("tomcat")
|
||||
.containsSubsequence("java", "org.apache.catalina.startup.Bootstrap", "start");
|
||||
.containsSubsequence("sh", "/layers/paketo-buildpacks_apache-tomcat/tomcat/bin/catalina.sh", "run");
|
||||
});
|
||||
assertImageHasJvmSbomLayer(imageReference, config);
|
||||
assertImageHasDependenciesSbomLayer(imageReference, config, "apache-tomcat");
|
||||
|
||||
@@ -39,6 +39,5 @@ application {
|
||||
|
||||
bootBuildImage {
|
||||
archiveFile = bootDistZip.archiveFile
|
||||
builder = "paketobuildpacks/builder-jammy-base:latest"
|
||||
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,6 @@ application {
|
||||
|
||||
bootBuildImage {
|
||||
archiveFile = distZip.archiveFile
|
||||
builder = "paketobuildpacks/builder-jammy-base:latest"
|
||||
runImage = "paketobuildpacks/ubuntu-noble-run-base:latest"
|
||||
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion()]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,5 +32,6 @@ war {
|
||||
|
||||
bootBuildImage {
|
||||
archiveFile = war.archiveFile
|
||||
runImage = "paketobuildpacks/ubuntu-noble-run-base:latest"
|
||||
environment = ['BP_JVM_VERSION': java.targetCompatibility.getMajorVersion(), 'BP_TOMCAT_VERSION': '10.*']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user