Skip to main content

Deployment

Deployment script waratek-deploy.sh to handle deployments of Waratek Upgrade. 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.

info

The deployment script supports *nix only and doesn’t support Windows.

Fresh Install

  1. Extract waratek-java-upgrade-22.x.x-bx under /opt.
  2. Make the script waratek-deploy.sh executable:
    chmod +x /opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
  3. Run the script waratek-deploy.sh:
    /opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
    Example output:
    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.
  4. You should have the /opt/waratek symlink if the script runs successfully.

Upgrade

  1. Extract waratek-java-upgrade-22.x.x-bx under /opt.
  2. Make the script waratek-deploy.sh executable:
    chmod +x /opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
  3. Run the script waratek-deploy.sh:
    /opt/waratek-java-upgrade-22.x.x-bx/script/waratek-deploy.sh
    Example output:
    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.
  4. You should have the /opt/waratek symlink if the script runs successfully.

Rollback

  1. Run the script waratek-deploy.sh:
    /opt/waratek-java-upgrade-22.x.x-bx/scripts/waratek-deploy.sh
    Example output:
    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.
  2. Check the /opt/waratek-java-upgrade-19.x.x-bx/conf_x/waratek.properties to see if it has the config synced.