Skip to content

Commit

Permalink
Merge pull request #193 from OpenLiberty/staging
Browse files Browse the repository at this point in the history
Merge staging to prod: Update to MP6.1
  • Loading branch information
gkwan-ibm authored Feb 29, 2024
2 parents 6feb5c2 + ddd1972 commit 2bcd048
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 40 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 50
18 changes: 18 additions & 0 deletions .github/workflows/add-pr-to-project.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
project-url: https://github.com/orgs/OpenLiberty/projects/26
github-token: ${{ secrets.ADMIN_BACKLOG }}
labeled: dependencies
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -12,7 +12,7 @@
:page-releasedate: 2019-07-23
:page-description: Learn how to create, use and cache HTTP session data.
:guide-author: Open Liberty
:page-tags: ['Docker']
:page-tags: ['docker']
:page-related-guides: ['rest-intro', 'microprofile-openapi', 'kubernetes-intro']
:page-permalink: /guides/{projectid}
:common-includes: https://raw.githubusercontent.com/OpenLiberty/guides-common/prod
Expand Down Expand Up @@ -255,7 +255,7 @@ https://docs.hazelcast.org/docs/latest/manual/html-single/#understanding-configu
[role="command"]
include::{common-includes}/devmode-lmp33-start.adoc[]

Point your browser to the link:http://localhost:9080/openapi/ui/[^] URL.
Point your browser to the link:http://localhost:9090/openapi/ui/[^] URL.
This URL displays the available REST endpoints.

First, make a POST request to the `/cart/{item}&{price}` endpoint. To make this request, expand the POST
Expand Down
2 changes: 1 addition & 1 deletion finish/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ LABEL \
COPY --chown=1001:0 src/main/liberty/config /config/
RUN features.sh
COPY --chown=1001:0 target/guide-sessions.war /config/apps
COPY --chown=1001:0 target/liberty/wlp/usr/shared/resources/hazelcast-5.3.0.jar /opt/ol/wlp/usr/shared/resources
COPY --chown=1001:0 target/liberty/wlp/usr/shared/resources/hazelcast-5.3.6.jar /opt/ol/wlp/usr/shared/resources

RUN configure.sh
6 changes: 3 additions & 3 deletions finish/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
image: cart-app:1.0-SNAPSHOT
ports:
- name: http
containerPort: 9080
containerPort: 9090
- name: hazelcast
containerPort: 5701
---
Expand All @@ -33,6 +33,6 @@ spec:
app: cart
ports:
- protocol: TCP
port: 9080
targetPort: 9080
port: 9090
targetPort: 9090
nodePort: 31000
24 changes: 12 additions & 12 deletions finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<maven.compiler.target>11</maven.compiler.target>
<!-- Liberty configuration -->
<hazelcast.path>${user.home}/.m2/repository/com/hazelcast/hazelcast/</hazelcast.path>
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
<liberty.var.http.port>9090</liberty.var.http.port>
<liberty.var.https.port>9453</liberty.var.https.port>
<liberty.var.app.context.root>${project.artifactId}</liberty.var.app.context.root>
</properties>

Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>6.0</version>
<version>6.1</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand All @@ -38,27 +38,27 @@
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>5.3.0</version>
<version>5.3.6</version>
<scope>test</scope>
</dependency>

<!-- For tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.2</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>6.2.3.Final</version>
<version>6.2.7.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-json-binding-provider</artifactId>
<version>6.2.3.Final</version>
<version>6.2.7.Final</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -82,7 +82,7 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.8.2</version>
<version>3.10</version>
<!-- tag::configuration[] -->
<configuration>
<!-- Copy the hazelcast library -->
Expand All @@ -92,7 +92,7 @@
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>5.3.0</version>
<version>5.3.6</version>
</dependency>
</dependencyGroup>
</copyDependencies>
Expand All @@ -104,17 +104,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.5</version>
</plugin>

