aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/tools/get_ranchercli.sh
blob: d36a94edbb7b17add6b20882ee2046341672d149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

# Prerequistes
wget https://releases.rancher.com/cli/v0.6.12/rancher-linux-amd64-v0.6.12.tar.gz
tar xf rancher-linux-amd64-v0.6.12.tar.gz

# Installation
echo '# Privilege elevation needed to move Rancher CLI binary to /usr/local/bin'
sudo mv rancher-v0.6.12/rancher /usr/local/bin/

# Cleanup
rmdir rancher-v0.6.12/
rm rancher-linux-amd64-v0.6.12.tar.gz