Class CreateASContainer
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@DisableCachingByDefault(because = "Creates a container in the local Docker daemon - container state is external and must never be taken from the build cache") public abstract class CreateASContainer extends CreateExtraContainer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCreateASContainer.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringPATTERN_READINESS_PROBE_URLprivate Stringdebugprivate BooleangcLogprivate BooleanheapDumpprivate StringappserverNameprivate StringclasspathLayoutprivate List<String>volumesprivate final Property<ContainerHandle>existingContainerprivate final Property<ContainerHandle>createdContainerprivate final Property<String>apiVersionprivate final Property<String>platformprivate final ListProperty<String>volumesprivate final Property<Boolean>attachStderrprivate final Property<Boolean>ttyprivate final TaskDestroyablesdestroyablesprivate final Loggerloggerprivate final Property<String>macAddressprivate final Stringpathprivate final Factory<File>temporaryDirFactoryprivate final Optional<String>reasonTaskIsIncompatibleWithConfigurationCacheprivate final ListProperty<String>cmdprivate final Property<String>imageIdprivate final ListProperty<String>networkAliasesprivate final TaskDependencyInternallifecycleDependenciesprivate final ListProperty<String>entrypointprivate BooleanimpliesSubProjectsprivate final Property<String>userprivate Booleanenabledprivate final TaskStateInternalstateprivate final DockerCreateContainer.HostConfighostConfigprivate final Property<String>urlprivate final Property<String>workingDirprivate final TaskIdentity<?>taskIdentityprivate final Property<String>hostNameprivate final Property<Boolean>stdinOnceprivate final DynamicObjectasDynamicObjectprivate final ListProperty<DockerCreateContainer.ExposedPort>exposedPortsprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final Property<String>imageprivate final RegularFilePropertycontainerIdFileprivate final MapProperty<String, String>envVarsprivate final Property<String>ipv4Addressprivate final FiletemporaryDirprivate final DockerClientdockerClientprivate final TaskDependencymustRunAfterprivate final Projectprojectprivate final TaskOutputsInternaloutputsprivate final Spec<in TaskInternal>onlyIfprivate final Property<Duration>timeoutprivate final TaskRequiredServicesrequiredServicesprivate final TaskDependencyInternaltaskDependenciesprivate final Set<Object>dependsOnprivate final DockerCreateContainer.HealthCheckConfighealthCheckprivate final Property<String>containerIdprivate final TaskLocalStatelocalStateprivate final List<InputChangesAwareTaskAction>taskActionsprivate final ListProperty<String>portSpecsprivate BooleanisEnabledprivate final TaskInputsInternalinputsprivate final Property<Boolean>attachStdoutprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Property<DockerClientService>dockerClientServiceprivate final Optional<String>reasonNotToTrackStateprivate final MapProperty<String, String>labelsprivate final Property<String>containerNameprivate final Property<String>pidprivate final BooleanisHasCustomActionsprivate final Property<Boolean>stdinOpenprivate final Property<Boolean>attachStdinprivate List<Action<in Task>>actionsprivate final DirectoryPropertycertPathprivate final Stringnameprivate final LoggingManagerloggingprivate final PathidentityPathprivate final StandardOutputCapturestandardOutputCaptureprivate Stringdescriptionpublic final static CreateASContainer.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description CreateASContainer(ObjectFactory objectFactory, ProviderFactory providerFactory)
-
Method Summary
Modifier and Type Method Description final StringgetDebug()Enable debugging for the JVM running the ICM-AS inside the container. final UnitsetDebug(String value)Enable debugging for the JVM running the ICM-AS inside the container. final BooleangetGcLog()Enable GC logging for the process. final UnitsetGcLog(Boolean value)Enable GC logging for the process. final BooleangetHeapDump()Enable heap dumps for the process. final UnitsetHeapDump(Boolean value)Enable heap dumps for the process. final StringgetAppserverName()Set a special name for the appserver final UnitsetAppserverName(String value)Set a special name for the appserver final StringgetClasspathLayout()Provide a custom classpath layout. final UnitsetClasspathLayout(String value)Provide a custom classpath layout. final List<String>getVolumes()Provide custom bind mounts (volumes) final UnitsetVolumes(List<String> value)Provide custom bind mounts (volumes) final Collection<String>getDebugOptionValues()Return the possible values for the task option debug final UnitwithSolrCloudZookeeperHostList(Provider<String> solrCloudZookeeperHostList)Provide the host list of the Zookeeper cluster for Solr Cloud Adapter. final UnitwithSolrCloudServerURLs(Provider<String> solrCloudServerURLs)Provide the Solr URL for Solr Cloud Adapter. final UnitwithMailServer(Provider<HostAndPort> hostAndPort)Provide the mail host+port final UnitforCustomization(String containerPrefix)-
Methods inherited from class com.intershop.gradle.icm.docker.tasks.CreateExtraContainer
getCreatedContainer, getExistingContainer, getPortMappings, getPrimaryPortMapping, runRemoteCommand, withEnvironment, withEnvironment, withPortMappings, withVolumes, withVolumes -
Methods inherited from class com.bmuschko.gradle.docker.tasks.AbstractDockerRemoteApiTask
getApiVersion, getCertPath, getDockerClient, getDockerClientService, getUrl, onComplete, onError, onNext, start -
Methods inherited from class com.bmuschko.gradle.docker.tasks.container.DockerCreateContainer
exposePorts, getAttachStderr, getAttachStdin, getAttachStdout, getCmd, getContainerId, getContainerIdFile, 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 org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class com.bmuschko.gradle.docker.tasks.image.DockerExistingImage
getImageId, targetImageId, targetImageId, targetImageId -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDebug
@Input() final String getDebug()
Enable debugging for the JVM running the ICM-AS inside the container. This option defaults to the value of the JVM property
SYSPROP_DEBUG_JVMrespectivelyfalseif not set. The port on the host can be configured using the propertyicm.properties/intershop.as.debug.port
-
setDebug
final Unit setDebug(String value)
Enable debugging for the JVM running the ICM-AS inside the container. This option defaults to the value of the JVM property
SYSPROP_DEBUG_JVMrespectivelyfalseif not set. The port on the host can be configured using the propertyicm.properties/intershop.as.debug.port
-
getHeapDump
@Input() final Boolean getHeapDump()
Enable heap dumps for the process.
-
setHeapDump
final Unit setHeapDump(Boolean value)
Enable heap dumps for the process.
-
getAppserverName
@Input() final String getAppserverName()
Set a special name for the appserver
-
setAppserverName
final Unit setAppserverName(String value)
Set a special name for the appserver
-
getClasspathLayout
@Optional()@Input() final String getClasspathLayout()
Provide a custom classpath layout. Default value is
sourceJar,release.
-
setClasspathLayout
final Unit setClasspathLayout(String value)
Provide a custom classpath layout. Default value is
sourceJar,release.
-
getVolumes
@Optional()@Input() final List<String> getVolumes()
Provide custom bind mounts (volumes)
-
setVolumes
final Unit setVolumes(List<String> value)
Provide custom bind mounts (volumes)
-
getDebugOptionValues
final Collection<String> getDebugOptionValues()
Return the possible values for the task option debug
-
withSolrCloudZookeeperHostList
final Unit withSolrCloudZookeeperHostList(Provider<String> solrCloudZookeeperHostList)
Provide the host list of the Zookeeper cluster for Solr Cloud Adapter. This is used to connect to Solr Cloud when using the SolrCloudAdapter.
-
withSolrCloudServerURLs
final Unit withSolrCloudServerURLs(Provider<String> solrCloudServerURLs)
Provide the Solr URL for Solr Cloud Adapter. This is used to connect to Solr Cloud when using the SolrCloudAdapter.
-
withMailServer
final Unit withMailServer(Provider<HostAndPort> hostAndPort)
Provide the mail host+port
-
forCustomization
final Unit forCustomization(String containerPrefix)
-
-
-
-