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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<co.elastic.gradle.utils.docker.instruction.ContainerImageBuildInstruction>
     
    org.gradle.api.provider.Provider<Instant>
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.provider.Property<String>
     
    protected abstract org.gradle.process.ExecOperations
     
    abstract org.gradle.api.file.RegularFileProperty
     
    org.gradle.api.provider.Provider<String>
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract 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.ObjectFactory
     
    abstract @NotNull org.gradle.api.provider.Property<OSDistribution>
     
    protected abstract org.gradle.api.file.ProjectLayout
     
    protected abstract org.gradle.api.provider.ProviderFactory
     
    org.gradle.api.internal.file.copy.DefaultCopySpec
     
    abstract org.gradle.api.file.DirectoryProperty
     
    protected void
     

    Methods 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, usesService

    Methods 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, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface co.elastic.gradle.dockerbase.ImageBuildable

    getArchitecture, getDockerEphemeralConfiguration, getOSPackagesConfiguration

    Methods 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:
      getOSDistribution in interface ImageBuildable
    • getImageIdFile

      @OutputFile public abstract org.gradle.api.file.RegularFileProperty getImageIdFile()
      Specified by:
      getImageIdFile in interface ImageBuildable
    • getLockFile

      public abstract org.gradle.api.provider.Property<BaseLockfile> getLockFile()
    • getMirrorRepositories

      public abstract org.gradle.api.provider.ListProperty<OsPackageRepository> getMirrorRepositories()
      Specified by:
      getMirrorRepositories in interface ImageBuildable
    • 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:
      getActualInstructions in interface ImageBuildable
    • getProviderFactory

      @Inject protected abstract org.gradle.api.provider.ProviderFactory getProviderFactory()
    • getRootCopySpec

      @Internal public org.gradle.api.internal.file.copy.DefaultCopySpec getRootCopySpec()
      Specified by:
      getRootCopySpec in interface ImageBuildable
    • 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

      @Internal public org.gradle.api.provider.Provider<String> getImageId()
      Specified by:
      getImageId in interface ImageBuildable
    • getCreatedAtFile

      @OutputFile public abstract org.gradle.api.file.RegularFileProperty getCreatedAtFile()
    • getImageArchive

      @OutputFile public abstract org.gradle.api.file.RegularFileProperty getImageArchive()
    • getCreatedAt

      @Internal public org.gradle.api.provider.Provider<Instant> getCreatedAt()
    • getMaxOutputSizeMB

      @Input public abstract org.gradle.api.provider.Property<Long> getMaxOutputSizeMB()
    • getWorkingDirectory

      @LocalState public abstract org.gradle.api.file.DirectoryProperty getWorkingDirectory()
      Specified by:
      getWorkingDirectory in interface ImageBuildable
    • getDockerEphemeralMount

      @Input public abstract org.gradle.api.provider.Property<String> getDockerEphemeralMount()
      Specified by:
      getDockerEphemeralMount in interface ImageBuildable
    • getIsolateFromExternalRepos

      @Input public abstract org.gradle.api.provider.Property<Boolean> getIsolateFromExternalRepos()
      Specified by:
      getIsolateFromExternalRepos in interface ImageBuildable
    • taskAction

      protected void taskAction()