Package io.github.gmazzo.docker.compose
Class DockerService
-
- All Implemented Interfaces:
-
io.github.gmazzo.docker.compose.DockerComposeCreateSettings,io.github.gmazzo.docker.compose.DockerComposeExtension,io.github.gmazzo.docker.compose.DockerComposeSettings,io.github.gmazzo.docker.compose.DockerSettings,java.lang.AutoCloseable,org.gradle.api.credentials.Credentials,org.gradle.api.services.BuildService
public abstract class DockerService implements BuildService<BuildServiceParameters.None>, DockerComposeExtension, AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDockerService.ExecResult
-
Field Summary
Fields Modifier and Type Field Description private final Booleanstartedprivate final NamedDomainObjectContainer<DockerComposeSpec>servicesprivate final Property<String>commandprivate final ListProperty<String>optionsprivate final DockerSettings.Loginloginprivate final ListProperty<String>optionsUpprivate final ListProperty<String>optionsDownprivate final Property<Boolean>keepContainersRunningprivate final Property<Boolean>printPortMappingsprivate final Property<Boolean>printLogsprivate final DockerComposeSettings.WaitForTCPPortswaitForTCPPortsprivate final Property<String>projectNameprivate final DirectoryPropertyworkingDirectoryprivate final ConfigurableFileCollectioncomposeFileprivate final ListProperty<String>optionsCreateprivate final BuildServiceParameters.Noneparameters
-
Constructor Summary
Constructors Constructor Description DockerService(ExecOperations execOperations)
-
Method Summary
Modifier and Type Method Description final BooleangetStarted()final Unitstart()Unitclose()final DockerService.ExecResultexec(String command, File workingDirectory, InputStream input, Boolean failNonZeroExitValue)final DockerService.ExecResultexec(String command, File workingDirectory, InputStream input)final DockerService.ExecResultexec(String command, File workingDirectory)final DockerService.ExecResultexec(String command)final DockerService.ExecResultcomposeExec(DockerComposeCreateSettings settings, String command, InputStream input, Boolean failNonZeroExitValue)-
Methods inherited from class io.github.gmazzo.docker.compose.DockerComposeExtension
getServices -
Methods inherited from class io.github.gmazzo.docker.compose.DockerSettings
getCommand, getLogin, getOptions, login -
Methods inherited from class io.github.gmazzo.docker.compose.DockerComposeSettings
getKeepContainersRunning, getOptionsDown, getOptionsUp, getPrintLogs, getPrintPortMappings, getWaitForTCPPorts, waitForTCPPorts -
Methods inherited from class io.github.gmazzo.docker.compose.DockerComposeCreateSettings
composeFile, getComposeFile, getOptionsCreate, getProjectName, getWorkingDirectory -
Methods inherited from class io.github.gmazzo.docker.compose.DockerService
getParameters -
Methods inherited from class org.gradle.api.services.BuildService
getParameters -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getStarted
final Boolean getStarted()
-
exec
@JvmOverloads() final DockerService.ExecResult exec(String command, File workingDirectory, InputStream input, Boolean failNonZeroExitValue)
-
exec
@JvmOverloads() final DockerService.ExecResult exec(String command, File workingDirectory, InputStream input)
-
exec
@JvmOverloads() final DockerService.ExecResult exec(String command, File workingDirectory)
-
exec
@JvmOverloads() final DockerService.ExecResult exec(String command)
-
composeExec
final DockerService.ExecResult composeExec(DockerComposeCreateSettings settings, String command, InputStream input, Boolean failNonZeroExitValue)
-
-
-
-