From 88a32d2fb9ee1b54d2cabb3a4e1a4e0154fc0045 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 18 May 2020 14:19:59 +0000 Subject: [PATCH 1/2] Add gradle build image command line example See gh-21490 --- .../src/docs/asciidoc/packaging-oci-image.adoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc index d70cd032e7..e4c16fc214 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -151,4 +151,11 @@ include::../gradle/packaging/boot-build-image-name.gradle.kts[tags=image-name] ---- Note that this configuration does not provide an explicit tag so `latest` is used. -It is possible to specify a tag as well, either using `${project.version}`, any property available in the build or a hardcoded version. \ No newline at end of file +It is possible to specify a tag as well, either using `${project.version}`, any property available in the build or a hardcoded version. + +The image name can be specified on the command line as well, as shown in this example: + +[indent=0] +---- +$ gradle bootBuildImage --imageName=example.com/library/v1 +---- From a5c42ce4c4113b10dd9aca242b0142278b61a958 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Wed, 20 May 2020 15:40:32 -0500 Subject: [PATCH 2/2] Polish `Add gradle build image command line example` See gh-21490 --- .../src/docs/asciidoc/packaging-oci-image.adoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc index e4c16fc214..7e8266aad8 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc @@ -96,6 +96,13 @@ include::../gradle/packaging/boot-build-image-builder.gradle.kts[tags=builder] This configuration will use a builder image with the name `mine/java-cnb-builder` and the tag `latest`. +The builder can be specified on the command line as well, as shown in this example: + +[indent=0] +---- +$ gradle bootBuildImage --builder=mine/java-cnb-builder +---- + [[build-image-example-builder-configuration]] @@ -157,5 +164,5 @@ The image name can be specified on the command line as well, as shown in this ex [indent=0] ---- -$ gradle bootBuildImage --imageName=example.com/library/v1 +$ gradle bootBuildImage --imageName=example.com/library/my-app:v1 ----