Files
runner-images-temp/images/ubuntu/scripts/build/install-oc-cli.sh
T

16 lines
584 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
2020-07-07 07:36:28 -07:00
################################################################################
2023-11-22 21:49:23 +01:00
## File: install-oc-cli.sh
## Desc: Install the OC CLI
2020-07-07 07:36:28 -07:00
################################################################################
source $HELPER_SCRIPTS/install.sh
2020-07-07 07:36:28 -07:00
# Install the oc CLI
DOWNLOAD_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz"
PACKAGE_TAR_NAME="oc.tar.gz"
download_with_retries $DOWNLOAD_URL "/tmp" $PACKAGE_TAR_NAME
tar xzf "/tmp/$PACKAGE_TAR_NAME" -C "/usr/local/bin" oc
2020-07-07 07:36:28 -07:00
2023-11-22 21:49:23 +01:00
invoke_tests "CLI.Tools" "OC CLI"