-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·79 lines (69 loc) · 1.88 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
KERNEL=$(uname)
## node
if which node > /dev/null ; then
echo "node is installed, checking the version..."
# node --version
else
echo "node is not installed"
echo "please install node >6.0"
exit 1
fi
## python
if which python > /dev/null ; then
echo "python is installed, checking the version..."
# $(python --version)
else
echo "python is not installed"
echo "please install python 2.7 on your computer"
exit 1
fi
## pip
if which pip > /dev/null ; then
echo "pip is installed, checking the version..."
# $(pip --version)
else
echo "pip is not installed"
curl https://bootstrap.pypa.io/get-pip.py -o "get-pip.py"
python get-pip.py
fi
## yarn
if which yarn > /dev/null ; then
echo "yarn is installed, skipping..."
else
echo "yarn is not installed"
curl -o- -L https://yarnpkg.com/install.sh | bash
fi
## virtualenv
if which virtualenv > /dev/null ; then
echo "virtualenv is installed, trying to upgrade it..."
# sudo pip install virtualenv --upgrade
else
echo "virtualenv is not installed"
sudo pip install virtualenv
fi
## kubectl
if which kubectl > /dev/null ; then
echo "kubectl is installed, skipping..."
else
echo "kubectl is not installed"
if [ '$(KERNEL)' = 'Darwin' ]; then \
curl -O http://storage.googleapis.com/kubernetes-release/release/v1.2.3/bin/darwin/amd64/kubectl; \
else \
curl -O http://storage.googleapis.com/kubernetes-release/release/v1.2.3/bin/linux/amd64/kubectl; \
fi
chmod +x kubectl
mv kubectl /usr/local/bin/
fi
## teleport
if which tpt > /dev/null ; then
echo "teleport is installed, skipping..."
else
echo "teleport is not installed"
yarn global add teleport.js
## then your teleport.js is stored in your ~/.config/yarn/global/node_modules/teleport.js folder
fi
## python dependencies
echo "installing python dependencies"
sudo pip install -r requirements.txt
echo "Your Teleport checking is good!"