commit | author | age
|
9e7a28
|
1 |
:scrollbar: |
RJ |
2 |
:data-uri: |
|
3 |
:toc2: |
|
4 |
:linkattrs: |
|
5 |
|
|
6 |
= bxms_decision_mgmt_foundations_lab |
|
7 |
|
|
8 |
|
|
9 |
The following enables an decision manager execution server whose undertow web server is configured to respond to HTTP OPTION requests with CORS filters |
|
10 |
|
|
11 |
. Initialize the template: |
|
12 |
+ |
|
13 |
----- |
|
14 |
$ oc create -f resources/rhdm7-full-ng.yaml |
|
15 |
----- |
|
16 |
|
|
17 |
. Initialize OCP resources from the project template: |
|
18 |
+ |
|
19 |
----- |
|
20 |
$ oc new-app --name=dm-demo --template=rhdm7-full-ng \ |
|
21 |
-p RHT_IMAGE_STREAM_NAMESPACE=openshift \ |
|
22 |
-p KIE_ADMIN_PWD=test1234! \ |
|
23 |
-p MAVEN_REPO_PASSWORD=test1234! \ |
|
24 |
-p CLUSTER=apps.dev37.openshift.opentlc.com \ |
|
25 |
-p APPLICATION_NAME=gpte > /tmp/gpte-dm-demo.txt |
|
26 |
----- |
|
27 |
|
|
28 |
. Resume DCs that are initially paused by default: |
|
29 |
+ |
|
30 |
----- |
|
31 |
$ oc rollout resume dc/gpte-rhdmcentr |
|
32 |
$ oc rollout resume dc/gpte-kieserver |
|
33 |
$ oc rollout resume dc/gpte-ng-dmf |
|
34 |
------ |
|
35 |
|
|
36 |
. User IDs / passwords |
|
37 |
.. *Business Central* : adminUser / admin |
|
38 |
.. *kie-server* : adminUser / admin |
|
39 |
.. *Mortgage Loan Decision Test* : |
|
40 |
|
|
41 |
. Routes |
|
42 |
.. Kie Server documentation: |
|
43 |
+ |
|
44 |
----- |
|
45 |
$ echo -en "\n\nhttps://`oc get route secure-gpte-kieserver --template "{{.spec.host}}"`:443/docs/\n\n" |
|
46 |
----- |
|
47 |
.. KIE Server status: |
|
48 |
+ |
|
49 |
----- |
|
50 |
$ echo -en "\n\nhttps://`oc get route secure-gpte-kieserver --template "{{.spec.host}}"`:443/services/rest/server/\n\n" |
|
51 |
----- |
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
=== Additional Notes |
|
56 |
|
|
57 |
. (Optional) Delete all OCP resources associated with this project: |
|
58 |
+ |
|
59 |
----- |
|
60 |
$ oc delete all -l app=dm-demo |
|
61 |
$ oc delete sa/bpmsuite-service-account |
|
62 |
$ oc delete secret/bpmsuite-app-secret |
|
63 |
$ oc delete template/ng-mortgage-bpmsuite70-full-mysql |
|
64 |
----- |
|
65 |
|
|
66 |
. (Optional) Instantiate a container directly from bpms7 kieserver image: |
|
67 |
+ |
|
68 |
----- |
|
69 |
$ oc new-app bpmsuite70-executionserver-openshift:1.0~https://github.com/gpe-mw-training/bxms_decision_mgmt_foundations_lab.git \ |
|
70 |
--context-dir=exec-server \ |
|
71 |
--name=exec-test |
|
72 |
----- |
|
73 |
|
|
74 |
. (Optional) Build BCs in OpenShift namespace |
|
75 |
+ |
|
76 |
----- |
|
77 |
$ oc process \ |
|
78 |
-p RHT_IMAGE_STREAM_NAMESPACE=openshift \ |
|
79 |
-p APPLICATION_NAME=gpte \ |
|
80 |
-f resources/rhdm7-bc.yaml \ |
|
81 |
| oc create -f - -n openshift --as=system:admin |
|
82 |
|
|
83 |
$ oc create -f resources/rhdm7-no-bc-ng.yaml |
|
84 |
|
|
85 |
$ oc new-app --name=dm-demo --template=rhdm7-no-bc-ng \ |
|
86 |
-p RHT_IMAGE_STREAM_NAMESPACE=openshift \ |
|
87 |
-p GPTE_IMAGE_STREAM_NAMESPACE=openshift \ |
|
88 |
-p KIE_ADMIN_PWD=test1234! \ |
|
89 |
-p MAVEN_REPO_PASSWORD=test1234! \ |
|
90 |
-p CLUSTER=apps.dev37.openshift.opentlc.com \ |
|
91 |
-p APPLICATION_NAME=gpte > /tmp/gpte-dm-demo.txt |
|
92 |
----- |
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
=== Deprecated |
|
98 |
|
|
99 |
. Create a keystore for execution server |
|
100 |
+ |
|
101 |
----- |
|
102 |
$ keytool -genkey \ |
|
103 |
-keyalg RSA \ |
|
104 |
-alias selfsigned \ |
|
105 |
-keystore /tmp/keystore.jks \ |
|
106 |
-validity 360 \ |
|
107 |
-keysize 2048 \ |
|
108 |
-alias jboss \ |
|
109 |
-storepass rhtgpte \ |
|
110 |
-keypass rhtgpte \ |
|
111 |
-dname "CN=mw,OU=gpte,O=redhat.com,L=Raleigh,S=NC,C=US" |
|
112 |
----- |
|
113 |
|
|
114 |
. Configure a service account that is loaded with the previously created secret: |
|
115 |
+ |
|
116 |
----- |
|
117 |
$ oc create serviceaccount bpmsuite-service-account |
|
118 |
$ oc policy add-role-to-user view system:serviceaccount:jb-bpms7:bpmsuite-service-account |
|
119 |
$ oc secrets new bpmsuite-app-secret /tmp/keystore.jks |
|
120 |
$ oc secrets link bpmsuite-service-account bpmsuite-app-secret |
|
121 |
----- |
|
122 |
|
|
123 |
. Create a configmap from the JBoss CLI that enables the undertow component of the execution server with CORS: |
|
124 |
The project template mounts a volume from this configmap to the execution server. |
|
125 |
+ |
|
126 |
----- |
|
127 |
$ oc create configmap undertow-cors --from-file=resources/undertow-cors.cli |
|
128 |
----- |
|
129 |
|