|
1 | | -// Copyright (c) 2022, 2023 IBM Corporation and others. |
| 1 | +// Copyright (c) 2022, 2024 IBM Corporation and others. |
2 | 2 | // Licensed under Creative Commons Attribution-NoDerivatives |
3 | 3 | // 4.0 International (CC BY-ND 4.0) |
4 | 4 | // https://creativecommons.org/licenses/by-nd/4.0/ |
@@ -253,13 +253,6 @@ include::finish/system/Containerfile-full[] |
253 | 253 |
|
254 | 254 | Now that your microservices are packaged and your `Containerfile` files are written, you will build your container images by using the `podman build` command. |
255 | 255 |
|
256 | | -Run the following command to download or update to the latest Open Liberty container image: |
257 | | - |
258 | | -[role='command'] |
259 | | -``` |
260 | | -podman pull icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi |
261 | | -``` |
262 | | - |
263 | 256 | Run the following commands to build container images for your application: |
264 | 257 |
|
265 | 258 | [role='command'] |
@@ -424,29 +417,29 @@ In this example, you will use an environment variable to externally configure th |
424 | 417 | HTTP port number of the `inventory` service. |
425 | 418 |
|
426 | 419 | In the [hotspot file=0]`inventory/server.xml` file, |
427 | | -the [hotspot=httpPort file=0]`default.http.port` variable is declared and is used in the |
| 420 | +the [hotspot=httpPort file=0]`http.port` variable is declared and is used in the |
428 | 421 | [hotspot=httpEndpoint file=0]`httpEndpoint` element to define the service |
429 | | -endpoint. The default value of the [hotspot=httpPort file=0]`default.http.port` |
| 422 | +endpoint. The default value of the [hotspot=httpPort file=0]`http.port` |
430 | 423 | variable is `9081`. However, this value is only used if no other value is specified. |
431 | 424 | You can replace this value in the container by using the -e flag for the podman run command. |
432 | 425 |
|
433 | | -Run the following commands to stop and remove the `inventory` container and rerun it with the `default.http.port` environment variable set: |
| 426 | +Run the following commands to stop and remove the `inventory` container and rerun it with the `http.port` environment variable set: |
434 | 427 |
|
435 | 428 | [role='command'] |
436 | 429 | ``` |
437 | 430 | podman stop inventory |
438 | 431 | podman rm inventory |
439 | | -podman run -d --name inventory -e default.http.port=9091 -p 9091:9091 inventory:1.0-SNAPSHOT |
| 432 | +podman run -d --name inventory -e http.port=9091 -p 9091:9091 inventory:1.0-SNAPSHOT |
440 | 433 | ``` |
441 | 434 |
|
442 | 435 | The `-e` flag can be used to create and set the values of environment variables |
443 | | -in a container. In this case, you are setting the `default.http.port` environment |
| 436 | +in a container. In this case, you are setting the `http.port` environment |
444 | 437 | variable to `9091` for the `inventory` container. The `-p` flag then maps the local port |
445 | 438 | to the new container port that was specified via the environment variable. |
446 | 439 |
|
447 | 440 | Now, when the service is starting up, Open Liberty finds the |
448 | | -`default.http.port` environment variable and uses it to set the value of the |
449 | | -[hotspot=httpPort file=0]`default.http.port` variable to be used in the HTTP |
| 441 | +`http.port` environment variable and uses it to set the value of the |
| 442 | +[hotspot=httpPort file=0]`http.port` variable to be used in the HTTP |
450 | 443 | endpoint. |
451 | 444 |
|
452 | 445 | // static guide instructions: |
@@ -574,14 +567,12 @@ podman exec -it inventory /opt/ol/wlp/bin/productInfo featureInfo |
574 | 567 | Your list of Liberty features should be similar to the following: |
575 | 568 | ---- |
576 | 569 | jndi-1.0 |
577 | | -servlet-5.0 |
578 | | -cdi-3.0 |
579 | | -concurrent-2.0 |
580 | | -jsonb-2.0 |
581 | | -jsonp-2.0 |
582 | | -mpConfig-3.0 |
583 | | -restfulWS-3.0 |
584 | | -restfulWSClient-3.0 |
| 570 | +cdi-4.0 |
| 571 | +jsonb-3.0 |
| 572 | +jsonp-2.1 |
| 573 | +mpConfig-3.1 |
| 574 | +restfulWS-3.1 |
| 575 | +restfulWSClient-3.1 |
585 | 576 | ---- |
586 | 577 |
|
587 | 578 | // static guide instructions: |
|
0 commit comments