-
- All Implemented Interfaces:
-
groovy.lang.GroovyObject,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 DockerCreateContainer
-
-
Field Summary
Fields Modifier and Type Field Description private StringfinishedCheckprivate Longtimeoutprivate final ListProperty<Probe>probesprivate final Property<Boolean>enableLogWatcher
-
Constructor Summary
Constructors Constructor Description StartExtraContainer(ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description final StringgetFinishedCheck()final UnitsetFinishedCheck(String finishedCheck)final LonggetTimeout()final UnitsetTimeout(Long timeout)final ListProperty<Probe>getProbes()final Property<Boolean>getEnableLogWatcher()final Provider<PortMapping>getPrimaryPortMapping()Returns a Provider that provides the primary port mapping if there is such a port mapping otherwise Provider.get will fail final Set<PortMapping>getPortMappings()Returns all port mappings final UnitwithPortMappings(PortMapping portMappings)Adds port mappings to be used with the container final UnitwithEnvironment(ContainerEnvironment environment)Applies the given environmentto this task's DockerCreateContainer.envVars (using MapProperty.putAll)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.AbstractDockerRemoteApiTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getProperty, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, invokeMethod, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class org.gradle.api.DefaultTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class com.bmuschko.gradle.docker.tasks.image.DockerExistingImage
getApiVersion, getCertPath, getDockerClient, getMetaClass, getNextHandler, getRegistryAuthLocator, getUrl, memoizedMethodPriv$getDockerClient, memoizedMethodPriv$getRegistryAuthLocator, onComplete, onError, onNext, setMetaClass, start -
Methods inherited from class com.bmuschko.gradle.docker.tasks.container.DockerCreateContainer
getImageId, targetImageId, targetImageId, targetImageId -
Methods inherited from class com.intershop.gradle.icm.docker.tasks.StartExtraContainer
exposePorts, getAttachStderr, getAttachStdin, getAttachStdout, getCmd, getContainerId, getContainerName, getEntrypoint, getEnvVars, getExposedPorts, getHealthCheck, getHostConfig, getHostName, getImage, getIpv4Address, getLabels, getMacAddress, getNetworkAliases, getPid, getPlatform, getPortSpecs, getStdinOnce, getStdinOpen, getTty, getUser, getVolumes, getWorkingDir, withEnvVar -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getFinishedCheck
@Optional()@Input() final String getFinishedCheck()
-
setFinishedCheck
final Unit setFinishedCheck(String finishedCheck)
-
getTimeout
@Input() final Long getTimeout()
-
setTimeout
final Unit setTimeout(Long timeout)
-
getProbes
@Input() final ListProperty<Probe> getProbes()
-
getEnableLogWatcher
@Input() final Property<Boolean> getEnableLogWatcher()
-
getPrimaryPortMapping
@Internal() final Provider<PortMapping> getPrimaryPortMapping()
Returns a Provider that provides the primary port mapping if there is such a port mapping otherwise Provider.get will fail
-
getPortMappings
@Internal() final Set<PortMapping> getPortMappings()
Returns all port mappings
-
withPortMappings
final Unit withPortMappings(PortMapping portMappings)
Adds port mappings to be used with the container
-
withEnvironment
final Unit withEnvironment(ContainerEnvironment environment)
Applies the given
environmentto this task's DockerCreateContainer.envVars (using MapProperty.putAll)
-
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()
-
-
-
-