The Konveyor CLI Deployment tool simplifies deployment and preparation for the Konveyor CLI. It supports end-to-end deployment, both for containerized images and containerless CLI environments.
To view all available options, run the following command:
./install_cli.py --help./install_cli.py --help
usage: install_cli.py [-h] [--mta_version MTA_VERSION] [--build BUILD] [--upstream UPSTREAM] [--image_output_file IMAGE_OUTPUT_FILE] [--dependency_file DEPENDENCY_FILE] [--ip_address IP_ADDRESS] [--os OS]
[--platform PLATFORM]
Deploys and prepares MTA CLI either locally or remotely.
options:
-h, --help show this help message and exit
--mta_version MTA_VERSION
The MTA version to use.
--build BUILD Build number to use
--upstream UPSTREAM Optional, forces latest upstream deployment instead of downstream
--image_output_file IMAGE_OUTPUT_FILE
Optional, the file containing related_images for bundle, generated by using get-image-build-details.py
--dependency_file DEPENDENCY_FILE
Optional, the file containing dependencies to be unpacked in `~/.kantra`
--ip_address IP_ADDRESS
Optional, IP address of target server where MTA CLI will be deployed
--os OS Optional for remote deployment, OS of remote host (windows/linux/darwin)
--platform PLATFORM Optional for remote deployment, platform of remote host (amd64/arm64)
Basic command to deploy the Downstream (D/S) CLI:
./install_cli.py --mta_version 7.2.0 --build 46Basic command to deploy the Upstream (U/S) CLI:
./install_cli.py --upstream trueBasic command to pull and configure kantra-cli-tests (https://github.com/konveyor/kantra-cli-tests):
./prepare_remote_host.py --ip_address X.X.X.XImportant:
System variables GIT_USERNAME and GIT_PASSWORD should be present and should have respective values assigned in order to run all tests properly
You need to create a config.json file before running the tool. A template file, config.json.example, is included for reference.
{
"misc_downstream_path": "YOUR_PATH/misc-downstream/",
"extract_binary": "mta-cli-binary-extract.py",
"get_images_output": "get-image-build-details.py",
"bundle": "--bundle mta-operator-bundle-container-",
"no_brew": "--no-brew",
"ssh_user": "",
"ssh_key": ""
}misc_downstream_path
- Path to the cloned
misc_downstreamtool, used to generate dependencies and image lists. - This parameter can be omitted if you plan to use a pre-generated image list file and dependencies archive.
- This parameter can be omitted if you install the U/S CLI.
extract_binary
- Name of the script used to extract the binary.
- This parameter can be omitted if you plan to use a pre-generated dependencies archive.
- This parameter can be omitted if you install the U/S CLI.
get_images_output
- Script to generate the
related_imagesfile for the bundle. - This parameter can be omitted if you plan to use a pre-generated image list file.
- This parameter can be omitted if you install the U/S CLI.
bundle
- Specifies the bundle flag for the MTA operator bundle container.
- This parameter can be omitted if you plan to use a pre-generated image list file and dependencies archive.
- This parameter can be omitted if you install the U/S CLI.
no_brew
- Optional flag to skip the use of Brew.
- This parameter can be omitted if you plan to use a pre-generated image list file and dependencies archive.
- This parameter can be omitted if you install the U/S CLI.
ssh_user
- Username for SSH access to a remote host. It can be omitted for local deployments.
ssh_key
- SSH key for authentication to the remote host. It can be omitted for local deployments.
- Ensure all required scripts and dependencies are accessible in the paths specified in
config.json. - Refer to the example config.json file for further customizations.
For detailed documentation, see the Konveyor project page.