Home / Function/ whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() — spring-boot Function Reference

whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() — spring-boot Function Reference

Architecture documentation for the whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() function in BuildImageTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  fca5e29a_0f9f_b155_2b73_b30f9b2719af["whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm()"]
  1f5de288_4054_671a_09ef_4241b1ba9474["removeImages()"]
  fca5e29a_0f9f_b155_2b73_b30f9b2719af -->|calls| 1f5de288_4054_671a_09ef_4241b1ba9474
  1c432d58_16ca_1503_d046_4cba5114e02b["removeImage()"]
  fca5e29a_0f9f_b155_2b73_b30f9b2719af -->|calls| 1c432d58_16ca_1503_d046_4cba5114e02b
  style fca5e29a_0f9f_b155_2b73_b30f9b2719af fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageTests.java lines 539–561

	@TestTemplate
	@EnabledOnOs(value = { OS.LINUX, OS.MAC }, architectures = "aarch64",
			disabledReason = "Lifecycle will only run on ARM architecture")
	void whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm(MavenBuild mavenBuild) throws IOException {
		String builderImage = "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2";
		String runImage = "docker.io/paketobuildpacks/run-noble-tiny:latest";
		String buildpackImage = "ghcr.io/spring-io/spring-boot-test-info:0.0.2";
		removeImages(builderImage, runImage, buildpackImage);
		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");
			assertThat(jar).isFile();
			assertThat(buildLog(project)).contains("Building image")
				.contains("docker.io/library/build-image-platform-linux-arm:0.0.1.BUILD-SNAPSHOT")
				.contains("Pulling builder image '" + builderImage + "' for platform 'linux/arm64'")
				.contains("Pulling run image '" + runImage + "' for platform 'linux/arm64'")
				.contains("Pulling buildpack image '" + buildpackImage + "' for platform 'linux/arm64'")
				.contains("---> Test Info buildpack building")
				.contains("---> Test Info buildpack done")
				.contains("Successfully built image");
			removeImage("docker.io/library/build-image-platform-linux-arm", "0.0.1.BUILD-SNAPSHOT");
		});
		removeImages(builderImage, runImage, buildpackImage);
	}

Subdomains

Frequently Asked Questions

What does whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() do?
whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() is a function in the spring-boot codebase.
What does whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() call?
whenBuildImageIsInvokedOnLinuxArmWithImagePlatformLinuxArm() calls 2 function(s): removeImage, removeImages.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free