Deployment
Deployment script waratek-deploy.sh
to handle deployments of Waratek Upgrade. The script can handle the following use cases:
- Fresh install
- Upgrade to the latest version
- Rollback to the previous version
This script allows you to upgrade or rollback the product while retaining your existing config in the conf_x
folder.
info
The deployment script supports *nix only and doesn’t support Windows.
Fresh Install
- Extract
waratek-java-upgrade-22.x.x-bx
under/opt
. - Make the script
waratek-deploy.sh
executable:chmod +x /opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
- Run the script
waratek-deploy.sh
:Example output:/opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
Available Installed Waratek Products:
[1] waratek-java-upgrade-22.x.x-bx
[0] Exit/Stop
Choose the Product Version you wish to use [0 to exit]: 1
You chose 1
[INFO] /opt/waratek-java-upgrade-22.x.x-bx is now the active product. - You should have the
/opt/waratek
symlink if the script runs successfully.
Upgrade
- Extract
waratek-java-upgrade-22.x.x-bx
under/opt
. - Make the script
waratek-deploy.sh
executable:chmod +x /opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
- Run the script
waratek-deploy.sh
:Example output:/opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
Available Installed Waratek Products:
[1] waratek-java-upgrade-22.x.x-bx
[0] Exit/Stop
Choose the Product Version you wish to use [0 to exit]: 1
You chose 1
[INFO] /opt/waratek-java-upgrade-22.x.x-bx is now the active product. - You should have the
/opt/waratek
symlink if the script runs successfully.
Rollback
- Run the script
waratek-deploy.sh
:Example output:/opt/waratek-java-upgrade-22.x.x-bx/scripts/waratek-deploy.sh
Available Installed Waratek Products:
[1] waratek-java-upgrade 19.0.0
[2] waratek-java-upgrade 22.0.0 [active]
[0] Exit/Stop
Choose the Product Version you wish to use [0 to exit]: 1
You chose 1
[INFO] /opt/waratek-java-upgrade-19.x.x-bx is now the active product. - Check the
/opt/waratek-java-upgrade-19.x.x-bx/conf_x/waratek.properties
to see if it has the config synced.