Add command-line options for Gradle bootBuildImage parameters

This commit adds support for setting the image name and builder
parameters of the Gradle bootBuildImage task using command-line
options as an alternative to DSL configuration.

See gh-20520
This commit is contained in:
Scott Frederick
2020-03-19 15:21:34 -05:00
parent b30e5a60c5
commit 3f378e1276
4 changed files with 61 additions and 3 deletions

View File

@@ -17,25 +17,30 @@ Task properties can be used to configure how the builder should operate on the p
The following table summarizes the available properties and their default values:
|===
| Property | Description | Default value
| Property | Command-line option | Description | Default value
| `builder`
| `--builder`
| Name of the Builder image to use.
| `cloudfoundry/cnb:0.0.53-bionic`
| `imageName`
| `--imageName`
| {spring-boot-api}/buildpack/platform/docker/type/ImageReference.html#of-java.lang.String-[Image name] for the generated image.
| `docker.io/library/${project.artifactId}:${project.version}`
| `environment`
|
| Environment variables that should be passed to the builder.
|
| `cleanCache`
|
| Whether to clean the cache before building.
| `false`
| `verboseLogging`
|
| Enables verbose logging of builder operations.
| `false`
|===