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

buildsImageAndPublishesToRegistry() — spring-boot Function Reference

Architecture documentation for the buildsImageAndPublishesToRegistry() function in BootBuildImageRegistryIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  668a2455_7dd6_b80c_9199_f482779ac759["buildsImageAndPublishesToRegistry()"]
  f50e7ba3_95ff_586b_4493_60692a9334ff["writeMainClass()"]
  668a2455_7dd6_b80c_9199_f482779ac759 -->|calls| f50e7ba3_95ff_586b_4493_60692a9334ff
  41f5c9ca_7a61_90cb_4750_c29c1a092e1c["DockerApi()"]
  668a2455_7dd6_b80c_9199_f482779ac759 -->|calls| 41f5c9ca_7a61_90cb_4750_c29c1a092e1c
  686f702f_99b2_00cb_e536_fc675d8e38f4["pull()"]
  668a2455_7dd6_b80c_9199_f482779ac759 -->|calls| 686f702f_99b2_00cb_e536_fc675d8e38f4
  56c6a94a_906f_bea5_18c0_207cf050ae68["of()"]
  668a2455_7dd6_b80c_9199_f482779ac759 -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68
  6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1["image()"]
  668a2455_7dd6_b80c_9199_f482779ac759 -->|calls| 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1
  e06ce851_18c5_fa12_ce9e_f2cd6d064b8d["remove()"]
  668a2455_7dd6_b80c_9199_f482779ac759 -->|calls| e06ce851_18c5_fa12_ce9e_f2cd6d064b8d
  style 668a2455_7dd6_b80c_9199_f482779ac759 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageRegistryIntegrationTests.java lines 68–85

	@TestTemplate
	void buildsImageAndPublishesToRegistry() throws IOException {
		writeMainClass();
		String repoName = "test-image";
		String imageName = this.registryAddress + "/" + repoName;
		BuildResult result = this.gradleBuild.build("bootBuildImage", "--imageName=" + imageName);
		BuildTask task = result.task(":bootBuildImage");
		assertThat(task).isNotNull();
		assertThat(task.getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
		assertThat(result.getOutput()).contains("Building image")
			.contains("Successfully built image")
			.contains("Pushing image '" + imageName + ":latest" + "'")
			.contains("Pushed image '" + imageName + ":latest" + "'");
		ImageReference imageReference = ImageReference.of(imageName);
		Image pulledImage = new DockerApi().image().pull(imageReference, null, UpdateListener.none());
		assertThat(pulledImage).isNotNull();
		new DockerApi().image().remove(imageReference, false);
	}

Subdomains

Calls

Frequently Asked Questions

What does buildsImageAndPublishesToRegistry() do?
buildsImageAndPublishesToRegistry() is a function in the spring-boot codebase.
What does buildsImageAndPublishesToRegistry() call?
buildsImageAndPublishesToRegistry() calls 6 function(s): DockerApi, image, of, pull, remove, writeMainClass.

Analyze Your Own Codebase

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

Try Supermodel Free