Skip to main content
Version: 25.2.0

Deployment

Deployment script waratek-deploy.sh can handle deployments of the Waratek Agent. The script can handle the following use cases:

  1. Fresh install
  2. Upgrade to the latest version
  3. 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

  1. Extract waratek-java-agent-x.y.z-bN under /opt.
  2. Make the script waratek-deploy.sh executable.
chmod +x /opt/waratek-java-agent-x.y.z-bN/script/waratek-deploy.sh
  1. 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.
  1. You should have the /opt/waratek symlink if the script runs successfully.

Upgrade from 19.x.x to latest

  1. Extract waratek-java-agent-x.y.z-bN under /opt.
  2. Make the script waratek-deploy.sh executable.
chmod +x /opt/waratek-java-agent-x.y.z-bN/script/waratek-deploy.sh
  1. 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.
  1. 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

  1. 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.
  1. 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

  1. Go to /opt/waratek-java-agent-x.y.z-bN/agent.
  2. Run the following command.
unzip -q -c core.jar META-INF/MANIFEST.MF
  1. 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