Deployment
Deployment script waratek-deploy.sh
can handle deployments of the Waratek Agent. 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.
The deployment script supports *nix only and doesn’t support Windows.
Fresh Install
- Extract
waratek-java-agent-x.y.z-bN
under/opt
. - Make the script
waratek-deploy.sh
executable.
chmod +x /opt/waratek-java-agent-x.y.z-bN/script/waratek-deploy.sh
- Run the script
waratek-deploy.sh
.
/opt/waratek-java-agent-x.y.z-bN/script/waratek-deploy.sh
Available Installed Waratek Products:
[1] waratek-java-agent-x.y.z-bN
[0] Exit/Stop
Choose the Product Version you wish to use [0 to exit]: 1
You chose 1
[INFO] /opt/waratek-java-agent-x.y.z-bN is now the active product.
- You should have the
/opt/waratek
symlink if the script runs successfully.
Upgrade from 19.x.x to latest
- Extract
waratek-java-agent-x.y.z-bN
under/opt
. - Make the script
waratek-deploy.sh
executable.
chmod +x /opt/waratek-java-agent-x.y.z-bN/script/waratek-deploy.sh
- Run the script
waratek-deploy.sh
.
/opt/waratek-java-agent-x.y.z-bN/scripts$ sudo ./waratek-deploy.sh
Available Installed Waratek Products:
[1] waratek-java-secure 19.0.0 [active]
[2] waratek-java-agent-x.y.z
[0] Exit/Stop
Choose the Product Version you wish to use [0 to exit]: 2
You chose 2
[INFO] /opt/waratek-java-agent-x.y.z-bN is now the active product.
- Check the
/opt/waratek-java-agent-x.y.z-bN/conf_x/waratek.properties
to see if it has the config synced.
Rollback to 19.x.x
- Run the script
waratek-deploy.sh
.
/opt/waratek-java-agent-x.y.z-bN/scripts$ sudo ./waratek-deploy.sh
Available Installed Waratek Products:
[1] waratek-java-secure 19.0.0
[2] waratek-java-agent-x.y.z-bN [active]
[0] Exit/Stop
Choose the Product Version you wish to use [0 to exit]: 1
You chose 1
[INFO] /opt/waratek-java-secure-19.x.x-bN is now the active product.
- Check the
/opt/waratek-java-secure-19.x.x-bN/conf_x/waratek.properties
to see if it has the config synced.
Check the Waratek Agent Version
- Go to
/opt/waratek-java-agent-x.y.z-bN/agent
. - Run the following command.
unzip -q -c core.jar META-INF/MANIFEST.MF
- You should get the Waratek Agent Version like the following.
Manifest-Version: 1.0
Time-Zone: Etc/UCT
Implementation-Title: Waratek
Implementation-Version: xxxxxx
Built-By: jenkins
Waratek-Version: xxxxxxx-xxxxx-xxx-xxxxxxxxxxx
Created-By: x.x.x_xx (Sun Microsystems Inc.)
Implementation-URL: http://www.waratek.com
Product-Type: Release
Creation-Timestamp: xxxx-xx-xx_xx-xx-xx
Jarfile-Name: core.jar
Implementation-Vendor: Waratek Limited
ARMR-Language-Versions-Supported: x.x,x.x...,x.x