asDockerConfigurationWithHostConfiguration() — spring-boot Function Reference
Architecture documentation for the asDockerConfigurationWithHostConfiguration() function in DockerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD e9cc038b_f1c8_c33d_926d_59c41c647125["asDockerConfigurationWithHostConfiguration()"] 9a08d1e5_3de7_caf2_d6f8_d31c58939529["createDockerConfiguration()"] e9cc038b_f1c8_c33d_926d_59c41c647125 -->|calls| 9a08d1e5_3de7_caf2_d6f8_d31c58939529 c8116aea_c273_d1ee_399b_ec342e2087b5["decoded()"] e9cc038b_f1c8_c33d_926d_59c41c647125 -->|calls| c8116aea_c273_d1ee_399b_ec342e2087b5 style e9cc038b_f1c8_c33d_926d_59c41c647125 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 62–88
@Test
void asDockerConfigurationWithHostConfiguration() {
Docker docker = new Docker();
docker.setHost("docker.example.com");
docker.setTlsVerify(true);
docker.setCertPath("/tmp/ca-cert");
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()).isFalse();
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
Source
Frequently Asked Questions
What does asDockerConfigurationWithHostConfiguration() do?
asDockerConfigurationWithHostConfiguration() is a function in the spring-boot codebase.
What does asDockerConfigurationWithHostConfiguration() call?
asDockerConfigurationWithHostConfiguration() 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