-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·46 lines (41 loc) · 1.07 KB
/
test.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
#!/usr/bin/env bash
echo $1
if [[ $1 = "whitelist" ]]
then
echo "Let's add these project to this slaves whitelist: "
$2
elif [[ $1 = "build" ]]
then
echo "Let's build Mesos and dependencies"
echo "Updating..."
sudo apt-get update
sudo apt-get install -y apache2
#download mesos
echo "Downloading Mesos 0.20.1"
wget http://www.apache.org/dist/mesos/0.20.1/mesos-0.20.1.tar.gz
tar -zxf mesos-0.20.1.tar.gz
echo "Updating..."
sudo apt-get update
sudo apt-get install -y apache2
sudo apt-get install docker.io
echo "Installing dependencies"
# install mesos dependencies
sudo apt-get install build-essential -y
sudo apt-get install openjdk-6-jdk -y
sudo apt-get install python-dev python-boto -y
sudo apt-get install libcurl4-nss-dev -y
sudo apt-get install libsasl2-dev -y
sudo apt-get install maven -y
sudo apt-get install libapr1-dev -y
sudo apt-get install libsvn-dev -y
echo "Installing Mesos 0.20.1"
# install mesos
cd mesos-0.20.1/
sudo mkdir build
cd build/
sudo ../configure
sudo make
sudo make check
sudo make install
echo "Mesos installation complete"
fi