Class DockerCopyFileToContainer

All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, Configurable<Task>

public class DockerCopyFileToContainer extends DockerExistingContainer
  • Constructor Details

    • DockerCopyFileToContainer

      public DockerCopyFileToContainer()
  • Method Details

    • getRemotePath

      @Input @Optional public final Property<String> getRemotePath()
      Path of file inside container
    • getHostPath

      @Input @Optional public final Property<String> getHostPath()
      File path on host to copy into container
    • getTarFile

      @InputFile @Optional public final RegularFileProperty getTarFile()
      Tar file we will copy into container
    • getCopyFiles

      @Input @Optional public final ArrayList<CopyFileToContainer> getCopyFiles()
    • runRemoteCommand

      public void runRemoteCommand() throws IOException
      Specified by:
      runRemoteCommand in class AbstractDockerRemoteApiTask
      Throws:
      IOException
    • withFile

      public void withFile(Object hostPath, Object remotePath)
      Add a file to be copied into container
      Parameters:
      hostPath - can be either String, GString, File or Closure which returns any of the previous.
      remotePath - can be either String, GString, File or Closure which returns any of the previous.
    • withTarFile

      public void withTarFile(Object hostPath, Object remotePath)
      Add a tarfile to be copied into container
      Parameters:
      hostPath - can be either String, GString, File or Closure which returns any of the previous.
      remotePath - can be either String, GString, File or Closure which returns any of the previous.