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 |
addPublishDockerImageTask(org.gradle.api.Project project, DockerImagePluginExtension config)Add a 'publishDockerImages' 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 |
getRepositoryGitTag(java.io.File dockerFile)Returns the git tag of the repository. |
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 'publishDockerImages' 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 git tag of the repository.
Executes a shell command and returns the stdout result. Working directory is always the projectDir.
command
- the command to execute (cannot contain pipes)