class DockerBuildImage extends AbstractDockerRemoteApiTask
| Fields inherited from class | Fields |
|---|---|
class ConventionTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
| Type | Name and description |
|---|---|
Map<String, String> |
buildArgs |
File |
dockerFileThe Dockerfile to use to build the image. |
String |
imageId |
File |
inputDirInput directory containing the build context. |
Map<String, String> |
labels |
Boolean |
noCache |
Boolean |
pull |
Boolean |
quiet |
DockerRegistryCredentials |
registryCredentialsThe target Docker registry credentials for building image. |
Boolean |
remove |
Long |
shmSizeSize of /dev/shm in bytes.
|
String |
tagTag for image. |
Set<String> |
tagsTags for image. |
| Constructor and description |
|---|
DockerBuildImage
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
runRemoteCommand(def dockerClient) |
The Dockerfile to use to build the image. If null, will use 'Dockerfile' in the build context, i.e. "$inputDir/Dockerfile".
Input directory containing the build context. Defaults to "$projectDir/docker".
The target Docker registry credentials for building image.
Size of /dev/shm in bytes.
The size must be greater than 0.
If omitted the system uses 64MB.
Tag for image.
Groovy Documentation