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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringexecute()RunCommandwithBindMountedVolumes(java.util.Map<java.lang.String,java.lang.String> hostToContainerMappings)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)RunCommandwithPlatform(java.lang.String platform)-
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)
-
withBindMountedVolumes
public RunCommand withBindMountedVolumes(java.util.Map<java.lang.String,java.lang.String> hostToContainerMappings)
-
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)
-
withPlatform
public RunCommand withPlatform(java.lang.String platform)
-
-