Package co.elastic.gradle.dockerbase
Class DockerBaseImageBuildTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
co.elastic.gradle.dockerbase.DockerBaseImageBuildTask
- All Implemented Interfaces:
ImageBuildable,Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@CacheableTask
public abstract class DockerBaseImageBuildTask
extends org.gradle.api.DefaultTask
implements ImageBuildable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>org.gradle.api.provider.Provider<Instant>abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.provider.Property<String>protected abstract org.gradle.process.ExecOperationsabstract org.gradle.api.file.RegularFilePropertyorg.gradle.api.provider.Provider<String>abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.provider.ListProperty<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>abstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.provider.Property<BaseLockfile>abstract org.gradle.api.provider.Property<Long>abstract org.gradle.api.provider.ListProperty<OsPackageRepository>protected abstract org.gradle.api.model.ObjectFactoryabstract @NotNull org.gradle.api.provider.Property<OSDistribution>protected abstract org.gradle.api.file.ProjectLayoutprotected abstract org.gradle.api.provider.ProviderFactoryorg.gradle.api.internal.file.copy.DefaultCopySpecabstract org.gradle.api.file.DirectoryPropertyprotected voidMethods inherited from class org.gradle.api.DefaultTask
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, 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, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.gradle.dockerbase.ImageBuildable
getArchitecture, getDockerEphemeralConfiguration, getOSPackagesConfigurationMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
DockerBaseImageBuildTask
@Inject public DockerBaseImageBuildTask()
-
-
Method Details
-
getOSDistribution
@Input @NotNull public abstract @NotNull org.gradle.api.provider.Property<OSDistribution> getOSDistribution()- Specified by:
getOSDistributionin interfaceImageBuildable
-
getImageIdFile
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getImageIdFile()- Specified by:
getImageIdFilein interfaceImageBuildable
-
getLockFile
-
getMirrorRepositories
- Specified by:
getMirrorRepositoriesin interfaceImageBuildable
-
getInputInstructions
public abstract org.gradle.api.provider.ListProperty<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction> getInputInstructions() -
getActualInstructions
public List<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction> getActualInstructions()- Specified by:
getActualInstructionsin interfaceImageBuildable
-
getProviderFactory
@Inject protected abstract org.gradle.api.provider.ProviderFactory getProviderFactory() -
getRootCopySpec
@Internal public org.gradle.api.internal.file.copy.DefaultCopySpec getRootCopySpec()- Specified by:
getRootCopySpecin interfaceImageBuildable
-
getExecOperations
@Inject protected abstract org.gradle.process.ExecOperations getExecOperations() -
getProjectLayout
@Inject protected abstract org.gradle.api.file.ProjectLayout getProjectLayout() -
getObjectFactory
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjectFactory() -
getImageId
- Specified by:
getImageIdin interfaceImageBuildable
-
getCreatedAtFile
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getCreatedAtFile() -
getImageArchive
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getImageArchive() -
getCreatedAt
-
getMaxOutputSizeMB
-
getWorkingDirectory
@LocalState public abstract org.gradle.api.file.DirectoryProperty getWorkingDirectory()- Specified by:
getWorkingDirectoryin interfaceImageBuildable
-
getDockerEphemeralMount
- Specified by:
getDockerEphemeralMountin interfaceImageBuildable
-
getIsolateFromExternalRepos
- Specified by:
getIsolateFromExternalReposin interfaceImageBuildable
-
taskAction
protected void taskAction()
-