Package cloud.localstack.docker.command
Class RunCommand
- java.lang.Object
-
- cloud.localstack.docker.command.Command
-
- cloud.localstack.docker.command.RunCommand
-
public class RunCommand extends Command
-
-
Constructor Summary
Constructors Constructor Description RunCommand(java.lang.String imageName)RunCommand(java.lang.String imageName, java.lang.String imageTag)
-
Method Summary
Modifier and Type Method Description java.lang.Stringexecute()RunCommandwithEnvironmentVariable(java.lang.String name, java.lang.String value)RunCommandwithEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environmentVariables)RunCommandwithExposedPorts(java.lang.String portsToExpose, boolean randomize)-
Methods inherited from class cloud.localstack.docker.command.Command
addOptions
-
-
-
-
Method Detail
-
execute
public java.lang.String execute()
-
withExposedPorts
public RunCommand withExposedPorts(java.lang.String portsToExpose, boolean randomize)
-
withEnvironmentVariable
public RunCommand withEnvironmentVariable(java.lang.String name, java.lang.String value)
-
withEnvironmentVariables
public RunCommand withEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environmentVariables)
-
-