class DockerImagePlugin extends java.lang.Object
Simplifies managing Docker images.
| Type | Name and description |
|---|---|
java.lang.Object |
addBuildDockerImageTask(org.gradle.api.Project project, DockerImagePluginExtension config)Add a 'buildDockerImages' to the supplied project. |
java.lang.Object |
addSaveDockerImageTask(org.gradle.api.Project project, DockerImagePluginExtension config)Add a 'saveDockerImages' to the supplied project. |
void |
apply(org.gradle.api.Project project) |
java.lang.Object |
getDockerImageVersion(java.io.File dockerFile)Returns the version to use for this docker image. |
java.lang.Object |
shell(java.lang.String command, java.io.File workingDir)Executes a shell command and returns the stdout result. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add a 'buildDockerImages' to the supplied project.
project
- project to add the task to.config
- plugin configuration block.Add a 'saveDockerImages' to the supplied project.
project
- project to add the task to.config
- plugin configuration block. Returns the version to use for this docker image.
This is derived as the first git tag after the docker file's commit hash.
If there is no tag after the hash, then it reverts to a
'git describe --dirty
Executes a shell command and returns the stdout result. Working directory is always the projectDir.
command
- the command to execute (cannot contain pipes)