Revert "Use noble buildpacks instead of jammy"
This reverts commit 4f672b9588019093a99d27d507a682403d1a1138. See gh-42711
This commit is contained in:
parent
1007061537
commit
ae16856bda
@ -33,7 +33,7 @@ This means you can just type a single command and quickly get a sensible image i
|
|||||||
The resulting image doesn't contain a JVM, instead the native image is compiled statically.
|
The resulting image doesn't contain a JVM, instead the native image is compiled statically.
|
||||||
This leads to smaller images.
|
This leads to smaller images.
|
||||||
|
|
||||||
NOTE: The CNB builder used for the images is `paketobuildpacks/builder-noble-java-tiny:latest`.
|
NOTE: The CNB builder used for the images is `paketobuildpacks/builder-jammy-java-tiny:latest`.
|
||||||
It has a small footprint and reduced attack surface. It does not include a shell and contains a reduced set of system libraries.
|
It has a small footprint and reduced attack surface. It does not include a shell and contains a reduced set of system libraries.
|
||||||
Use `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest` to have more tools available in the image if required.
|
Use `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest` to have more tools available in the image if required.
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ Assuming an AOT processed Spring Boot executable jar built as `myproject-0.0.1-S
|
|||||||
|
|
||||||
[source,shell]
|
[source,shell]
|
||||||
----
|
----
|
||||||
$ pack build --builder paketobuildpacks/builder-noble-java-tiny \
|
$ pack build --builder paketobuildpacks/builder-jammy-java-tiny \
|
||||||
--path target/myproject-0.0.1-SNAPSHOT.jar \
|
--path target/myproject-0.0.1-SNAPSHOT.jar \
|
||||||
--env 'BP_NATIVE_IMAGE=true' \
|
--env 'BP_NATIVE_IMAGE=true' \
|
||||||
my-application:0.0.1-SNAPSHOT
|
my-application:0.0.1-SNAPSHOT
|
||||||
|
@ -46,7 +46,7 @@ import org.springframework.util.Assert;
|
|||||||
*/
|
*/
|
||||||
public class BuildRequest {
|
public class BuildRequest {
|
||||||
|
|
||||||
static final String DEFAULT_BUILDER_IMAGE_NAME = "paketobuildpacks/builder-noble-java-tiny";
|
static final String DEFAULT_BUILDER_IMAGE_NAME = "paketobuildpacks/builder-jammy-java-tiny";
|
||||||
|
|
||||||
static final String DEFAULT_BUILDER_IMAGE_REF = DEFAULT_BUILDER_IMAGE_NAME + ":latest";
|
static final String DEFAULT_BUILDER_IMAGE_REF = DEFAULT_BUILDER_IMAGE_NAME + ":latest";
|
||||||
|
|
||||||
|
@ -161,8 +161,8 @@ class BootBuildImageIntegrationTests {
|
|||||||
writeMainClass();
|
writeMainClass();
|
||||||
writeLongNameResource();
|
writeLongNameResource();
|
||||||
BuildResult result = this.gradleBuild.build("bootBuildImage", "--pullPolicy=IF_NOT_PRESENT",
|
BuildResult result = this.gradleBuild.build("bootBuildImage", "--pullPolicy=IF_NOT_PRESENT",
|
||||||
"--imageName=example/test-image-cmd", "--builder=ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2",
|
"--imageName=example/test-image-cmd", "--builder=ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1",
|
||||||
"--trustBuilder", "--runImage=paketobuildpacks/run-noble-tiny", "--createdDate=2020-07-01T12:34:56Z",
|
"--trustBuilder", "--runImage=paketobuildpacks/run-jammy-tiny", "--createdDate=2020-07-01T12:34:56Z",
|
||||||
"--applicationDirectory=/application");
|
"--applicationDirectory=/application");
|
||||||
assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
|
assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
|
||||||
assertThat(result.getOutput()).contains("example/test-image-cmd");
|
assertThat(result.getOutput()).contains("example/test-image-cmd");
|
||||||
@ -412,9 +412,9 @@ class BootBuildImageIntegrationTests {
|
|||||||
void buildsImageOnLinuxArmWithImagePlatformLinuxArm() throws IOException {
|
void buildsImageOnLinuxArmWithImagePlatformLinuxArm() throws IOException {
|
||||||
writeMainClass();
|
writeMainClass();
|
||||||
writeLongNameResource();
|
writeLongNameResource();
|
||||||
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2";
|
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1";
|
||||||
String runImage = "docker.io/paketobuildpacks/run-noble-tiny:latest";
|
String runImage = "docker.io/paketobuildpacks/run-jammy-tiny:latest";
|
||||||
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.2";
|
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.1";
|
||||||
removeImages(builderImage, runImage, buildpackImage);
|
removeImages(builderImage, runImage, buildpackImage);
|
||||||
BuildResult result = this.gradleBuild.build("bootBuildImage");
|
BuildResult result = this.gradleBuild.build("bootBuildImage");
|
||||||
String projectName = this.gradleBuild.getProjectDir().getName();
|
String projectName = this.gradleBuild.getProjectDir().getName();
|
||||||
@ -440,9 +440,9 @@ class BootBuildImageIntegrationTests {
|
|||||||
void failsWhenBuildingOnLinuxAmdWithImagePlatformLinuxArm() throws IOException {
|
void failsWhenBuildingOnLinuxAmdWithImagePlatformLinuxArm() throws IOException {
|
||||||
writeMainClass();
|
writeMainClass();
|
||||||
writeLongNameResource();
|
writeLongNameResource();
|
||||||
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2";
|
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1";
|
||||||
String runImage = "docker.io/paketobuildpacks/run-noble-tiny:latest";
|
String runImage = "docker.io/paketobuildpacks/run-jammy-tiny:latest";
|
||||||
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.2";
|
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.1";
|
||||||
removeImages(builderImage, runImage, buildpackImage);
|
removeImages(builderImage, runImage, buildpackImage);
|
||||||
BuildResult result = this.gradleBuild.buildAndFail("bootBuildImage");
|
BuildResult result = this.gradleBuild.buildAndFail("bootBuildImage");
|
||||||
String projectName = this.gradleBuild.getProjectDir().getName();
|
String projectName = this.gradleBuild.getProjectDir().getName();
|
||||||
|
@ -4,8 +4,8 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
runImage = "paketobuildpacks/run-noble-tiny"
|
runImage = "paketobuildpacks/run-jammy-tiny"
|
||||||
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.2"]
|
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.1"]
|
||||||
imagePlatform = "linux/arm64"
|
imagePlatform = "linux/arm64"
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
applicationDirectory = "/application"
|
applicationDirectory = "/application"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildWorkspace {
|
buildWorkspace {
|
||||||
bind {
|
bind {
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
bindings = [ "${projectDir}/bindings/ca-certificates:/platform/bindings/certificates" as String ]
|
bindings = [ "${projectDir}/bindings/ca-certificates:/platform/bindings/certificates" as String ]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildpacks = [ "spring-boot/spring-boot-test-info" ]
|
buildpacks = [ "spring-boot/spring-boot-test-info" ]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildpacks = [ "file://${projectDir}/buildpack/hello-world" as String ]
|
buildpacks = [ "file://${projectDir}/buildpack/hello-world" as String ]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildpacks = [ "file://${projectDir}/hello-world.tgz" as String ]
|
buildpacks = [ "file://${projectDir}/hello-world.tgz" as String ]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.2"]
|
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.1"]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
createdDate = "2020-07-01T12:34:56Z"
|
createdDate = "2020-07-01T12:34:56Z"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
createdDate = "now"
|
createdDate = "now"
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ plugins {
|
|||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
imageName = "example/test-image-custom"
|
imageName = "example/test-image-custom"
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
runImage = "paketobuildpacks/run-noble-tiny"
|
runImage = "paketobuildpacks/run-jammy-tiny"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,6 @@ plugins {
|
|||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
imageName = "example/test-image-name"
|
imageName = "example/test-image-name"
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
securityOptions = []
|
securityOptions = []
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,6 @@ bootJar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
network = "none"
|
network = "none"
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,6 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = PullPolicy.ALWAYS
|
pullPolicy = PullPolicy.ALWAYS
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
tags = [ "example.com/myapp:latest" ]
|
tags = [ "example.com/myapp:latest" ]
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
trustBuilder = true
|
trustBuilder = true
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildWorkspace {
|
buildWorkspace {
|
||||||
volume {
|
volume {
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
archiveFile = bootWar.archiveFile
|
archiveFile = bootWar.archiveFile
|
||||||
}
|
}
|
@ -4,8 +4,8 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
runImage = "paketobuildpacks/run-noble-tiny"
|
runImage = "paketobuildpacks/run-jammy-tiny"
|
||||||
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.2"]
|
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.1"]
|
||||||
imagePlatform = "linux/arm64"
|
imagePlatform = "linux/arm64"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
buildCache {
|
buildCache {
|
||||||
volume {
|
volume {
|
||||||
name = "build-cache-volume"
|
name = "build-cache-volume"
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
environment = ["FORCE_FAILURE": "true"]
|
environment = ["FORCE_FAILURE": "true"]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
buildpacks = [ "urn:cnb:builder:example/does-not-exist:0.0.1" ]
|
buildpacks = [ "urn:cnb:builder:example/does-not-exist:0.0.1" ]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
createdDate = "invalid date"
|
createdDate = "invalid date"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
tags = [ "example/Invalid-Tag-Name" ]
|
tags = [ "example/Invalid-Tag-Name" ]
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,6 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
pullPolicy = "IF_NOT_PRESENT"
|
pullPolicy = "IF_NOT_PRESENT"
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,6 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bootBuildImage {
|
bootBuildImage {
|
||||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2"
|
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||||
publish = true
|
publish = true
|
||||||
}
|
}
|
||||||
|
@ -119,12 +119,12 @@ The following table summarizes the available properties and their default values
|
|||||||
| `builder`
|
| `builder`
|
||||||
| `--builder`
|
| `--builder`
|
||||||
| Name of the builder image to use.
|
| Name of the builder image to use.
|
||||||
| `paketobuildpacks/builder-noble-java-tiny:latest`
|
| `paketobuildpacks/builder-jammy-java-tiny:latest`
|
||||||
|
|
||||||
| `trustBuilder`
|
| `trustBuilder`
|
||||||
| `--trustBuilder`
|
| `--trustBuilder`
|
||||||
| Whether to treat the builder as https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/concepts/trusted_builders/#what-is-a-trusted-builder[trusted].
|
| Whether to treat the builder as https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/concepts/trusted_builders/#what-is-a-trusted-builder[trusted].
|
||||||
| `true` if the builder is one of `paketobuildpacks/builder-noble-java-tiny`, `paketobuildpacks/builder-jammy-java-tiny`, `paketobuildpacks/builder-jammy-tiny`, `paketobuildpacks/builder-jammy-base`, `paketobuildpacks/builder-jammy-full`, `paketobuildpacks/builder-jammy-buildpackless-tiny`, `paketobuildpacks/builder-jammy-buildpackless-base`, `paketobuildpacks/builder-jammy-buildpackless-full`, `gcr.io/buildpacks/builder`, `heroku/builder`; `false` otherwise.
|
| `true` if the builder is one of `paketobuildpacks/builder-jammy-java-tiny`, `paketobuildpacks/builder-noble-java-tiny`, `paketobuildpacks/builder-jammy-tiny`, `paketobuildpacks/builder-jammy-base`, `paketobuildpacks/builder-jammy-full`, `paketobuildpacks/builder-jammy-buildpackless-tiny`, `paketobuildpacks/builder-jammy-buildpackless-base`, `paketobuildpacks/builder-jammy-buildpackless-full`, `gcr.io/buildpacks/builder`, `heroku/builder`; `false` otherwise.
|
||||||
|
|
||||||
| `imagePlatform`
|
| `imagePlatform`
|
||||||
| `--imagePlatform`
|
| `--imagePlatform`
|
||||||
@ -251,7 +251,7 @@ NOTE: The plugin detects the target Java compatibility of the project using the
|
|||||||
When using the default Paketo builder and buildpacks, the plugin instructs the buildpacks to install the same Java version.
|
When using the default Paketo builder and buildpacks, the plugin instructs the buildpacks to install the same Java version.
|
||||||
You can override this behavior as shown in the xref:packaging-oci-image.adoc#build-image.examples.builder-configuration[builder configuration] examples.
|
You can override this behavior as shown in the xref:packaging-oci-image.adoc#build-image.examples.builder-configuration[builder configuration] examples.
|
||||||
|
|
||||||
NOTE: The default builder `paketobuildpacks/builder-noble-java-tiny:latest` contains a reduced set of system libraries and does not include a shell.
|
NOTE: The default builder `paketobuildpacks/builder-jammy-java-tiny:latest` contains a reduced set of system libraries and does not include a shell.
|
||||||
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`.
|
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`.
|
||||||
|
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ class BootBuildImageTests {
|
|||||||
@Test
|
@Test
|
||||||
void whenNoBuilderIsConfiguredThenRequestHasDefaultBuilder() {
|
void whenNoBuilderIsConfiguredThenRequestHasDefaultBuilder() {
|
||||||
BuildRequest request = this.buildImage.createRequest();
|
BuildRequest request = this.buildImage.createRequest();
|
||||||
assertThat(request.getBuilder().getName()).isEqualTo("paketobuildpacks/builder-noble-java-tiny");
|
assertThat(request.getBuilder().getName()).isEqualTo("paketobuildpacks/builder-jammy-java-tiny");
|
||||||
assertThat(request.isTrustBuilder()).isTrue();
|
assertThat(request.isTrustBuilder()).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2025 the original author or authors.
|
* Copyright 2012-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -270,9 +270,9 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
|||||||
.goals("package")
|
.goals("package")
|
||||||
.systemProperty("spring-boot.build-image.pullPolicy", "IF_NOT_PRESENT")
|
.systemProperty("spring-boot.build-image.pullPolicy", "IF_NOT_PRESENT")
|
||||||
.systemProperty("spring-boot.build-image.imageName", "example.com/test/cmd-property-name:v1")
|
.systemProperty("spring-boot.build-image.imageName", "example.com/test/cmd-property-name:v1")
|
||||||
.systemProperty("spring-boot.build-image.builder", "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2")
|
.systemProperty("spring-boot.build-image.builder", "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1")
|
||||||
.systemProperty("spring-boot.build-image.trustBuilder", "true")
|
.systemProperty("spring-boot.build-image.trustBuilder", "true")
|
||||||
.systemProperty("spring-boot.build-image.runImage", "paketobuildpacks/run-noble-tiny")
|
.systemProperty("spring-boot.build-image.runImage", "paketobuildpacks/run-jammy-tiny")
|
||||||
.systemProperty("spring-boot.build-image.createdDate", "2020-07-01T12:34:56Z")
|
.systemProperty("spring-boot.build-image.createdDate", "2020-07-01T12:34:56Z")
|
||||||
.systemProperty("spring-boot.build-image.applicationDirectory", "/application")
|
.systemProperty("spring-boot.build-image.applicationDirectory", "/application")
|
||||||
.execute((project) -> {
|
.execute((project) -> {
|
||||||
@ -540,9 +540,9 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
|||||||
@EnabledOnOs(value = { OS.LINUX, OS.MAC }, architectures = "aarch64",
|
@EnabledOnOs(value = { OS.LINUX, OS.MAC }, architectures = "aarch64",
|
||||||
disabledReason = "Lifecycle will only run on ARM architecture")
|
disabledReason = "Lifecycle will only run on ARM architecture")
|
||||||
void whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm(MavenBuild mavenBuild) throws IOException {
|
void whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm(MavenBuild mavenBuild) throws IOException {
|
||||||
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2";
|
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1";
|
||||||
String runImage = "docker.io/paketobuildpacks/run-noble-tiny:latest";
|
String runImage = "docker.io/paketobuildpacks/run-jammy-tiny:latest";
|
||||||
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.2";
|
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.1";
|
||||||
removeImages(builderImage, runImage, buildpackImage);
|
removeImages(builderImage, runImage, buildpackImage);
|
||||||
mavenBuild.project("dockerTest", "build-image-platform-linux-arm").goals("package").execute((project) -> {
|
mavenBuild.project("dockerTest", "build-image-platform-linux-arm").goals("package").execute((project) -> {
|
||||||
File jar = new File(project, "target/build-image-platform-linux-arm-0.0.1.BUILD-SNAPSHOT.jar");
|
File jar = new File(project, "target/build-image-platform-linux-arm-0.0.1.BUILD-SNAPSHOT.jar");
|
||||||
@ -564,9 +564,9 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
|||||||
@EnabledOnOs(value = { OS.LINUX, OS.MAC }, architectures = "amd64",
|
@EnabledOnOs(value = { OS.LINUX, OS.MAC }, architectures = "amd64",
|
||||||
disabledReason = "The expected failure condition will not fail on ARM architectures")
|
disabledReason = "The expected failure condition will not fail on ARM architectures")
|
||||||
void failsWhenBuildImageIsInvokedOnLinuxAmdWithImagePlatformLinuxArm(MavenBuild mavenBuild) throws IOException {
|
void failsWhenBuildImageIsInvokedOnLinuxAmdWithImagePlatformLinuxArm(MavenBuild mavenBuild) throws IOException {
|
||||||
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2";
|
String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1";
|
||||||
String runImage = "docker.io/paketobuildpacks/run-noble-tiny:latest";
|
String runImage = "docker.io/paketobuildpacks/run-jammy-tiny:latest";
|
||||||
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.2";
|
String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.1";
|
||||||
removeImages(buildpackImage, runImage, buildpackImage);
|
removeImages(buildpackImage, runImage, buildpackImage);
|
||||||
mavenBuild.project("dockerTest", "build-image-platform-linux-arm")
|
mavenBuild.project("dockerTest", "build-image-platform-linux-arm")
|
||||||
.goals("package")
|
.goals("package")
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<applicationDirectory>/application</applicationDirectory>
|
<applicationDirectory>/application</applicationDirectory>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<buildpacks>
|
<buildpacks>
|
||||||
<buildpack>urn:cnb:builder:example/does-not-exist:0.0.1</buildpack>
|
<buildpack>urn:cnb:builder:example/does-not-exist:0.0.1</buildpack>
|
||||||
</buildpacks>
|
</buildpacks>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<buildWorkspace>
|
<buildWorkspace>
|
||||||
<bind>
|
<bind>
|
||||||
<source>${java.io.tmpdir}/junit-image-cache-${test-build-id}-work</source>
|
<source>${java.io.tmpdir}/junit-image-cache-${test-build-id}-work</source>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding>${basedir}/bindings/ca-certificates:/platform/bindings/ca-certificates</binding>
|
<binding>${basedir}/bindings/ca-certificates:/platform/bindings/ca-certificates</binding>
|
||||||
</bindings>
|
</bindings>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<env>
|
<env>
|
||||||
<FORCE_FAILURE>true</FORCE_FAILURE>
|
<FORCE_FAILURE>true</FORCE_FAILURE>
|
||||||
</env>
|
</env>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<buildCache>
|
<buildCache>
|
||||||
<volume>
|
<volume>
|
||||||
<name>build-cache-volume1</name>
|
<name>build-cache-volume1</name>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<version>@project.version@</version>
|
<version>@project.version@</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<createdDate>2020-07-01T12:34:56Z</createdDate>
|
<createdDate>2020-07-01T12:34:56Z</createdDate>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<createdDate>now</createdDate>
|
<createdDate>now</createdDate>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<runImage>paketobuildpacks/run-noble-tiny</runImage>
|
<runImage>paketobuildpacks/run-jammy-tiny</runImage>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<buildpacks>
|
<buildpacks>
|
||||||
<buildpack>urn:cnb:builder:spring-boot/spring-boot-test-info</buildpack>
|
<buildpack>urn:cnb:builder:spring-boot/spring-boot-test-info</buildpack>
|
||||||
</buildpacks>
|
</buildpacks>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<name>example.com/test/build-image:${project.version}</name>
|
<name>example.com/test/build-image:${project.version}</name>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<env>
|
<env>
|
||||||
<EMPTY_KEY></EMPTY_KEY>
|
<EMPTY_KEY></EMPTY_KEY>
|
||||||
</env>
|
</env>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<finalName>final-name</finalName>
|
<finalName>final-name</finalName>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<classifier>exec</classifier>
|
<classifier>exec</classifier>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<network>none</network>
|
<network>none</network>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,10 +23,10 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<runImage>paketobuildpacks/run-noble-tiny</runImage>
|
<runImage>paketobuildpacks/run-jammy-tiny</runImage>
|
||||||
<buildpacks>
|
<buildpacks>
|
||||||
<buildpack>ghcr.io/spring-io/spring-boot-test-info:0.0.2</buildpack>
|
<buildpack>ghcr.io/spring-io/spring-boot-test-info:0.0.1</buildpack>
|
||||||
</buildpacks>
|
</buildpacks>
|
||||||
<imagePlatform>linux/arm64</imagePlatform>
|
<imagePlatform>linux/arm64</imagePlatform>
|
||||||
</image>
|
</image>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<publish>true</publish>
|
<publish>true</publish>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<security-options/>
|
<security-options/>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>${project.artifactId}:latest</tag>
|
<tag>${project.artifactId}:latest</tag>
|
||||||
</tags>
|
</tags>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<trustBuilder>true</trustBuilder>
|
<trustBuilder>true</trustBuilder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
<buildWorkspace>
|
<buildWorkspace>
|
||||||
<volume>
|
<volume>
|
||||||
<name>cache-${test-build-id}.work</name>
|
<name>cache-${test-build-id}.work</name>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<layout>ZIP</layout>
|
<layout>ZIP</layout>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<image>
|
<image>
|
||||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2</builder>
|
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||||
</image>
|
</image>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -135,12 +135,12 @@ The following table summarizes the available parameters and their default values
|
|||||||
| `builder` +
|
| `builder` +
|
||||||
(`spring-boot.build-image.builder`)
|
(`spring-boot.build-image.builder`)
|
||||||
| Name of the builder image to use.
|
| Name of the builder image to use.
|
||||||
| `paketobuildpacks/builder-noble-java-tiny:latest`
|
| `paketobuildpacks/builder-jammy-java-tiny:latest`
|
||||||
|
|
||||||
| `trustBuilder` +
|
| `trustBuilder` +
|
||||||
(`spring-boot.build-image.trustBuilder`)
|
(`spring-boot.build-image.trustBuilder`)
|
||||||
| Whether to treat the builder as https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/concepts/trusted_builders/#what-is-a-trusted-builder[trusted].
|
| Whether to treat the builder as https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/concepts/trusted_builders/#what-is-a-trusted-builder[trusted].
|
||||||
| `true` if the builder is one of `paketobuildpacks/builder-noble-java-tiny`, `paketobuildpacks/builder-jammy-java-tiny`, `paketobuildpacks/builder-jammy-tiny`, `paketobuildpacks/builder-jammy-base`, `paketobuildpacks/builder-jammy-full`, `paketobuildpacks/builder-jammy-buildpackless-tiny`, `paketobuildpacks/builder-jammy-buildpackless-base`, `paketobuildpacks/builder-jammy-buildpackless-full`, `gcr.io/buildpacks/builder`, `heroku/builder`; `false` otherwise.
|
| `true` if the builder is one of `paketobuildpacks/builder-jammy-java-tiny`, `paketobuildpacks/builder-noble-java-tiny`, `paketobuildpacks/builder-jammy-tiny`, `paketobuildpacks/builder-jammy-base`, `paketobuildpacks/builder-jammy-full`, `paketobuildpacks/builder-jammy-buildpackless-tiny`, `paketobuildpacks/builder-jammy-buildpackless-base`, `paketobuildpacks/builder-jammy-buildpackless-full`, `gcr.io/buildpacks/builder`, `heroku/builder`; `false` otherwise.
|
||||||
|
|
||||||
| `imagePlatform` +
|
| `imagePlatform` +
|
||||||
(`spring-boot.build-image.imagePlatform`)
|
(`spring-boot.build-image.imagePlatform`)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2025 the original author or authors.
|
* Copyright 2012-2024 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -71,7 +71,7 @@ class ImageTests {
|
|||||||
void getBuildRequestWhenNoCustomizationsUsesDefaults() {
|
void getBuildRequestWhenNoCustomizationsUsesDefaults() {
|
||||||
BuildRequest request = new Image().getBuildRequest(createArtifact(), mockApplicationContent());
|
BuildRequest request = new Image().getBuildRequest(createArtifact(), mockApplicationContent());
|
||||||
assertThat(request.getName()).hasToString("docker.io/library/my-app:0.0.1-SNAPSHOT");
|
assertThat(request.getName()).hasToString("docker.io/library/my-app:0.0.1-SNAPSHOT");
|
||||||
assertThat(request.getBuilder().toString()).contains("paketobuildpacks/builder-noble-java-tiny");
|
assertThat(request.getBuilder().toString()).contains("paketobuildpacks/builder-jammy-java-tiny");
|
||||||
assertThat(request.isTrustBuilder()).isTrue();
|
assertThat(request.isTrustBuilder()).isTrue();
|
||||||
assertThat(request.getRunImage()).isNull();
|
assertThat(request.getRunImage()).isNull();
|
||||||
assertThat(request.getEnv()).isEmpty();
|
assertThat(request.getEnv()).isEmpty();
|
||||||
@ -109,7 +109,7 @@ class ImageTests {
|
|||||||
Image image = new Image();
|
Image image = new Image();
|
||||||
image.trustBuilder = false;
|
image.trustBuilder = false;
|
||||||
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
|
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
|
||||||
assertThat(request.getBuilder().toString()).contains("paketobuildpacks/builder-noble-java-tiny");
|
assertThat(request.getBuilder().toString()).contains("paketobuildpacks/builder-jammy-java-tiny");
|
||||||
assertThat(request.isTrustBuilder()).isFalse();
|
assertThat(request.isTrustBuilder()).isFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user