Skip to content

Commit 6c98efa

Browse files
authored
Merge pull request #134 from OpenLiberty/staging
Merge staging to prod - Change server to runtime or instancee
2 parents f8023bf + 8ff8a91 commit 6c98efa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: README.adoc

+11-11
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
[.hidden]
2525
NOTE: This repository contains the guide documentation source. To view the guide in published form, view it on the https://openliberty.io/guides/{projectid}.html[Open Liberty website].
2626

27-
Learn how to containerize, package, and run a Spring Boot application on an Open Liberty server without modification.
27+
Learn how to containerize, package, and run a Spring Boot application on Open Liberty without modification.
2828

2929
== What you'll learn
3030

3131
The starting point of this guide is the finished application from the https://spring.io/guides/gs/spring-boot/[Building an Application with Spring Boot^] guide. If you are not familiar with Spring Boot, complete that guide first. Java 8 is required to run this project.
3232

33-
You will learn how to use the `springBootUtility` command to deploy a Spring Boot application in Docker on an Open Liberty server without modification. This command stores the dependent library JAR files of the application to the target library cache, and packages the remaining application artifacts into a thin application JAR file.
33+
You will learn how to use the `springBootUtility` command to deploy a Spring Boot application in Docker on Open Liberty without modification. This command stores the dependent library JAR files of the application to the target library cache, and packages the remaining application artifacts into a thin application JAR file.
3434

35-
You will also learn how to run the Spring Boot application locally with an Open Liberty server, and how to package it so that it is embedded with an Open Liberty server.
35+
You will also learn how to run the Spring Boot application locally with Open Liberty, and how to package it so that it is embedded with an Open Liberty server package.
3636

3737
[role='command']
3838
include::{common-includes}/gitclone.adoc[]
@@ -128,7 +128,7 @@ This Dockerfile is written in two main stages. For more information about multi-
128128
The first stage copies the [hotspot=copyJar]`guide-spring-boot-0.1.0.jar` Spring Boot application to the [hotspot=7 file=0]`/staging` temporary directory,
129129
and then uses the Open Liberty [hotspot=springBootUtility]`springBootUtility` command to thin the application. For more information about the `springBootUtility` command, see the https://openliberty.io/docs/latest/reference/command/springbootUtility-thin.html[springBootUtility documentation^].
130130

131-
The second stage begins with the [hotspot=OLimage2 file=0]`Open Liberty Docker image`. The Dockerfile copies the [hotspot=serverXml file=0]`server.xml` file from the `/opt/ol/wlp/templates` directory, which enables Spring Boot and TLS support. Then, the Dockerfile copies the Spring Boot dependent library JAR files that are at the [hotspot=libcache file=0]`lib.index.cache` directory and the [hotspot=thinjar file=0]`thin-guide-spring-boot-0.1.0.jar` file. The `lib.index.cache` directory and the `thin-guide-spring-boot-0.1.0.jar` file were both generated in the first stage.
131+
The second stage begins with the [hotspot=OLimage2 file=0]`Open Liberty Docker image`. The Dockerfile copies the Liberty [hotspot=serverXml file=0]`server.xml` configuration file from the `/opt/ol/wlp/templates` directory, which enables Spring Boot and TLS support. Then, the Dockerfile copies the Spring Boot dependent library JAR files that are at the [hotspot=libcache file=0]`lib.index.cache` directory and the [hotspot=thinjar file=0]`thin-guide-spring-boot-0.1.0.jar` file. The `lib.index.cache` directory and the `thin-guide-spring-boot-0.1.0.jar` file were both generated in the first stage.
132132

133133

134134

