...
 
Commits (2)
  • Gonzalo Muñoz's avatar
    Update init.bat with following changes: · ce705fd3
    Gonzalo Muñoz authored
    - Missing quotes in this line: if exist "%SRC_DIR%\%RHDM%"
    - Invocations for add-user.bat requires to add "call" in front of these commands: CALL %JBOSS_HOME%\bin\add-user.bat
    - There's a typo also for adding "kieserver" user, it should be "-a" and "ApplicationRealm": add-user.sh -a -r ApplicationRealm. If not, error 401 is obtained while syncing with controller default-kie-server.
    ce705fd3
  • Eric D. Schabell's avatar
    Merge branch 'patch-1' into 'master' · c9b8b2b3
    Eric D. Schabell authored
    Update init.bat with following changes:
    
    See merge request !1
    c9b8b2b3
@ECHO OFF
setlocal
set PROJECT_HOME=%~dp0
set DEMO=Red Hat Decision Manager Install Demo
set AUTHORS=Andrew Block, Eric D. Schabell
set PROJECT=git@github.com:bpmworkshop/rhdm-install-demo.git
set PRODUCT=Red Hat Decision Manaager
@ECHO OFF
setlocal
set PROJECT_HOME=%~dp0
set DEMO=Red Hat Decision Manager Install Demo
set AUTHORS=Andrew Block, Eric D. Schabell
set PROJECT=git@github.com:bpmworkshop/rhdm-install-demo.git
set PRODUCT=Red Hat Decision Manaager
set JBOSS_HOME=%PROJECT_HOME%\target\jboss-eap-7.1
set SERVER_DIR=%JBOSS_HOME%\standalone\deployments\
set SERVER_CONF=%JBOSS_HOME%\standalone\configuration\
set SERVER_BIN=%JBOSS_HOME%\bin
set SRC_DIR=%PROJECT_HOME%installs
set SUPPORT_DIR=%PROJECT_HOME%\support
set PRJ_DIR=%PROJECT_HOME%\projects
set SERVER_DIR=%JBOSS_HOME%\standalone\deployments\
set SERVER_CONF=%JBOSS_HOME%\standalone\configuration\
set SERVER_BIN=%JBOSS_HOME%\bin
set SRC_DIR=%PROJECT_HOME%installs
set SUPPORT_DIR=%PROJECT_HOME%\support
set PRJ_DIR=%PROJECT_HOME%\projects
set VERSION=7.1.0
set EAP=jboss-eap-%VERSION%.zip
set RHDM=rhdm-%VERSION%-decision-central-eap7-deployable.zip
set KIESERVER=rhdm-%VERSION%-kie-server-ee7.zip
REM wipe screen.
cls
echo.
REM wipe screen.
cls
echo.
echo #############################################################
echo ## ##
echo ## Setting up the %DEMO% ##
echo ## Setting up the %DEMO% ##
echo ## ##
echo ## ##
echo ## #### ##### #### # # ### ##### ##
......@@ -47,14 +47,14 @@ echo ## # # # # # # # # ##### ##### # # ##
echo ## ##
echo ## ##
echo ## brought to you by, ##
echo ## %AUTHORS% ##
echo ## %AUTHORS% ##
echo ## ##
echo ## %PROJECT% ##
echo ## %PROJECT% ##
echo ## ##
echo #############################################################
echo.
REM make some checks first before proceeding.
echo.
REM make some checks first before proceeding.
if exist "%SRC_DIR%\%EAP%" (
echo Product JBoss EAP sources are present...
echo.
......@@ -65,7 +65,7 @@ if exist "%SRC_DIR%\%EAP%" (
GOTO :EOF
)
if exist %SRC_DIR%\%RHDM% (
if exist "%SRC_DIR%\%RHDM%" (
echo Product Red Hat Decision Manager patches are present...
echo.
) else (
......@@ -75,16 +75,16 @@ if exist %SRC_DIR%\%RHDM% (
GOTO :EOF
)
if exist "%SRC_DIR%\%KIESERVER%" (
echo Product Red Hat Decision Manager Kie Server sources are present...
echo.
) else (
if exist "%SRC_DIR%\%KIESERVER%" (
echo Product Red Hat Decision Manager Kie Server sources are present...
echo.
) else (
echo Need to download %KIESERVER% from https://developers.redhat.com/products/red-hat-decision-manager/download
echo and place it in the %SRC_DIR% directory to proceed...
echo.
GOTO :EOF
)
echo and place it in the %SRC_DIR% directory to proceed...
echo.
GOTO :EOF
)
REM Remove the old JBoss instance, if it exists.
if exist "%JBOSS_HOME%" (
echo - removing existing JBoss product install...
......@@ -93,7 +93,7 @@ if exist "%JBOSS_HOME%" (
rmdir /s /q "%JBOSS_HOME%"
)
REM Installation.
echo JBoss EAP installation running now...
echo.
......@@ -109,48 +109,48 @@ if not "%ERRORLEVEL%" == "0" (
call set NOPAUSE=true
echo.
echo Red Hat Decision Manager installation running now...
echo.
echo Red Hat Decision Manager installation running now...
echo.
cscript /nologo %SUPPORT_DIR%\unzip.vbs %SRC_DIR%\%RHDM% %PROJECT_HOME%\target
if not "%ERRORLEVEL%" == "0" (
echo Error Occurred During %PRODUCT% Installation!
echo.
GOTO :EOF
)
if not "%ERRORLEVEL%" == "0" (
echo Error Occurred During %PRODUCT% Installation!
echo.
GOTO :EOF
)
echo.
echo Red Hat Decision Manager Kie Servier installation running now...
echo.
echo Red Hat Decision Manager Kie Servier installation running now...
echo.
cscript /nologo %SUPPORT_DIR%\unzip.vbs %SRC_DIR%\%KIESERVER% %JBOSS_HOME%\standalone\deployments
if not "%ERRORLEVEL%" == "0" (
echo Error Occurred During Red Hat Decision Manager Kie Server installation!
echo.
GOTO :EOF
)
if not "%ERRORLEVEL%" == "0" (
echo Error Occurred During Red Hat Decision Manager Kie Server installation!
echo.
GOTO :EOF
)
REM Set deployment Kie Server.
echo. 2>%JBOSS_HOME%/standalone/deployments/kie-server.war.dodeploy
echo - enabling demo accounts role setup...
echo.
%JBOSS_HOME%\bin\add-user.bat -a -r ApplicationRealm -u erics -p redhatdm1! -ro analyst,admin,manager,user,kie-server,kiemgmt,rest-all --silent
echo.
call %JBOSS_HOME%\bin\add-user.bat -a -r ApplicationRealm -u erics -p redhatdm1! -ro analyst,admin,manager,user,kie-server,kiemgmt,rest-all --silent
echo - User 'erics' password 'redhatdm1!' setup...
echo.
%JBOSS_HOME%\bin\add-user.bat a -r ManagementRealm -u kieserver -p kieserver1! -ro kie-server --silent
echo - Management user 'keiserver' password 'kieserver1!' setup...
call %JBOSS_HOME%\bin\add-user.bat -a -r ApplicationRealm -u kieserver -p kieserver1! -ro kie-server --silent
echo - Management user 'kieserver' password 'kieserver1!' setup...
echo.
echo - setting up standalone.xml configuration adjustments...
echo.
echo - setting up standalone.xml configuration adjustments...
echo.
xcopy /Y /Q "%SUPPORT_DIR%\standalone-full.xml" "%SERVER_CONF%\standalone.xml"
echo.
xcopy /Y /Q "%SUPPORT_DIR%\standalone-full.xml" "%SERVER_CONF%\standalone.xml"
echo.
echo - setup email task notification users...
echo.
xcopy /Y /Q "%SUPPORT_DIR%\userinfo.properties" "%SERVER_DIR%\decision-central.war\WEB-INF\classes\"
echo ===========================================================================
echo = =
echo = %DEMO% %VERSION% setup complete. =
......@@ -166,5 +166,5 @@ echo = =
echo = [ u:erics / p:redhatdm1! ] =
echo = =
echo ===========================================================================
echo.
echo.