-
The
dockerFile
anddockerAlfresco
configuration blocks have been deprecated and have been consolidated to one configuration block.Old New dockerFile { dockerBuild { [...] } }
dockerBuild { [...] }
dockerAlfresco { baseImage = "..." leanImage = true dockerBuild { [...] } }
dockerBuild { [...] alfresco { baseImage = "..." leanImage = true } }
-
dockerBuild.repository
has been renamed todockerBuild.repositories
and supports tagging an image with multiple repositories at once.Old New ```groovy dockerFile { dockerBuild { repository = "some-repository/image-name" tags = ["some", "tags"] } } ```
```groovy dockerBuild { repositories = ["some-repository/image-name"] tags = ["some", "tags"] } ```
-
pull
,noCache
andremove
properties on thedockerBuild
extension are deprecated. They can be set directly on thebuildDockerImage
task.Old New ```groovy dockerFile { dockerBuild { pull = false noCache = true remove = false } } ```
```groovy buildDockerImage { pull = false noCache = true remove = false } ```
-
Automatic tagging been deprecated. You can use
autotag.legacyTags()
to keep using same tagging functionality.Old New ```groovy dockerAlfresco { dockerBuild { automaticTags = true tags = ["some", "tags"] } } ```
```groovy dockerBuild { tags = autotag.legacyTags(["some", "tags"]) } ```
-
The
eu.xenit.docker
plugin now creates acreateDockerFile
task, so you don't have to create one manually anymore. As long as noDockerfile
is present in the project directory, it will automatically be used bybuildDockerImage
.Old New ```groovy task createDockerFile(type: DockerfileWithCopyTask) { [...] } ```
```groovy createDockerFile { [...] } ```