Class StartExtraContainer
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
public class StartExtraContainer extends DockerStartContainer
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>finishedCheckprivate final Property<Duration>startupTimeoutprivate final ListProperty<Probe>probesprivate final Property<Boolean>enableLogWatcherprivate final Property<ContainerHandle>containerprivate final Property<String>containerIdprivate final Property<String>urlprivate final DirectoryPropertycertPathprivate final Property<String>apiVersionprivate final Property<DockerClientService>dockerClientServiceprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActions
-
Constructor Summary
Constructors Constructor Description StartExtraContainer(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description final Property<String>getFinishedCheck()Set a string for log file check. final Property<Duration>getStartupTimeout()Max duration for the container to start up (only evaluated if finishedCheck is set) final ListProperty<Probe>getProbes()final Property<Boolean>getEnableLogWatcher()final Property<ContainerHandle>getContainer()final UnitwithHttpProbe(URI uri, Duration retryInterval, Duration retryTimeout)final UnitwithSocketProbe(Integer port, Duration retryInterval, Duration retryTimeout)final UnitwithProbes(Probe probes)Configures this task to (additionally) use the given probesUnitrunRemoteCommand()-
Methods inherited from class com.bmuschko.gradle.docker.tasks.container.DockerExistingContainer
getContainerId, targetContainerId, targetContainerId, targetContainerId -
Methods inherited from class com.bmuschko.gradle.docker.tasks.AbstractDockerRemoteApiTask
getApiVersion, getCertPath, getDockerClient, getDockerClientService, getUrl, onComplete, onError, onNext, start -
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getFinishedCheck
@Optional()@Input() final Property<String> getFinishedCheck()
Set a string for log file check. Log is displayed as long the string was not part of the output.
-
getStartupTimeout
@Input() final Property<Duration> getStartupTimeout()
Max duration for the container to start up (only evaluated if finishedCheck is set)
-
getProbes
@Input() final ListProperty<Probe> getProbes()
-
getEnableLogWatcher
@Input() final Property<Boolean> getEnableLogWatcher()
-
getContainer
@Input() final Property<ContainerHandle> getContainer()
-
withHttpProbe
final Unit withHttpProbe(URI uri, Duration retryInterval, Duration retryTimeout)
-
withSocketProbe
final Unit withSocketProbe(Integer port, Duration retryInterval, Duration retryTimeout)
-
withProbes
final Unit withProbes(Probe probes)
Configures this task to (additionally) use the given
probes
-
runRemoteCommand
Unit runRemoteCommand()
-
-
-
-