You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build_and_execute_guide.adoc
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,26 +72,26 @@ endif::[]
72
72
In this section, we will describe four different ways to run this guide:
73
73
74
74
1. https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.build-systems[Building and executing a JAR file]
75
-
2. https://docs.spring.io/spring-boot/docs/current/reference/html/container-images.html#container-images.buildpacks[Building and executing a Docker container, using Cloud Native Buildpacks^]
75
+
2. https://docs.spring.io/spring-boot/docs/current/reference/html/container-images.html#container-images.buildpacks[Building and executing a Docker container using Cloud Native Buildpacks^]
76
76
3. https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.native-build-tools[Building and executing a native image^]
77
-
4. https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.buildpacks[Building and executing a native image container, using Cloud Native Buildpacks^]
77
+
4. https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.buildpacks[Building and executing a native image container using Cloud Native Buildpacks^]
78
78
79
79
Regardless of how you choose to execute the application, the output should be the same.
80
80
81
81
To run the application, you can package the application as an executable jar.
82
-
The command `{jar_build_command}` will compile the application to an executable jar.
83
-
You can then run the jar with the command `{jar_run_command}`
82
+
The `{jar_build_command}` command compiles the application to an executable jar.
83
+
You can then run the jar with the `{jar_run_command}` command.
84
84
85
85
Alternatively, if you have a Docker environment available, you could create a Docker image directly from your Maven or Gradle plugin, using buildpacks.
86
86
With https://docs.spring.io/spring-boot/docs/current/reference/html/container-images.html#container-images.buildpacks[Cloud Native Buildpacks^], you can create Docker compatible images that you can run anywhere.
87
87
Spring Boot includes buildpack support directly for both Maven and Gradle.
88
88
This means you can type a single command and quickly get a sensible image into a locally running Docker daemon.
89
-
To create a Docker image using Cloud Native Buildpacks, run the command `{image_build_command}`.
90
-
With a Docker environment enabled, you can execute the application with the command `{image_run_command}`
89
+
To create a Docker image using Cloud Native Buildpacks, run the `{image_build_command}` command.
90
+
With a Docker environment enabled, you can run the application with the `{image_run_command}` command.
91
91
92
92
ifdef::network_container[]
93
93
NOTE: The `--network` flag tells Docker to attach our guide container to the existing network that our external container is using.
94
-
More information about this can be found in the https://docs.docker.com/network/#container-networks[Docker documentation^].
94
+
You can find more information in the https://docs.docker.com/network/#container-networks[Docker documentation^].
You can run the command `{native_build_command}` to generate a native image. When the build completes, you will be able to run the code with a nearinstantaneous start up time by executing the command `{native_run_command}`.
113
+
You can then run the `{native_build_command}` command to generate a native image. When the build completes, you will be able to run the code with a near-instantaneous start up time by executing the `{native_run_command}` command.
114
114
115
115
ifeval::["{build_system}" == "maven"]
116
116
To create https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.buildpacks.maven[native image container using Maven] you should ensure that your `pom.xml` file uses the `spring-boot-starter-parent` and the `org.graalvm.buildtools:native-maven-plugin`. This plugin should be located in the `<build> <plugins>` section:
@@ -122,6 +122,6 @@ To create https://docs.spring.io/spring-boot/docs/current/reference/html/native-
122
122
----
123
123
endif::[]
124
124
125
-
You can also create a https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.buildpacks[Native Image using Buildpacks^]. You can generate a native image by running the command `{native_image_build_command}`. Once the build completes, you can start your application with the command `{native_image_run_command}`
125
+
You can also create a https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.buildpacks[Native Image using Buildpacks^]. You can generate a native image by running the `{native_image_build_command}` command. Once the build completes, you can start your application with the `{native_image_run_command}` command.
0 commit comments