mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Relocate test CNB builder and buildpack
The test CNB builder and buildpack used in integration tests have moved from a projects.registry.vmware.com registry to ghcr.io/spring-io. This commit modifies tests to use the new location. Closes gh-40800
This commit is contained in:
parent
375aa50289
commit
70aceb21eb
|
@ -143,9 +143,8 @@ class BootBuildImageIntegrationTests {
|
|||
writeMainClass();
|
||||
writeLongNameResource();
|
||||
BuildResult result = this.gradleBuild.build("bootBuildImage", "--pullPolicy=IF_NOT_PRESENT",
|
||||
"--imageName=example/test-image-cmd",
|
||||
"--builder=projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2",
|
||||
"--runImage=projects.registry.vmware.com/springboot/run:tiny-cnb", "--createdDate=2020-07-01T12:34:56Z",
|
||||
"--imageName=example/test-image-cmd", "--builder=ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1",
|
||||
"--runImage=paketobuildpacks/run-jammy-tiny", "--createdDate=2020-07-01T12:34:56Z",
|
||||
"--applicationDirectory=/application");
|
||||
assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
|
||||
assertThat(result.getOutput()).contains("example/test-image-cmd");
|
||||
|
@ -443,14 +442,14 @@ class BootBuildImageIntegrationTests {
|
|||
Files.createDirectories(binDir.toPath(), dirAttribute);
|
||||
File descriptor = new File(buildpackDir, "buildpack.toml");
|
||||
try (PrintWriter writer = new PrintWriter(new FileWriter(descriptor))) {
|
||||
writer.println("api = \"0.2\"");
|
||||
writer.println("api = \"0.10\"");
|
||||
writer.println("[buildpack]");
|
||||
writer.println("id = \"example/hello-world\"");
|
||||
writer.println("version = \"0.0.1\"");
|
||||
writer.println("name = \"Hello World Buildpack\"");
|
||||
writer.println("homepage = \"https://github.com/buildpacks/samples/tree/main/buildpacks/hello-world\"");
|
||||
writer.println("[[stacks]]\n");
|
||||
writer.println("id = \"io.buildpacks.stacks.bionic\"");
|
||||
writer.println("id = \"*\"");
|
||||
}
|
||||
File detect = Files.createFile(Paths.get(binDir.getAbsolutePath(), "detect"), execFileAttribute).toFile();
|
||||
try (PrintWriter writer = new PrintWriter(new FileWriter(detect))) {
|
||||
|
|
|
@ -8,7 +8,7 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
applicationDirectory = "/application"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
bindings = [ "${projectDir}/bindings/ca-certificates:/platform/bindings/certificates" as String ]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildpacks = [ "spring-boot/test-info" ]
|
||||
buildpacks = [ "spring-boot/spring-boot-test-info" ]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildpacks = [ "file://${projectDir}/buildpack/hello-world" as String ]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildpacks = [ "file://${projectDir}/hello-world.tgz" as String ]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildpacks = ["projects.registry.vmware.com/springboot/test-info:latest"]
|
||||
buildpacks = ["ghcr.io/spring-io/spring-boot-test-info:0.0.1"]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
createdDate = "2020-07-01T12:34:56Z"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
createdDate = "now"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ plugins {
|
|||
|
||||
bootBuildImage {
|
||||
imageName = "example/test-image-custom"
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
runImage = "projects.registry.vmware.com/springboot/run:tiny-cnb"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
runImage = "paketobuildpacks/run-jammy-tiny"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@ plugins {
|
|||
|
||||
bootBuildImage {
|
||||
imageName = "example/test-image-name"
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ bootJar {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
network = "none"
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = PullPolicy.ALWAYS
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
tags = [ "example.com/myapp:latest" ]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildCache {
|
||||
volume {
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
archiveFile = bootWar.archiveFile
|
||||
}
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
buildCache {
|
||||
volume {
|
||||
name = "build-cache-volume1"
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
environment = ["FORCE_FAILURE": "true"]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildpacks = [ "urn:cnb:builder:example/does-not-exist:0.0.1" ]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
createdDate = "invalid date"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
tags = [ "example/Invalid-Tag-Name" ]
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@ if (project.hasProperty('applyWarPlugin')) {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ plugins {
|
|||
}
|
||||
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
builder = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1"
|
||||
publish = true
|
||||
}
|
||||
|
|
|
@ -245,9 +245,8 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
|||
.goals("package")
|
||||
.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.builder",
|
||||
"projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2")
|
||||
.systemProperty("spring-boot.build-image.runImage", "projects.registry.vmware.com/springboot/run:tiny-cnb")
|
||||
.systemProperty("spring-boot.build-image.builder", "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1")
|
||||
.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.applicationDirectory", "/application")
|
||||
.execute((project) -> {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<applicationDirectory>/application</applicationDirectory>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<buildpacks>
|
||||
<buildpack>urn:cnb:builder:example/does-not-exist:0.0.1</buildpack>
|
||||
</buildpacks>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<bindings>
|
||||
<binding>${basedir}/bindings/ca-certificates:/platform/bindings/ca-certificates</binding>
|
||||
</bindings>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<env>
|
||||
<FORCE_FAILURE>true</FORCE_FAILURE>
|
||||
</env>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<buildCache>
|
||||
<volume>
|
||||
<name>build-cache-volume1</name>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<buildCache>
|
||||
<volume>
|
||||
<name>cache-${test-build-id}.build</name>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<version>@project.version@</version>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-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>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<createdDate>now</createdDate>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<runImage>projects.registry.vmware.com/springboot/run:tiny-cnb</runImage>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<runImage>paketobuildpacks/run-jammy-tiny</runImage>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<buildpacks>
|
||||
<buildpack>urn:cnb:builder:spring-boot/test-info</buildpack>
|
||||
<buildpack>urn:cnb:builder:spring-boot/spring-boot-test-info</buildpack>
|
||||
</buildpacks>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-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>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<env>
|
||||
<EMPTY_KEY></EMPTY_KEY>
|
||||
</env>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<configuration>
|
||||
<finalName>final-name</finalName>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<network>none</network>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<publish>true</publish>
|
||||
</image>
|
||||
</configuration>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
<tags>
|
||||
<tag>${project.artifactId}:latest</tag>
|
||||
</tags>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<configuration>
|
||||
<layout>ZIP</layout>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<image>
|
||||
<builder>projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2</builder>
|
||||
<builder>ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.1</builder>
|
||||
</image>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
= Spring Boot Test Builder
|
||||
|
||||
This directory contains a Cloud Native Buildpacks https://buildpacks.io/docs/concepts/components/builder/[builder] and https://buildpacks.io/docs/concepts/components/buildpack/[buildpack] that is used by integration tests to verify the behavior of the Spring Boot build plugins.
|
||||
|
||||
== Creating the builder
|
||||
|
||||
* Install the https://buildpacks.io/docs/install-pack/[pack CLI]
|
||||
* Authenticate to projects.registry.vmware.com through `docker login`
|
||||
* Use the `build.sh` create the necessary images and push them to the registry
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x -eo pipefail
|
||||
|
||||
docker pull paketobuildpacks/build:tiny-cnb
|
||||
docker tag paketobuildpacks/build:tiny-cnb projects.registry.vmware.com/springboot/build:tiny-cnb
|
||||
docker push projects.registry.vmware.com/springboot/build:tiny-cnb
|
||||
|
||||
docker pull paketobuildpacks/run:tiny-cnb
|
||||
docker tag paketobuildpacks/run:tiny-cnb projects.registry.vmware.com/springboot/run:tiny-cnb
|
||||
docker push projects.registry.vmware.com/springboot/run:tiny-cnb
|
||||
|
||||
cd builder
|
||||
pack builder create projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2 --config builder.toml
|
||||
docker push projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2
|
||||
cd -
|
|
@ -1,21 +0,0 @@
|
|||
# Buildpacks to include in builder
|
||||
[[buildpacks]]
|
||||
id = "spring-boot/test-info"
|
||||
version = "0.0.2"
|
||||
uri = "../buildpacks/test-info"
|
||||
|
||||
# Order used for detection
|
||||
[[order]]
|
||||
[[order.group]]
|
||||
id = "spring-boot/test-info"
|
||||
version = "0.0.2"
|
||||
|
||||
# Stack that will be used by the builder
|
||||
[stack]
|
||||
id = "io.paketo.stacks.tiny"
|
||||
build-image = "projects.registry.vmware.com/springboot/build:tiny-cnb"
|
||||
run-image = "projects.registry.vmware.com/springboot/run:tiny-cnb"
|
||||
|
||||
# Lifecycle executable version that will be used by the builder
|
||||
[lifecycle]
|
||||
version = "0.15.3"
|
|
@ -1,37 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
echo "---> Test Info buildpack building"
|
||||
|
||||
# INPUT ARGUMENTS
|
||||
platform_dir=$2
|
||||
env_dir=${platform_dir}/env
|
||||
bindings_dir=${platform_dir}/bindings
|
||||
|
||||
if [[ -f ${env_dir}/FORCE_FAILURE ]]; then
|
||||
echo "Forced builder failure"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if compgen -G "${env_dir}/*" > /dev/null; then
|
||||
for var in ${env_dir}/*; do
|
||||
echo "env: $(basename ${var})=$(<${var})"
|
||||
done
|
||||
fi
|
||||
|
||||
if compgen -G "${bindings_dir}/*" > /dev/null; then
|
||||
for binding in ${bindings_dir}/*; do
|
||||
for f in ${binding}/*; do
|
||||
echo "binding: $(basename ${binding})/$(basename ${f})=$(<${f})"
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
echo "META-INF/MANIFEST.MF: "
|
||||
if [[ -f META-INF/MANIFEST.MF ]]; then
|
||||
cat META-INF/MANIFEST.MF
|
||||
fi
|
||||
|
||||
echo "Network status: $(curl --silent --head https://spring.io | grep -E '^HTTP' || echo "curl failed")"
|
||||
|
||||
echo "---> Test Info buildpack done"
|
|
@ -1,28 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
# 1. CHECK IF APPLICABLE
|
||||
if [[ ! -f META-INF/MANIFEST.MF ]]; then
|
||||
exit 100
|
||||
fi
|
||||
|
||||
# 2. GET ARGS
|
||||
plan_path=$2
|
||||
|
||||
# 3. DECLARE DEPENDENCIES (OPTIONAL)
|
||||
cat >> "${plan_path}" <<EOL
|
||||
# Buildpack provides this dependency
|
||||
#
|
||||
# NOTE: The dependency is provided during the 'build' process.
|
||||
#
|
||||
[[provides]]
|
||||
name = "test-info"
|
||||
|
||||
# Buildpack requires this dependency
|
||||
#
|
||||
# NOTE: Everything aside from 'name' is simply additional information that the providing buildpack can use to resolve
|
||||
# the dependency.
|
||||
#
|
||||
[[requires]]
|
||||
name = "test-info"
|
||||
EOL
|
|
@ -1,13 +0,0 @@
|
|||
# Buildpack API version
|
||||
api = "0.8"
|
||||
|
||||
# Buildpack ID and metadata
|
||||
[buildpack]
|
||||
id = "spring-boot/test-info"
|
||||
version = "0.0.2"
|
||||
name = "Spring Boot Test Info Buildpack"
|
||||
homepage = "https://github.com/spring-projects/spring-boot"
|
||||
|
||||
# Stacks that the buildpack will work with
|
||||
[[stacks]]
|
||||
id = "io.paketo.stacks.tiny"
|
Loading…
Reference in New Issue
Block a user