@@ -225,11 +225,11 @@ Add the [hotspot=libertyMavenPlugin file=0]`liberty-maven-plugin` to the [hotspo
225225

226226
The `liberty-maven-plugin` downloads and installs Open Liberty to the `target/liberty` directory. The [hotspot=installAppPackages file=0]`installAppPackages` configuration element in the [hotspot file=0]`pom.xml` file typically takes in the following parameters: `dependencies`, `project`, or `all`. The default value is `dependencies`, but to install the Spring Boot application to Open Liberty, the value must be [hotspot=installAppPackages file=0]`spring-boot-project`. This value allows Maven to package, thin, and copy the `guide-spring-boot-0.1.0.jar` application to the Open Liberty runtime [hotspot=appsDirectory file=0]`applications` directory and shared library directory.
227227

228-
To run the Spring Boot application, the Open Liberty server needs to be correctly configured. By default, the `liberty-maven-plugin` picks up the server configuration file from the `src/main/liberty/config` directory.
228+
To run the Spring Boot application, the Open Liberty instance needs to be correctly configured. By default, the `liberty-maven-plugin` picks up the Liberty `server.xml` configuration file from the `src/main/liberty/config` directory.
229229

230230
[role="code_command hotspot file=1", subs="quotes"]
231231
----
232-
#Create the `server.xml`.#
232+
#Create the Liberty `server.xml` configuration file.#
233233
`src/main/liberty/config/server.xml`
234234
----
235235

@@ -239,7 +239,7 @@ server.xml
239239
include::finish/src/main/liberty/config/server.xml[]
240240
----
241241

242-
The [hotspot=servlet file=1]`servlet` and [hotspot=springboot file=1]`springBoot` features are required for the Liberty server to run the Spring Boot application. The application port is specified as [hotspot=httpport file=1]`9080` and the application is configured as a [hotspot=springBootApplication file=1]`springBootApplication` element. For more information, see the https://www.openliberty.io/docs/latest/reference/config/springBootApplication.html[springBootApplication element documentation^].
242+
The [hotspot=servlet file=1]`servlet` and [hotspot=springboot file=1]`springBoot` features are required for the Liberty instance to run the Spring Boot application. The application port is specified as [hotspot=httpport file=1]`9080` and the application is configured as a [hotspot=springBootApplication file=1]`springBootApplication` element. For more information, see the https://www.openliberty.io/docs/latest/reference/config/springBootApplication.html[springBootApplication element documentation^].
243243

244244
If you didn't build the Spring Boot application, run the `package` goal:
245245

@@ -261,7 +261,7 @@ mvnw.cmd package
261261
```
262262
--
263263

264-
Next, run the `liberty:run` goal. This goal creates the Open Liberty server, installs required features, deploys the Spring Boot application to the Open Liberty server, and starts the application.
264+
Next, run the `liberty:run` goal. This goal creates the Open Liberty instance, installs required features, deploys the Spring Boot application to the Open Liberty instance, and starts the application.
265265

266266
include::{common-includes}/os-tabs.adoc[]
267267

@@ -281,7 +281,7 @@ mvnw.cmd liberty:run
281281
```
282282
--
283283

284-
After you see the following message, your application server is ready:
284+
After you see the following message, your Liberty instance is ready:
285285
[role="no_copy"]
286286
----
287287
The defaultServer server is ready to run a smarter planet.
@@ -301,7 +301,7 @@ curl http://localhost:9080/hello
301301
```
302302
endif::[]
303303

304-
After you finish exploring the application, press `CTRL+C` to stop the Open Liberty server. Alternatively, you can run the `liberty:stop` goal from the `start` directory in a separate command-line session:
304+
After you finish exploring the application, press `CTRL+C` to stop the Open Liberty instance. Alternatively, you can run the `liberty:stop` goal from the `start` directory in a separate command-line session:
305305

306306
include::{common-includes}/os-tabs.adoc[]
307307

@@ -373,7 +373,7 @@ Run the repackaged Spring Boot application. This JAR file was defined previously
373373
java -jar target/GSSpringBootApp.jar
374374
```
375375

376-
After you see the following message, your application server is ready:
376+
After you see the following message, your Liberty instance is ready:
377377

378378
[role="no_copy"]
379379
----

0 commit comments

Comments
 (0)