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

whenBuildImageIsInvokedWithCommandLineParameters() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  634bfe12_062e_2d9a_2555_c420fc58f695["whenBuildImageIsInvokedWithCommandLineParameters()"]
  41f5c9ca_7a61_90cb_4750_c29c1a092e1c["DockerApi()"]
  634bfe12_062e_2d9a_2555_c420fc58f695 -->|calls| 41f5c9ca_7a61_90cb_4750_c29c1a092e1c
  8b3fcc9b_3941_2812_09e4_c0a09539f3dd["inspect()"]
  634bfe12_062e_2d9a_2555_c420fc58f695 -->|calls| 8b3fcc9b_3941_2812_09e4_c0a09539f3dd
  a18a2648_7c7c_16c8_52c2_6d1bb55a7462["getCreated()"]
  634bfe12_062e_2d9a_2555_c420fc58f695 -->|calls| a18a2648_7c7c_16c8_52c2_6d1bb55a7462
  1c432d58_16ca_1503_d046_4cba5114e02b["removeImage()"]
  634bfe12_062e_2d9a_2555_c420fc58f695 -->|calls| 1c432d58_16ca_1503_d046_4cba5114e02b
  6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1["image()"]
  634bfe12_062e_2d9a_2555_c420fc58f695 -->|calls| 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1
  56c6a94a_906f_bea5_18c0_207cf050ae68["of()"]
  634bfe12_062e_2d9a_2555_c420fc58f695 -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68
  style 634bfe12_062e_2d9a_2555_c420fc58f695 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 267–290

	@TestTemplate
	void whenBuildImageIsInvokedWithCommandLineParameters(MavenBuild mavenBuild) {
		mavenBuild.project("dockerTest", "build-image")
			.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", "ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2")
			.systemProperty("spring-boot.build-image.trustBuilder", "true")
			.systemProperty("spring-boot.build-image.runImage", "paketobuildpacks/run-noble-tiny")
			.systemProperty("spring-boot.build-image.createdDate", "2020-07-01T12:34:56Z")
			.systemProperty("spring-boot.build-image.applicationDirectory", "/application")
			.execute((project) -> {
				assertThat(buildLog(project)).contains("Building image")
					.contains("example.com/test/cmd-property-name:v1")
					.contains("Running creator")
					.contains("---> Test Info buildpack building")
					.contains("---> Test Info buildpack done")
					.contains("Successfully built image");
				Image image = new DockerApi().image()
					.inspect(ImageReference.of("example.com/test/cmd-property-name:v1"));
				assertThat(image.getCreated()).isEqualTo("2020-07-01T12:34:56Z");
				removeImage("example.com/test/cmd-property-name", "v1");
			});
	}

Subdomains

Frequently Asked Questions

What does whenBuildImageIsInvokedWithCommandLineParameters() do?
whenBuildImageIsInvokedWithCommandLineParameters() is a function in the spring-boot codebase.
What does whenBuildImageIsInvokedWithCommandLineParameters() call?
whenBuildImageIsInvokedWithCommandLineParameters() calls 6 function(s): DockerApi, getCreated, image, inspect, of, removeImage.

Analyze Your Own Codebase

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

Try Supermodel Free