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

customizeHost() — spring-boot Function Reference

Architecture documentation for the customizeHost() function in DockerSpec.java from the spring-boot codebase.

Function java Archiving LauncherConfig calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  3bcae294_bdbe_bb32_ee46_79840ee5ece1["customizeHost()"]
  0def0b53_d431_1ff3_4fe7_4b19c8f6f482["asDockerConfiguration()"]
  0def0b53_d431_1ff3_4fe7_4b19c8f6f482 -->|calls| 3bcae294_bdbe_bb32_ee46_79840ee5ece1
  46e3c318_1dba_2295_0a80_a27645ae4409["getContext()"]
  3bcae294_bdbe_bb32_ee46_79840ee5ece1 -->|calls| 46e3c318_1dba_2295_0a80_a27645ae4409
  3d3cf16c_11f1_a65a_54d6_a7dfc849b787["getHost()"]
  3bcae294_bdbe_bb32_ee46_79840ee5ece1 -->|calls| 3d3cf16c_11f1_a65a_54d6_a7dfc849b787
  230e4027_5940_54fc_db17_be72450405cc["getTlsVerify()"]
  3bcae294_bdbe_bb32_ee46_79840ee5ece1 -->|calls| 230e4027_5940_54fc_db17_be72450405cc
  083c3c0a_1979_214d_c25b_dfdf47f6fedc["getCertPath()"]
  3bcae294_bdbe_bb32_ee46_79840ee5ece1 -->|calls| 083c3c0a_1979_214d_c25b_dfdf47f6fedc
  style 3bcae294_bdbe_bb32_ee46_79840ee5ece1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/DockerSpec.java lines 132–146

	private BuilderDockerConfiguration customizeHost(BuilderDockerConfiguration dockerConfiguration) {
		String context = getContext().getOrNull();
		String host = getHost().getOrNull();
		if (context != null && host != null) {
			throw new GradleException(
					"Invalid Docker configuration, either context or host can be provided but not both");
		}
		if (context != null) {
			return dockerConfiguration.withContext(context);
		}
		if (host != null) {
			return dockerConfiguration.withHost(host, getTlsVerify().get(), getCertPath().getOrNull());
		}
		return dockerConfiguration;
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does customizeHost() do?
customizeHost() is a function in the spring-boot codebase.
What does customizeHost() call?
customizeHost() calls 4 function(s): getCertPath, getContext, getHost, getTlsVerify.
What calls customizeHost()?
customizeHost() is called by 1 function(s): asDockerConfiguration.

Analyze Your Own Codebase

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

Try Supermodel Free