Merge "removing the dynamic naming of the expected testplan"
[releng/builder.git] / jenkins-scripts / builder.sh
1 #!/bin/bash
2 # vim: sw=2 ts=2 sts=2 et :
3
4 yum clean all
5
6 #
7 # Integration/Packaging
8 #
9
10 # Install software for building RPMs
11 yum install -y fedora-packager
12
13 # Install software for building docs
14 yum install -y libxslt-devel
15
16 # disable the firewall
17 /bin/bash ./disable_firewall.sh
18
19 # install sshpass
20 yum install -y sshpass
21
22 # vim: sw=2 ts=2 sts=2 et :
23 # Installation of Hbase
24 mkdir /tmp/Hbase
25 cd /tmp/Hbase
26
27 wget --no-verbose http://apache.osuosl.org/hbase/hbase-0.94.27/hbase-0.94.27.tar.gz
28
29 echo "Installing the Hbase Server..."
30 tar -xvf hbase-0.94.27.tar.gz
31
32 #Installation of Cassandra
33
34
35 mkdir /tmp/cassandra
36 cd /tmp/cassandra
37
38 wget --no-verbose http://apache.osuosl.org/cassandra/2.1.16/apache-cassandra-2.1.16-bin.tar.gz
39
40 echo "Installing the Cassandra Server..."
41
42 tar -xvf apache-cassandra-2.1.16-bin.tar.gz
43
44 # Installation of Elasticsearch node
45
46 mkdir /tmp/elasticsearch
47 cd /tmp/elasticsearch
48
49 wget --no-verbose https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
50
51 echo "Installing the Elasticsearch node..."
52
53 tar -xvzf elasticsearch-1.7.5.tar.gz
54
55 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
56 Defaults:jenkins !requiretty
57 jenkins     ALL = NOPASSWD: ALL
58 EOF
59
60 # install crudini command line tool for editing config files
61 yum install -y crudini