<!-- Plugin to run functional tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.5</version>
<configuration>
<systemPropertyVariables>
<http.port>${liberty.var.default.http.port}</http.port>
<http.port>${liberty.var.http.port}</http.port>
</systemPropertyVariables>
</configuration>
</plugin>
Expand Down
10 changes: 5 additions & 5 deletions finish/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- tag::copyright[] -->
<!--
Copyright (c) 2019, 2023 IBM Corporation and others.
Copyright (c) 2019, 2024 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
Expand All @@ -22,11 +22,11 @@
<feature>mpOpenAPI-3.1</feature>
</featureManager>

<variable name="default.http.port" defaultValue="9080"/>
<variable name="default.https.port" defaultValue="9443"/>
<variable name="http.port" defaultValue="9090"/>
<variable name="https.port" defaultValue="9453"/>
<variable name="app.context.root" defaultValue="guide-sessions"/>

<httpEndpoint httpPort="${default.http.port}" httpsPort="${default.https.port}"
<httpEndpoint httpPort="${http.port}" httpsPort="${https.port}"
id="defaultHttpEndpoint" host="*" />
<!-- tag::httpSessionCache[] -->
<httpSessionCache libraryRef="jCacheVendorLib"
Expand All @@ -35,7 +35,7 @@
<!-- tag::library[] -->
<library id="jCacheVendorLib">
<!-- tag::hazelcastjar[] -->
<file name="${shared.resource.dir}/hazelcast-5.3.0.jar" />
<file name="${shared.resource.dir}/hazelcast-5.3.6.jar" />
<!-- end::hazelcastjar[] -->
</library>
<!-- end::library[] -->
Expand Down
2 changes: 1 addition & 1 deletion start/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ LABEL \
COPY --chown=1001:0 src/main/liberty/config /config/
RUN features.sh
COPY --chown=1001:0 target/guide-sessions.war /config/apps
COPY --chown=1001:0 target/liberty/wlp/usr/shared/resources/hazelcast-5.3.0.jar /opt/ol/wlp/usr/shared/resources
COPY --chown=1001:0 target/liberty/wlp/usr/shared/resources/hazelcast-5.3.6.jar /opt/ol/wlp/usr/shared/resources

RUN configure.sh
6 changes: 3 additions & 3 deletions start/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
image: cart-app:1.0-SNAPSHOT
ports:
- name: http
containerPort: 9080
containerPort: 9090
- name: hazelcast
containerPort: 5701
---
Expand All @@ -31,6 +31,6 @@ spec:
app: cart
ports:
- protocol: TCP
port: 9080
targetPort: 9080
port: 9090
targetPort: 9090
nodePort: 31000
24 changes: 12 additions & 12 deletions start/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<maven.compiler.target>11</maven.compiler.target>
<!-- Liberty configuration -->
<hazelcast.path>${user.home}/.m2/repository/com/hazelcast/hazelcast/</hazelcast.path>
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
<liberty.var.http.port>9090</liberty.var.http.port>
<liberty.var.https.port>9453</liberty.var.https.port>
<liberty.var.app.context.root>${project.artifactId}</liberty.var.app.context.root>
</properties>

Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>6.0</version>
<version>6.1</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand All @@ -38,27 +38,27 @@
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>5.3.0</version>
<version>5.3.6</version>
<scope>test</scope>
</dependency>

<!-- For tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.2</version>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>6.2.3.Final</version>
<version>6.2.7.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-json-binding-provider</artifactId>
<version>6.2.3.Final</version>
<version>6.2.7.Final</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -83,7 +83,7 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.8.2</version>
<version>3.10</version>
<configuration>
<!-- Copy the hazelcast library -->
<copyDependencies>
Expand All @@ -92,7 +92,7 @@
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>5.3.0</version>
<version>5.3.6</version>
</dependency>
</dependencyGroup>
</copyDependencies>
Expand All @@ -103,17 +103,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.5</version>
</plugin>

<!-- Plugin to run functional tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0</version>
<version>3.2.5</version>
<configuration>
<systemPropertyVariables>
<http.port>${liberty.var.default.http.port}</http.port>
<http.port>${liberty.var.http.port}</http.port>
</systemPropertyVariables>
</configuration>
</plugin>
Expand Down

0 comments on commit 2bcd048

Please sign in to comment.