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
-
Field Summary
-
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()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)
-
Constructor Details
-
RunCommand
public RunCommand(java.lang.String imageName) -
RunCommand
public RunCommand(java.lang.String imageName, java.lang.String imageTag)
-
-
Method Details
-
execute
public java.lang.String execute() -
withExposedPorts
-
withBindMountedVolumes
public RunCommand withBindMountedVolumes(java.util.Map<java.lang.String,java.lang.String> hostToContainerMappings) -
withEnvironmentVariable
-
withEnvironmentVariables
public RunCommand withEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environmentVariables) -
withPlatform
-