blob: fd9de2e181f0647b849d96f8a07a6f719060f5c4 [file] [log] [blame]
Areli Fuss471a29702018-02-01 13:09:07 +02001#!/bin/bash
2
3####################
4# Functions #
5####################
6
7status()
8{
9 local rc=$1
10 if [ ${rc} != 0 ]; then
11 echo "[ERR] Failure detected. Aborting !"
12 exit 255
13 else
14 echo "[INFO] Done "
15 fi
16}
17
18print_header()
19{
20 header=$*
21 echo ""
22 echo "-------------------------"
23 echo " ${header}"
24 echo "-------------------------"
25 echo ""
26 }
27
28####################
29# Main #
30####################
31clear
32
33####################
34# kubectl #
35####################
36print_header "Kubelet - Install ..."
37sh ./install_kubectl.sh
38status $?
39
40
41####################
42# minikube #
43####################
44print_header "Minikube - Install ..."
45sh ./install_minikube.sh
46status $?
47
48
49####################
50# dependencies #
51####################
52print_header "Dependency - Install ..."
53echo "[INFO] Install - nsenter"
54# Use pre compiled nsenter:
55sudo cp bin/nsenter /usr/local/bin/nsenter
56sudo cp etc/bash_completion.d/nsenter /etc/bash_completion.d/nsenter
57
58## In order to build the nsenter use the below instructions:
59##./build_nsenter_exec.sh
60echo "[INFO] Install - socat"
61sudo apt-get install -y socat jq
62
63####################
64# helm #
65####################
66print_header "Helm - Install ..."
67sh ./install_helm.sh
68status $? "$action"
69
70
71####################
72# K8s #
73####################
74print_header "SDC - Deploy Pods ..."
75sh ./deploy_k8s_sdc.sh
76status $?
77