From 72e75c49985a70f60c4ed84dce8e5bba6cad3d78 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Mon, 29 Jan 2024 18:23:09 -0500 Subject: [PATCH 1/5] update versions --- README.adoc | 16 +++++++------- finish/inventory/pom.xml | 22 +++++++++---------- .../src/main/liberty/config/server.xml | 8 +++---- finish/inventory/src/main/webapp/index.html | 4 ++-- finish/system/pom.xml | 20 ++++++++--------- .../system/src/main/liberty/config/server.xml | 6 ++--- finish/system/src/main/webapp/index.html | 2 +- start/inventory/pom.xml | 22 +++++++++---------- .../src/main/liberty/config/server.xml | 8 +++---- start/inventory/src/main/webapp/index.html | 4 ++-- start/system/pom.xml | 20 ++++++++--------- .../system/src/main/liberty/config/server.xml | 6 ++--- start/system/src/main/webapp/index.html | 2 +- 13 files changed, 70 insertions(+), 70 deletions(-) diff --git a/README.adoc b/README.adoc index cb6ea58..9d32143 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,4 @@ -// Copyright (c) 2022, 2023 IBM Corporation and others. +// Copyright (c) 2022, 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/ @@ -424,29 +424,29 @@ In this example, you will use an environment variable to externally configure th 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 +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]`default.http.port` +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'] ``` podman stop inventory podman rm inventory -podman run -d --name inventory -e default.http.port=9091 -p 9091:9091 inventory:1.0-SNAPSHOT +podman 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 container. In this case, you are setting the `default.http.port` environment +in a container. In this case, you are setting the `http.port` environment variable to `9091` for the `inventory` container. The `-p` flag then maps the local port to the new container port that was specified via the environment variable. 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 +`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: diff --git a/finish/inventory/pom.xml b/finish/inventory/pom.xml index de68607..e06ef6f 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 98c6587..5e7f75c 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 41cdf7a..3a8c371 100755 --- a/finish/inventory/src/main/webapp/index.html +++ b/finish/inventory/src/main/webapp/index.html @@ -30,8 +30,8 @@

Eclipse MicroProfile

For more information about the features used in this application, see the Open Liberty documentation:

    -
  • MicroProfile 6.0
  • -
  • MicroProfile Config 3.0
  • +
  • MicroProfile 6.1
  • +
  • MicroProfile Config 3.1
  • Jakarta Contexts and Dependency Injection 4.0
  • Jakarta RESTful Web Services 3.1
  • Jakarta JSON Processing 2.1
  • diff --git a/finish/system/pom.xml b/finish/system/pom.xml index 965b7b7..9f1058a 100644 --- a/finish/system/pom.xml +++ b/finish/system/pom.xml @@ -17,8 +17,8 @@ 11 11 - 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 2a8f1b2..0fdfc74 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 2f08024..d65b202 100644 --- a/finish/system/src/main/webapp/index.html +++ b/finish/system/src/main/webapp/index.html @@ -30,7 +30,7 @@

    Eclipse MicroProfile

    For more information about the features used in this application, see the Open Liberty documentation:

      -
    • MicroProfile 6.0
    • +
    • MicroProfile 6.1
    • Jakarta Contexts and Dependency Injection 4.0
    • Jakarta RESTful Web Services 3.1
    • Jakarta JSON Processing 2.1
    • diff --git a/start/inventory/pom.xml b/start/inventory/pom.xml index 9539d33..80ac401 100644 --- a/start/inventory/pom.xml +++ b/start/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/start/inventory/src/main/liberty/config/server.xml b/start/inventory/src/main/liberty/config/server.xml index 542e5d8..9cad180 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 41cdf7a..3a8c371 100755 --- a/start/inventory/src/main/webapp/index.html +++ b/start/inventory/src/main/webapp/index.html @@ -30,8 +30,8 @@

      Eclipse MicroProfile

      For more information about the features used in this application, see the Open Liberty documentation:

        -
      • MicroProfile 6.0
      • -
      • MicroProfile Config 3.0
      • +
      • MicroProfile 6.1
      • +
      • MicroProfile Config 3.1
      • Jakarta Contexts and Dependency Injection 4.0
      • Jakarta RESTful Web Services 3.1
      • Jakarta JSON Processing 2.1
      • diff --git a/start/system/pom.xml b/start/system/pom.xml index 965b7b7..9f1058a 100644 --- a/start/system/pom.xml +++ b/start/system/pom.xml @@ -17,8 +17,8 @@ 11 11 - 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 2a8f1b2..0fdfc74 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 2f08024..d65b202 100644 --- a/start/system/src/main/webapp/index.html +++ b/start/system/src/main/webapp/index.html @@ -30,7 +30,7 @@

        Eclipse MicroProfile

        For more information about the features used in this application, see the Open Liberty documentation:

          -
        • MicroProfile 6.0
        • +
        • MicroProfile 6.1
        • Jakarta Contexts and Dependency Injection 4.0
        • Jakarta RESTful Web Services 3.1
        • Jakarta JSON Processing 2.1
        • From e7eb6f6a40c5f18e01578c6e5c3ed9cfbd0509af Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Mon, 29 Jan 2024 18:31:10 -0500 Subject: [PATCH 2/5] Update testAppFinish.sh --- scripts/testAppFinish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/testAppFinish.sh b/scripts/testAppFinish.sh index 13d36a5..2fa838c 100755 --- a/scripts/testAppFinish.sh +++ b/scripts/testAppFinish.sh @@ -58,7 +58,7 @@ fi podman stop inventory podman rm inventory -podman run -d --name inventory -e default.http.port=9091 -p 9091:9091 inventory +podman run -d --name inventory -e http.port=9091 -p 9091:9091 inventory sleep 30 From 6a8b4523b15e489a4aec5f7da4cd5ecbb27f1104 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Tue, 20 Feb 2024 09:29:12 -0500 Subject: [PATCH 3/5] update versions --- .github/dependabot.yml | 7 +++++++ .github/workflows/add-pr-to-project.yml | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) 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 From 1b2febbcb3590550e311ac47ee55dd0a62f66ac1 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Mon, 26 Feb 2024 09:08:01 -0500 Subject: [PATCH 4/5] Update README.adoc --- README.adoc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.adoc b/README.adoc index 9d32143..2e2e053 100644 --- a/README.adoc +++ b/README.adoc @@ -253,13 +253,6 @@ include::finish/system/Containerfile-full[] Now that your microservices are packaged and your `Containerfile` files are written, you will build your container images by using the `podman build` command. -Run the following command to download or update to the latest Open Liberty container image: - -[role='command'] -``` -podman pull icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi -``` - Run the following commands to build container images for your application: [role='command'] From 1470ee1963ffc4f7a424d0f04e814c4fb9a8d4a7 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Mon, 26 Feb 2024 09:25:59 -0500 Subject: [PATCH 5/5] Update README.adoc --- README.adoc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.adoc b/README.adoc index 2e2e053..077bd97 100644 --- a/README.adoc +++ b/README.adoc @@ -567,14 +567,12 @@ podman exec -it inventory /opt/ol/wlp/bin/productInfo featureInfo Your list of Liberty features should be similar to the following: ---- jndi-1.0 -servlet-5.0 -cdi-3.0 -concurrent-2.0 -jsonb-2.0 -jsonp-2.0 -mpConfig-3.0 -restfulWS-3.0 -restfulWSClient-3.0 +cdi-4.0 +jsonb-3.0 +jsonp-2.1 +mpConfig-3.1 +restfulWS-3.1 +restfulWSClient-3.1 ---- // static guide instructions: