aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/tools
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-06-27 17:49:21 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-08 12:29:52 +0200
commita65cd1ca58eae2348ff50487cc1b5c6d05531fc3 (patch)
treede736f1c24379098d080e0ea3b979e6921ac256f /test/security/k8s/tools
parent7b2c82bc52e7d56c99690fa260ea0b692b0ea59a (diff)
k8s: Make Rancher CLI provisioner reusable
Having Rancher CLI proves itself useful on development machines as well. Issue-ID: SECCOM-235 Change-Id: I0de3109e1236cf6dc9cbc825342593041dcfdf2c Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/tools')
-rwxr-xr-xtest/security/k8s/tools/get_ranchercli.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/security/k8s/tools/get_ranchercli.sh b/test/security/k8s/tools/get_ranchercli.sh
new file mode 100755
index 000000000..d36a94edb
--- /dev/null
+++ b/test/security/k8s/tools/get_ranchercli.sh
@@ -0,0 +1,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