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

asDockerConfigurationWithBindHostToBuilder() — spring-boot Function Reference

Architecture documentation for the asDockerConfigurationWithBindHostToBuilder() function in DockerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  acbde48f_5a41_1844_a0d0_8f5ca02e4d02["asDockerConfigurationWithBindHostToBuilder()"]
  9a08d1e5_3de7_caf2_d6f8_d31c58939529["createDockerConfiguration()"]
  acbde48f_5a41_1844_a0d0_8f5ca02e4d02 -->|calls| 9a08d1e5_3de7_caf2_d6f8_d31c58939529
  c8116aea_c273_d1ee_399b_ec342e2087b5["decoded()"]
  acbde48f_5a41_1844_a0d0_8f5ca02e4d02 -->|calls| c8116aea_c273_d1ee_399b_ec342e2087b5
  style acbde48f_5a41_1844_a0d0_8f5ca02e4d02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/DockerTests.java lines 124–151

	@Test
	void asDockerConfigurationWithBindHostToBuilder() {
		Docker docker = new Docker();
		docker.setHost("docker.example.com");
		docker.setTlsVerify(true);
		docker.setCertPath("/tmp/ca-cert");
		docker.setBindHostToBuilder(true);
		BuilderDockerConfiguration dockerConfiguration = createDockerConfiguration(docker);
		DockerConnectionConfiguration.Host host = (DockerConnectionConfiguration.Host) dockerConfiguration.connection();
		assertThat(host).isNotNull();
		assertThat(host.address()).isEqualTo("docker.example.com");
		assertThat(host.secure()).isTrue();
		assertThat(host.certificatePath()).isEqualTo("/tmp/ca-cert");
		assertThat(dockerConfiguration.bindHostToBuilder()).isTrue();
		DockerRegistryAuthentication builderRegistryAuthentication = createDockerConfiguration(docker)
			.builderRegistryAuthentication();
		assertThat(builderRegistryAuthentication).isNotNull();
		assertThat(builderRegistryAuthentication.getAuthHeader()).isNull();
		DockerRegistryAuthentication publishRegistryAuthentication = dockerConfiguration
			.publishRegistryAuthentication();
		assertThat(publishRegistryAuthentication).isNotNull();
		String authHeader = publishRegistryAuthentication.getAuthHeader();
		assertThat(authHeader).isNotNull();
		assertThat(decoded(authHeader)).contains("\"username\" : \"\"")
			.contains("\"password\" : \"\"")
			.contains("\"email\" : \"\"")
			.contains("\"serveraddress\" : \"\"");
	}

Domain

Subdomains

Frequently Asked Questions

What does asDockerConfigurationWithBindHostToBuilder() do?
asDockerConfigurationWithBindHostToBuilder() is a function in the spring-boot codebase.
What does asDockerConfigurationWithBindHostToBuilder() call?
asDockerConfigurationWithBindHostToBuilder() calls 2 function(s): createDockerConfiguration, decoded.

Analyze Your Own Codebase

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

Try Supermodel Free