public class DockerCommandBuilder extends Object implements CommandBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
DOCKER_CONTAINER_NAME_KEY
Name of the deployment property used to specify the container name pattern to use.
|
| Constructor and Description |
|---|
DockerCommandBuilder(String dockerNetwork) |
| Modifier and Type | Method and Description |
|---|---|
ProcessBuilder |
buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Map<String,String> appInstanceEnv,
String deployerId,
Optional<Integer> appInstanceNumber,
LocalDeployerProperties localDeployerProperties,
Optional<DebugAddress> debugAddressOption)
Builds the execution command for an application.
|
URL |
getBaseUrl(String deploymentId,
int index,
int port)
Compute an App unique URL over apps deployerId, instance index and computed port.
|
int |
getPortSuggestion(LocalDeployerProperties localDeployerProperties)
Allow the concrete implementation to suggests the target application port.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdwpOptionspublic static final String DOCKER_CONTAINER_NAME_KEY
public DockerCommandBuilder(String dockerNetwork)
public int getPortSuggestion(LocalDeployerProperties localDeployerProperties)
CommandBuildergetPortSuggestion in interface CommandBuilderpublic URL getBaseUrl(String deploymentId, int index, int port)
CommandBuildergetBaseUrl in interface CommandBuilderdeploymentId - App deployment id.index - App instance index.port - App port.public ProcessBuilder buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Map<String,String> appInstanceEnv, String deployerId, Optional<Integer> appInstanceNumber, LocalDeployerProperties localDeployerProperties, Optional<DebugAddress> debugAddressOption)
CommandBuilderbuildExecutionCommand in interface CommandBuilderrequest - the request for the application to execute.appInstanceEnv - the env vars tha might be needed when building the execution command.appInstanceNumber - application instance id.debugAddressOption - application remote debug address.Copyright © 2023 Pivotal Software, Inc.. All rights reserved.