-
public class DockerRunSpec extends DockerInvokeSpec
DSL for running command 'docker run'.
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>nameprivate final Property<String>imageprivate final MapProperty<String, String>volumesprivate final MapProperty<String, String>portsprivate final Property<Boolean>autoRemoveprivate final Property<Boolean>detachedprivate final ListProperty<String>optionsprivate final ListProperty<String>argsprivate final Provider<String>commandprivate final Property<String>operationprivate final Property<Boolean>indicatorprivate final DirectoryPropertycommandDirprivate final ListProperty<String>commandLineprivate ListProperty<Int>exitCodesprivate Property<InputStream>inputprivate final Property<OutputStream>outputprivate final Property<OutputStream>errors
-
Constructor Summary
Constructors Constructor Description DockerRunSpec(Docker docker)
-
Method Summary
-
Methods inherited from class com.cognifide.gradle.environment.docker.DockerRunSpec
args, args, argsShell, env, env, envFile, envFile, options, options, workDir -
Methods inherited from class com.cognifide.gradle.environment.docker.DockerInvokeSpec
exitCode, ignoreExitCodes, nullOut, systemOut -
Methods inherited from class com.cognifide.gradle.environment.docker.DockerSpec
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DockerRunSpec
DockerRunSpec(Docker docker)
-
-
Method Detail
-
workDirVolume
final Unit workDirVolume(String containerPath)
-
getVolumes
final MapProperty<String, String> getVolumes()
-
getPorts
final MapProperty<String, String> getPorts()
-
getAutoRemove
final Property<Boolean> getAutoRemove()
-
getDetached
final Property<Boolean> getDetached()
-
getOptions
final ListProperty<String> getOptions()
-
getArgs
final ListProperty<String> getArgs()
-
getCommand
final Provider<String> getCommand()
-
getOperation
final Property<String> getOperation()
-
getIndicator
final Property<Boolean> getIndicator()
-
getCommandDir
final DirectoryProperty getCommandDir()
-
getCommandLine
final ListProperty<String> getCommandLine()
-
getExitCodes
final ListProperty<Int> getExitCodes()
-
getInput
final Property<InputStream> getInput()
-
getOutput
final Property<OutputStream> getOutput()
-
getErrors
final Property<OutputStream> getErrors()
-
setExitCodes
final Unit setExitCodes(ListProperty<Int> exitCodes)
-
setInput
final Unit setInput(Property<InputStream> input)
-
-
-
-