ContainerConfig() — spring-boot Function Reference
Architecture documentation for the ContainerConfig() function in ContainerConfig.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6a3530cc_aa6e_a9f5_e96b_9dc805c39e41["ContainerConfig()"] 26d4acb6_cb1a_cc41_48d5_66abeb804236["run()"] 26d4acb6_cb1a_cc41_48d5_66abeb804236 -->|calls| 6a3530cc_aa6e_a9f5_e96b_9dc805c39e41 58994152_b05e_a16f_283c_b6dc2c064895["get()"] 6a3530cc_aa6e_a9f5_e96b_9dc805c39e41 -->|calls| 58994152_b05e_a16f_283c_b6dc2c064895 759ca794_5cea_60bd_cef5_13bbbdbfd61c["toString()"] 6a3530cc_aa6e_a9f5_e96b_9dc805c39e41 -->|calls| 759ca794_5cea_60bd_cef5_13bbbdbfd61c style 6a3530cc_aa6e_a9f5_e96b_9dc805c39e41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ContainerConfig.java lines 52–81
ContainerConfig(@Nullable String user, ImageReference image, String command, List<String> args,
Map<String, String> labels, List<Binding> bindings, Map<String, String> env, @Nullable String networkMode,
List<String> securityOptions) {
Assert.notNull(image, "'image' must not be null");
Assert.hasText(command, "'command' must not be empty");
JsonMapper jsonMapper = SharedJsonMapper.get();
ObjectNode node = jsonMapper.createObjectNode();
if (StringUtils.hasText(user)) {
node.put("User", user);
}
node.put("Image", image.toString());
ArrayNode commandNode = node.putArray("Cmd");
commandNode.add(command);
args.forEach(commandNode::add);
ArrayNode envNode = node.putArray("Env");
env.forEach((name, value) -> envNode.add(name + "=" + value));
ObjectNode labelsNode = node.putObject("Labels");
labels.forEach(labelsNode::put);
ObjectNode hostConfigNode = node.putObject("HostConfig");
if (networkMode != null) {
hostConfigNode.put("NetworkMode", networkMode);
}
ArrayNode bindsNode = hostConfigNode.putArray("Binds");
bindings.forEach((binding) -> bindsNode.add(binding.toString()));
if (!CollectionUtils.isEmpty(securityOptions)) {
ArrayNode securityOptsNode = hostConfigNode.putArray("SecurityOpt");
securityOptions.forEach(securityOptsNode::add);
}
this.json = jsonMapper.writeValueAsString(node);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does ContainerConfig() do?
ContainerConfig() is a function in the spring-boot codebase.
What does ContainerConfig() call?
ContainerConfig() calls 2 function(s): get, toString.
What calls ContainerConfig()?
ContainerConfig() is called by 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free