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, wait
getJdwpOptions
public static final String DOCKER_CONTAINER_NAME_KEY
public DockerCommandBuilder(String dockerNetwork)
public int getPortSuggestion(LocalDeployerProperties localDeployerProperties)
CommandBuilder
getPortSuggestion
in interface CommandBuilder
public URL getBaseUrl(String deploymentId, int index, int port)
CommandBuilder
getBaseUrl
in interface CommandBuilder
deploymentId
- 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)
CommandBuilder
buildExecutionCommand
in interface CommandBuilder
request
- 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 © 2021 Pivotal Software, Inc.. All rights reserved.