Skip to content

Commit ed52398

Browse files
committed
updating openshift support for 79 and testing on ocp 46
1 parent 862b3de commit ed52398

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ You can install this project on your own machine or on an OpenShift Container Pl
77

88
Installing on local machine
99
---------------------------
10-
1. [Download and unzip](https://github.com/jbossdemocentral/rhpam7-install-demo/archive/master.zip)
11-
or [clone this repo](https://github.com/jbossdemocentral/rhpam7-install-demo.git).
12-
13-
2. Add products to installs directory, see installs/README for details and links.
10+
1. [Download and unzip](https://github.com/jbossdemocentral/rhpam7-install-demo/archive/master.zip) or [clone this repo](https://github.com/jbossdemocentral/rhpam7-install-demo.git).
11+
12+
2. Add products to installs directory, see [installs/README](installs/README) for details and links.
1413

1514
3. Run 'init.sh' or 'init.bat' file. 'init.bat' must be run with Administrative privileges.
1615

support/openshift/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Project to automate the installation of this product without preconfiguration be
55
You can install this project on an OpenShift Container Platform.
66

77

8-
Intalling on any OpenShift Container Platform (generic)
8+
Installing on any OpenShift Container Platform (generic)
99
-------------------------------------------------------
1010
This demo can be installed on Red Hat OpenShift in various ways. We'll explain the different options provided.
1111

@@ -50,7 +50,7 @@ This installation option will install the Process Automation Manager 7 and Proce
5050
---
5151
**NOTE**
5252

53-
The `with-imagestreams` parameter installs the Process Automation Manager 7 image streams and templates into the project namespace instead of the `openshift` namespace (for which you need admin rights). If you already have the required image-streams and templates installed in your OpenShift environment in the `openshift` namespace, you can omit the `with-imagestreams` from the setup command.
53+
The `without-imagestreams` parameter skips the installation of the Process Automation Manager 7 image streams and templates into the project namespace. If you already have the required image-streams and templates installed in your OpenShift environment in the `openshift` namespace, you can run using the parameter `without-imagestreams` from the setup command.
5454

5555
---
5656

support/openshift/provision.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ param (
55
[string]$user = "",
66
[string]${project-suffix} = "",
77
[string]${run-verify} = "",
8-
[switch]${with-imagestreams} = $false,
8+
[switch]${with-imagestreams} = $true,
99
[string]${pv-capacity} = "512Mi",
1010
[switch]$h = $false,
1111
[switch]$help = $false
@@ -106,9 +106,9 @@ $KIE_SERVER_USER="kieserver"
106106
$KIE_SERVER_PWD="kieserver1!"
107107

108108
# Version Configuration Parameters
109-
$OPENSHIFT_PAM7_TEMPLATES_TAG="7.8.0.GA"
110-
$IMAGE_STREAM_TAG="7.8.0"
111-
$PAM7_VERSION="78"
109+
$OPENSHIFT_PAM7_TEMPLATES_TAG="7.9.0.GA"
110+
$IMAGE_STREAM_TAG="7.9.0"
111+
$PAM7_VERSION="79"
112112

113113

114114
################################################################################
@@ -285,7 +285,7 @@ Function Create-Application() {
285285
+ " -p CREDENTIALS_SECRET=""rhpam-credentials""" `
286286
+ " -p BUSINESS_CENTRAL_HTTPS_SECRET=""businesscentral-app-secret""" `
287287
+ " -p KIE_SERVER_HTTPS_SECRET=""kieserver-app-secret""" `
288-
+ " -p BUSINESS_CENTRAL_MEMORY_LIMIT=""2Gi"""
288+
+ " -p BUSINESS_CENTRAL_MEMORY_LIMIT=""3Gi"""
289289

290290
Call-Oc $argList $True "Error creating application." $True
291291

support/openshift/provision.sh

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function usage() {
3434
echo " --user [username] The admin user for the demo projects. mandatory if logged in as system:admin"
3535
echo " --project-suffix [suffix] Suffix to be added to demo project names e.g. ci-SUFFIX. If empty, user will be used as suffix."
3636
echo " --run-verify Run verify after provisioning"
37-
echo " --with-imagestreams Creates the image streams in the project. Useful when required ImageStreams are not available in the 'openshift' namespace and cannot be provisioned in that 'namespace'."
37+
echo " --without-imagestreams Do not create the image streams in the project. Useful when you already have the ImageStreams available in the 'openshift' namespace."
3838
echo " --pv-capacity [capacity] Capacity of the persistent volume. Defaults to 512Mi as set by the Red Hat Process Automation Manager OpenShift template."
3939
# TODO support --maven-mirror-url
4040
echo
@@ -44,7 +44,7 @@ ARG_USERNAME=
4444
ARG_PROJECT_SUFFIX=
4545
ARG_COMMAND=
4646
ARG_RUN_VERIFY=false
47-
ARG_WITH_IMAGESTREAMS=false
47+
ARG_WITH_IMAGESTREAMS=true
4848
ARG_PV_CAPACITY=512Mi
4949
ARG_DEMO=
5050

@@ -115,8 +115,8 @@ while :; do
115115
--run-verify)
116116
ARG_RUN_VERIFY=true
117117
;;
118-
--with-imagestreams)
119-
ARG_WITH_IMAGESTREAMS=true
118+
--without-imagestreams)
119+
ARG_WITH_IMAGESTREAMS=false
120120
;;
121121
--pv-capacity)
122122
if [ -n "$2" ]; then
@@ -165,9 +165,9 @@ KIE_SERVER_USER=kieserver
165165
KIE_SERVER_PWD=kieserver1!
166166

167167
# Version Configuration Parameters
168-
OPENSHIFT_PAM7_TEMPLATES_TAG=7.8.0.GA
169-
IMAGE_STREAM_TAG=7.8.0
170-
PAM7_VERSION=78
168+
OPENSHIFT_PAM7_TEMPLATES_TAG=7.9.0.GA
169+
IMAGE_STREAM_TAG=7.9.0
170+
PAM7_VERSION=79
171171

172172

173173
################################################################################
@@ -329,13 +329,23 @@ function create_application() {
329329
IMAGE_STREAM_NAMESPACE=${PRJ[0]}
330330
fi
331331

332+
echo_header "Creating Process Automation Manager 7 Application."
333+
echo "new-app --template=rhpam$PAM7_VERSION-authoring "
334+
echo " -p APPLICATION_NAME=\"$ARG_DEMO\" "
335+
echo " -p IMAGE_STREAM_NAMESPACE=\"$IMAGE_STREAM_NAMESPACE\" "
336+
echo " -p CREDENTIALS_SECRET=\"rhpam-credentials\" "
337+
echo " -p BUSINESS_CENTRAL_HTTPS_SECRET=\"businesscentral-app-secret\" "
338+
echo " -p KIE_SERVER_HTTPS_SECRET=\"kieserver-app-secret\" "
339+
echo " -p BUSINESS_CENTRAL_MEMORY_LIMIT=\"3Gi\""
340+
341+
332342
oc new-app --template=rhpam$PAM7_VERSION-authoring \
333343
-p APPLICATION_NAME="$ARG_DEMO" \
334344
-p IMAGE_STREAM_NAMESPACE="$IMAGE_STREAM_NAMESPACE" \
335345
-p CREDENTIALS_SECRET="rhpam-credentials" \
336346
-p BUSINESS_CENTRAL_HTTPS_SECRET="businesscentral-app-secret" \
337347
-p KIE_SERVER_HTTPS_SECRET="kieserver-app-secret" \
338-
-p BUSINESS_CENTRAL_MEMORY_LIMIT="2Gi"
348+
-p BUSINESS_CENTRAL_MEMORY_LIMIT="3Gi"
339349

340350
# Disable the OpenShift Startup Strategy and revert to the old Controller Strategy
341351
oc set env dc/$ARG_DEMO-rhpamcentr KIE_WORKBENCH_CONTROLLER_OPENSHIFT_ENABLED=false

0 commit comments

Comments
 (0)