Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pam712 upgrade #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 45 additions & 17 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
#!/bin/sh
#!/bin/sh
DEMO="Install Demo"
AUTHORS="Red Hat"
PROJECT="[email protected]:jbossdemocentral/rhpam7-install-demo.git"
PRODUCT="Red Hat Process Automation Manager"
JBOSS_HOME=./target/jboss-eap-7.3
JBOSS_HOME=./target/jboss-eap-7.4
SERVER_DIR=$JBOSS_HOME/standalone/deployments
SERVER_CONF=$JBOSS_HOME/standalone/configuration/
SERVER_BIN=$JBOSS_HOME/bin
SRC_DIR=./installs
SUPPORT_DIR=./support
PRJ_DIR=./projects
VERSION_EAP=7.3.0
VERSION=7.11.0
VERSION_EAP=7.4.0
VERSION=7.12.1
EAP=jboss-eap-$VERSION_EAP.zip
RHPAM=rhpam-$VERSION-business-central-eap7-deployable.zip
RHPAM_KIE_SERVER=rhpam-$VERSION-kie-server-ee8.zip
RHPAM_ADDONS=rhpam-$VERSION-add-ons.zip
RHPAM_CASE=rhpam-$VERSION-case-mgmt-showcase-eap7-deployable.zip
RHPAM_UPDATE=rhpam-$VERSION-update

# wipe screen.
clear
clear

echo
echo "###################################################################"
echo "## ##"
echo "## ##"
echo "## Setting up the ##"
echo "## ##"
echo "## ##"
echo "## #### ##### #### # # ### ##### ##"
echo "## # # # # # # # # # # ##"
echo "## #### ### # # ##### ##### # ##"
Expand All @@ -49,15 +50,15 @@ echo "## ## ## # # ## # # # # # # # ##"
echo "## # # # ##### # # # ##### # ## ### #### ##"
echo "## # # # # # ## # # # # # # # ##"
echo "## # # # # # # # # ##### ##### # # ##"
echo "## ##"
echo "## brought to you by, ${AUTHORS} ##"
echo "## ##"
echo "## ##"
echo "## brought to you by, ${AUTHORS} ##"
echo "## ##"
echo "## ${PROJECT} ##"
echo "## ##"
echo "## ##"
echo "###################################################################"
echo

# make some checks first before proceeding.
# make some checks first before proceeding.
if [ -r $SUPPORT_DIR ] || [ -L $SUPPORT_DIR ]; then
echo "Support dir is presented..."
echo
Expand Down Expand Up @@ -138,7 +139,7 @@ fi

echo "Red Hat Process Automation Manager Kie Server installation running now..."
echo
unzip -qo $SRC_DIR/$RHPAM_KIE_SERVER -d $JBOSS_HOME/standalone/deployments
unzip -qo $SRC_DIR/$RHPAM_KIE_SERVER -d $JBOSS_HOME/standalone/deployments

if [ $? -ne 0 ]; then
echo
Expand All @@ -161,9 +162,19 @@ if [ $? -ne 0 ]; then
exit
fi

echo " - setting up standalone-full.xml configuration adjustments..."
echo
mv $SERVER_CONF/standalone.xml $SERVER_CONF/standalone.xml.bak
cp $SUPPORT_DIR/standalone-full.xml $SERVER_CONF/standalone.xml

# Set deployment Case Management.
touch $JBOSS_HOME/standalone/deployments/rhpam-case-mgmt-showcase.war.dodeploy

# User creation docs: https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.12/html/installing_and_configuring_red_hat_process_automation_manager/assembly_installing-on-eap-deployable_install-on-eap#eap-users-create-proc_install-on-eap
#echo " - enabling demo accounts role setup..."
#$JBOSS_HOME/bin/elytron-tool.sh filesystem-realm --users-file application-users.properties --roles-file application-roles.properties --output-location kie-fs-realm-users
#$JBOSS_HOME/bin/jboss-cli.sh --file=$SUPPORT_DIR/user_data.cli

echo " - enabling demo accounts role setup..."
echo
echo " - adding user 'pamAdmin' with password 'redhatpam1!'..."
Expand All @@ -190,9 +201,6 @@ echo " - adding user 'caseSupplier' with password 'redhatpam1!'..."
echo
$JBOSS_HOME/bin/add-user.sh -a -r ApplicationRealm -u caseSupplier -p redhatpam1! -ro user,supplier --silent

echo " - setting up standalone.xml configuration adjustments..."
echo
cp $SUPPORT_DIR/standalone-full.xml $SERVER_CONF/standalone.xml

echo " - setup email task notification users..."
echo
Expand All @@ -215,7 +223,7 @@ chmod u+x $JBOSS_HOME/bin/standalone.sh

echo "=============================================================="
echo "= ="
echo "= $PRODUCT $VERSION setup complete. ="
echo "= $PRODUCT $VERSION setup complete. ="
echo "= ="
echo "= Start $PRODUCT with: ="
echo "= ="
Expand All @@ -239,3 +247,23 @@ echo "= ="
echo "=============================================================="
echo

# echo "Red Hat Process Automation Manager update and patch process running now..."
# echo
# unzip -qo $SRC_DIR/$RHPAM_UPDATE.zip -d target

# if [ $? -ne 0 ]; then
# echo
# echo Error occurred during Red Hat Process Manager Update installation!
# exit
# fi

# cd ./target/$RHPAM_UPDATE

# echo " - patching Business Central..."
# ./apply-updates.sh ../jboss-eap-7.4/standalone/deployments/business-central.war rhpam-business-central-eap7-deployable

# echo " - patching KIE Server..."
# ./apply-updates.sh ../jboss-eap-7.4/standalone/deployments/kie-server.war rhpam-kie-server-ee8

# cd ../../
# rm -r target/$RHPAM_UPDATE
13 changes: 0 additions & 13 deletions installs/README

This file was deleted.

9 changes: 9 additions & 0 deletions installs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Download the following from https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=appplatform&downloadType=distributions&version=7.4

* Red Hat Enterprise Application Platform archive (jboss-eap-7.4.0.zip)

Download the following from https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=rhpam&downloadType=distributions

* Red Hat Process Automation Manager 7.12.1 Business Central Deployable for EAP 7 (rhpam-7.12.1-business-central-eap7-deployable.zip)
* Red Hat Process Automation Manager 7.12.1 Process Server for All Supported EE8 Containers (rhpam-7.12.1-kie-server-ee8.zip)
* Red Hat Process Automation Manager 7.12.1 Add-Ons (rhpam-7.12.1-add-ons.zip)
File renamed without changes.
Loading