Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Packaging Script is used in the JS7 - Deployment process for on-premises installations in a JS7 - Deployment Area

  • to install JS7 components products such as JOC Cockpit, Controller, Agent in a temporary environment,
  • to create .tar..gz tarball Deployment Packages of the JS7 componentsproducts' installation and configuration directories created during installation,
  • to create a Deployment Script per JS7 componentproduct. The script is later on used to deploy the packages to target hosts.

...

The Packaging Script is provided for download and can be used to automate installation, updates, upgrades and patches of JS7 components products such as JOC Cockpit, Controller and Agents.

  • The script is available for Linux and MacOS® using bash, dash, ksh and zsh POSIX-compatible shells. 
  • The script expects a JS7 - Deployment Descriptor file in .json format that specifies the JS7 componentsproducts, the installation options, configuration options and deployment options.
  • The script creates
    • the run_install_agent.sh, run_install_controller.sh, run_install_joc.sh Installer Wrapper Scripts that parameterize installation of the JS7 componentsproducts,
    • the run_deploy_agent.sh, run_deploy_controller.sh, run_deploy_joc.sh Deployment Scripts that are used to extract Deployment Packages on target hosts.
    • the run_rollout_agent.sh, run_rollout_controller.sh, run_rollout_joc.sh Rollout Scripts that are used to transfer tarball Deployment Packages to target hosts and to execute Deployment Scripts.
    • the js7_import.tar.gz archive for import by JOC Cockpit. The archive includes
      • the JS7 - Deployment Workflow including a calendar and schedule for import with the Configuration view. The objects can be used for automated rollout of Deployment Packages.
      • the Agent configuration of the Deployment Descriptor for import with the Manage Controllers/Agents view.
  • Find details about the directories and files created by the Packaging Script see JS7 - Deployment Area - Directory Layout.
  • The script terminates with exit code 0 to signal success, with exit code 1 for command line argument errors and with other exit codes for non-recoverable errors.
  • The script is intended as a baseline example for customization of JS7 by users and by SOS within the scope of professional services.

...

  • --deploy-desc
    • Specifies the path to the .json file that holds the JS7 - Deployment Descriptor.
    • Deployment Descriptors specify which JS7 components products should be installed and which installation and configuration options should be used.
  • --config-dir
    • Specifies the top-level directory holding configuration files that will be copied to an Agent, Controller or JOC Cockpit installation..
    • By default the ../config directory is used, see JS7 - Deployment Area.
  • --work-dir
    • Specifies the directory that holds the working area to temporarily install JS7 componentsproducts.
    • By default the ../work directory is used, see JS7 - Deployment Area.
  • --archive-dir
    • Specifies the directory to which deployment packages are stored.
    • By default the ../archive directory is used, see JS7 - Deployment Server.
  • --release-dir
    • Specifies the directory in which the .tar.gz installer files for JS7 releases are stored.
    • By default the ../release directory is used, see JS7 - Deployment Area.
  • --script-dir
  • --deploy-agent-id
    • Specifies the name of the Agent that should execute jobs in the Deployment Workflow.
    • This information will be added to the Deployment Workflow and can be changed later on in JOC Cockpit.
  • --agent-id
    • Selects the Agent IDs available from the Deployment Descriptor file to which creation of Deployment Packages should be limited.
    • If more than one Agent ID is specified the Agent IDs are separated by comma.
  • --controller-id
    • Selects the Controller IDs of Controllers available from the Deployment Descriptor file to which creation of Deployment Packages should be limited.
    • If more than one Controller ID is specified the Controller IDs are separated by comma.
    • Note that in a Controller Cluster its members use the same Controller ID, therefore Deployment Packages are created for all members.
  • --joc-instance-id
    • Selects the JOC Cockpit Instance IDs available from the Deployment Descriptor file to which creation of Deployment Packages should be limited. Typically Instance IDs are given as numbers in ascending order.
    • If more than one JOC Cockpit Instance ID is specified the JOC Cockpit Instance IDs are separated by comma, for example --joc-instance-id=1,2.
    • Note that in a JOC Cockpit Cluster its members use the same JOC Cockpit Instance ID, therefore Deployment Packages are created for all members.
  • --workflow-parallelism
    • Specifies the max. number of parallel deployments that should be executed by the Deployment Workflow.
    • By default up to 100 parallel deployments are performed.
  • --workflow-timezone
    • Specifies the time zone that will be applied to the Deployment Workflow. The time zone is relevant should users wish to modify the included deployment job for consideration of JS7 - Admission Times for Jobs.
  • --log-dir
    • If a log directory is specified then the Packaging Script will log information about processing steps to a log file in this directory.
    • File names are created according to the pattern: deployment_package.<deployment-descriptor>.<hostname>.<yyyy>-<MM>-<dd>T<hh>-<mm>-<ss>.log
    • For example: deployment_package.agent-http-20221204.centostest_primary.2022-12-19T20-50-45.log
    • The --log-dir option is forwarded to the installer scripts that will create individual log files in this directory.

...

  • -h | --help
    • Displays usage.
  • --force-sudo
    • Forces sudo to be used for installation and deployment. This is required if an existing installation is owned by different account or if the installation should be performed for a different account.
    • This switch requires sudo permissions for the account that runs the Packaging Script.
  • --dry-run
    • Performs a dry-run that will not create Deployment Packages but will create Installer Wrapper Scripts for JS7 components products only.
    • The wrapper scripts will make use of configuration items specified with the Deployment Descriptor and will parameterize execution of the Installer Scripts, see JS7 - Automated Installation and Update.
  • --keep-work
    • Specifies that temporary installations of JS7 components products in the working area will not be removed but will remain in place to allow checking the installation and configuration options in place.
  • --make-dirs
    • If directories are missing that are indicated with the --home, --backup-dir or --log-dir options then they will be created.
  • --show-logs
    • Displays the log output created by the script if the --log-dir option is used.
    • The --show-logs option is forwarded to the installer scripts that will display individually created log files if the --log-dir option is used.

...