Skip to content

Commit ad2c3b2

Browse files
committed
update to only support V9.5
1 parent 2480687 commit ad2c3b2

File tree

5 files changed

+36
-19
lines changed

5 files changed

+36
-19
lines changed

decisioncenter/businessvalueeditor/README-KUBERNETES.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@ Any file server reachable by Decision Center is suitable.
1212
You can either use an existing one or follow the instructions [here](https://github.com/DecisionsDev/odm-docker-kubernetes/blob/vnext-release/contrib/file-server/README.md#setup-an-httpd-file-server) to deploy a httpd file server in a new pod.
1313

1414
Upload the **businessvalueeditor-1.0.zip** file on the file server :
15-
```
15+
```bash
1616
curl -T businessvalueeditor/businessvalueeditor-source/target/businessvalueeditor-1.0.zip $FILESERVER_URL
1717
```
1818

19+
If all goes well, you should have an output with `201` status that the zip resource is created:
20+
```
21+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
22+
<html>
23+
<head>
24+
<title>201 Created</title>
25+
</head><body>
26+
<h1>Created</h1>
27+
<p>Resource /businessvalueeditor-1.0.zip has been created.</p>
28+
</body></html>
29+
```
30+
1931
## 2. Deploying ODM
2032

2133
To get access to the ODM material, you must have an IBM entitlement key to pull the images from the IBM Cloud Container registry.
@@ -57,7 +69,7 @@ helm repo update
5769
```bash
5870
$ helm search repo ibm-odm-prod
5971
NAME CHART VERSION APP VERSION DESCRIPTION
60-
ibm-helm/ibm-odm-prod 24.0.0 9.0.0.0 IBM Operational Decision Manager
72+
ibm-helm/ibm-odm-prod 25.0.0 9.5.0.0 IBM Operational Decision Manager
6173
```
6274
#### e. Install an IBM Operational Decision Manager release
6375

@@ -75,7 +87,7 @@ Add all the other parameters suitable to your platform in `values.yaml`. Check t
7587
If you are on OCP, you can use this [values.yaml](./businessvalueeditor-source/values.yaml) file by replacing `<FILESERVER_URL>` by the actual URL of the file server hosting the JARs.
7688

7789
```bash
78-
helm install businessvalueeditor-sample ibmcharts/ibm-odm-prod -f values.yaml
90+
helm install businessvalueeditor-sample ibm-helm/ibm-odm-prod -f values.yaml
7991
```
8092

8193
# Using the Sample

decisioncenter/businessvalueeditor/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ To use the sample in Decision Center, you need to build a JAR for [Docker](READM
4747

4848
2. Build the JAR
4949

50-
The instructions below enable to build the JAR using a Docker container featuring Maven and a JDK version 21.
50+
The instructions below allow you to build the JAR using a Docker container featuring Maven and a JDK version 21, compatible for ODM 9.5.
5151

52-
Run the command below in the **decisioncenter/businessvalueeditor/businessvalueeditor-source** directory:
52+
Run the command in the **decisioncenter/businessvalueeditor/businessvalueeditor-source** directory:
5353

5454
```bash
5555
docker run --rm \
@@ -63,11 +63,6 @@ To use the sample in Decision Center, you need to build a JAR for [Docker](READM
6363

6464
The ZIP that will be used on [Kubernetes](README-KUBERNETES.md) is generated in the **target** directory and is named **businessvalueeditor-1.0.zip**.
6565

66-
> *Note*:
67-
> 1. If you are testing against ODM 9.0 or earlier, you need to edit the `odm-container-samples/decisioncenter/businessvalueeditor/businessvalueeditor-source/src/main/java/SampleValueEditorServlet.java` file.
68-
> - Remove the `jakarta.servlet` imports.
69-
> - Uncomment the `javax.servlet` imports and save the file.
70-
> 2. For ODM 9.0, use **maven:3.8.5-openjdk-17**. As for ODM 8.12, use **maven:3.8.1-openjdk-11** instead and **maven:3.8-adoptopenjdk-8** for earlier releases.
7166

7267
### 3) Instructions to use the sample in Decision Center
7368

decisioncenter/businessvalueeditor/businessvalueeditor-source/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,25 @@
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
1318
</buildSpec>
1419
<natures>
20+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
1521
<nature>org.eclipse.jdt.core.javanature</nature>
1622
</natures>
23+
<filteredResources>
24+
<filter>
25+
<id>1744028940722</id>
26+
<name></name>
27+
<type>30</type>
28+
<matcher>
29+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31+
</matcher>
32+
</filter>
33+
</filteredResources>
1734
</projectDescription>

decisioncenter/businessvalueeditor/businessvalueeditor-source/compose-odm-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
odm:
3-
image: icr.io/cpopen/odm-k8s/odm:9.5.0
3+
image: icr.io/cpopen/odm-k8s/odm:9.5.0.0
44
mem_limit: 4G
55
memswap_limit: 4G
66
user: "1001:0"
@@ -12,7 +12,7 @@ services:
1212
- 9453:9453
1313

1414
odm-with-custom-value-editor:
15-
image: icr.io/cpopen/odm-k8s/odm:9.5.0
15+
image: icr.io/cpopen/odm-k8s/odm:9.5.0.0
1616
mem_limit: 4G
1717
memswap_limit: 4G
1818
user: "1001:0"

decisioncenter/businessvalueeditor/businessvalueeditor-source/src/main/java/businessvalueeditor/SampleValueEditorServlet.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
import jakarta.servlet.http.HttpServletRequest;
2222
import jakarta.servlet.http.HttpServletResponse;
2323

24-
/* ODM 9.0 and earlier
25-
import javax.servlet.ServletException;
26-
import javax.servlet.http.HttpServlet;
27-
import javax.servlet.http.HttpServletRequest;
28-
import javax.servlet.http.HttpServletResponse;
29-
*/
30-
3124
import java.io.IOException;
3225
import java.util.Locale;
3326

0 commit comments

Comments
 (0)