class DockerCopyFileToContainer extends DockerExistingContainer
| Type | Name and description |
|---|---|
List<CopyFileToContainer> |
copyFiles |
Property<String> |
hostPathFile path on host to copy into container |
Property<String> |
remotePathPath of file inside container |
RegularFileProperty |
tarFileTar file we will copy into container |
| Constructor and description |
|---|
DockerCopyFileToContainer
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
runRemoteCommand() |
|
void |
withFile(Object hostPath, Object remotePath)Add a file to be copied into container |
|
void |
withTarFile(Object hostPath, Object remotePath)Add a tarfile to be copied into container |
| Methods inherited from class | Name |
|---|---|
class DockerExistingContainer |
targetContainerId, targetContainerId, targetContainerId |
class AbstractDockerRemoteApiTask |
getDockerClient, getNextHandler, getRegistryAuthLocator, onComplete, onError, onNext, runRemoteCommand, start |
Tar file we will copy into container
Add a file to be copied into container
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.Groovy Documentation