Skip to content

Commit 877b75b

Browse files
authored
Merge pull request #45 from OpenLiberty/staging
Merge staging to prod - Change server to runtime or instancee
2 parents 9e35b61 + 13ec757 commit 877b75b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.adoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ endif::[]
150150

151151
// static guide instructions:
152152
ifndef::cloud-hosted[]
153-
After you are finished checking out the microservices, stop the Open Liberty servers by pressing `CTRL+C`
154-
in the command-line sessions where you ran the servers. Alternatively, you can run the `liberty:stop` goal in another command-line session:
153+
After you are finished checking out the microservices, stop the Open Liberty instances by pressing `CTRL+C`
154+
in the command-line sessions where you ran the `system` and `inventory` services. Alternatively, you can run the `liberty:stop` goal in another command-line session:
155155
[role='command']
156156
```
157157
mvn -pl system liberty:stop
@@ -161,9 +161,8 @@ endif::[]
161161

162162
// cloud-hosted guide instructions:
163163
ifdef::cloud-hosted[]
164-
After you are finished checking out the microservices, stop the Open Liberty servers by pressing **CTRL+C**
165-
in the command-line sessions where you ran the servers. Alternatively, you can run the **liberty:stop** goal in another command-line session from the
166-
**start** directory:
164+
After you are finished checking out the microservices, stop the Open Liberty instances by pressing **CTRL+C**
165+
in the command-line sessions where you ran the **system** and **inventory** services. Alternatively, you can run the **liberty:stop** goal in another command-line session from the **start** directory:
167166
```
168167
cd /home/project/guide-containerize/start
169168
mvn -pl system liberty:stop
@@ -226,7 +225,7 @@ Furthermore, you can label your container images with the [hotspot=label file=0]
226225

227226
The [hotspot=copy-config hotspot=copy-war file=0]`COPY` instructions are structured as `COPY` [hotspot=config-userID hotspot=war-userID file=0]`[--chown=<user>:<group>]` [hotspot=inventory-config hotspot=inventory-war file=0]`<source>` [hotspot=config hotspot=config-apps file=0]`<destination>`.
228227
They copy local files into the specified destination within your container image.
229-
In this case, the `inventory` server configuration files that are located at `src/main/liberty/config` are copied to the [hotspot=config file=0]`/config/` destination directory.
228+
In this case, the `inventory` Liberty configuration files that are located at `src/main/liberty/config` are copied to the [hotspot=config file=0]`/config/` destination directory.
230229
The `inventory` application WAR file [hotspot=inventory-war file=0]`inventory.war`, which was created from running `mvn package`, is copied to the [hotspot=config-apps file=0]`/config/apps` destination directory.
231230

232231
The [hotspot=copy-config hotspot=copy-war file=0]`COPY` instructions use the [hotspot=config-userID hotspot=war-userID file=0]`1001` user ID and [hotspot=config-userID hotspot=war-userID file=0]`0` group because all official Open Liberty base images,
@@ -398,7 +397,7 @@ curl -s http://localhost:9081/inventory/systems | jq
398397
{: codeblock}
399398
endif::[]
400399

401-
== Externalizing server configuration
400+
== Externalizing Liberty's configuration
402401

403402
// File 0
404403
inventory/server.xml
@@ -410,7 +409,7 @@ include::finish/inventory/src/main/liberty/config/server.xml[]
410409
As mentioned at the beginning of this guide, one of the advantages of using
411410
containers is that they are portable and can be moved and deployed efficiently
412411
across all of your DevOps environments. Configuration often changes across
413-
different environments, and by externalizing your server configuration, you
412+
different environments, and by externalizing your Liberty's configuration, you
414413
can simplify the development process.
415414

416415
Imagine a scenario where you are developing an Open Liberty application on
@@ -491,12 +490,12 @@ curl -s http://localhost:9080/system/properties | jq
491490
endif::[]
492491

493492
You can externalize the configuration of more than just the port numbers.
494-
To learn more about Open Liberty server configuration, check out the
493+
To learn more about Open Liberty configuration, check out the
495494
https://openliberty.io/docs/latest/reference/config/server-configuration-overview.html[Server Configuration Overview^] docs.
496495

497496
== Optimizing the image size
498497

499-
As mentioned previously, the parent image that is used in each `Containerfile` contains the `full` tag, which includes all of the Liberty features. This parent image with the `full` tag is recommended for development, but while deploying to production it is recommended to use a parent image with the `kernel-slim` tag. The `kernel-slim` tag provides a bare minimum server with the ability to add the features required by the application.
498+
As mentioned previously, the parent image that is used in each `Containerfile` contains the `full` tag, which includes all of the Liberty features. This parent image with the `full` tag is recommended for development, but while deploying to production it is recommended to use a parent image with the `kernel-slim` tag. The `kernel-slim` tag provides a bare minimum Liberty runtime with the ability to add the features required by the application.
500499

501500
[role="code_command hotspot file=0", subs="quotes"]
502501
----

0 commit comments

Comments
 (0)