Move HBase/Cassandra/ElasticSearch to packer 51/51051/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 26 Jan 2017 00:26:07 +0000 (16:26 -0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 26 Jan 2017 00:26:48 +0000 (16:26 -0800)
These wgets cause the spinup script to take long to run so move to
packer.

Change-Id: I624b7f5c3f023353c1029b7d34eff7635b741ab3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jenkins-scripts/builder.sh
packer/provision/java-builder.sh

index d607757aa4a2cd315e0ac37258453f33a6b1ef38..7249e01cdd10603fe5dbbc3b43947eb06565cee8 100755 (executable)
@@ -19,39 +19,6 @@ yum install -y libxslt-devel
 # install sshpass
 yum install -y sshpass
 
-# vim: sw=2 ts=2 sts=2 et :
-# Installation of Hbase
-mkdir /tmp/Hbase
-cd /tmp/Hbase
-
-wget --no-verbose http://apache.osuosl.org/hbase/hbase-0.94.27/hbase-0.94.27.tar.gz
-
-echo "Installing the Hbase Server..."
-tar -xvf hbase-0.94.27.tar.gz
-
-#Installation of Cassandra
-
-
-mkdir /tmp/cassandra
-cd /tmp/cassandra
-
-wget --no-verbose http://apache.osuosl.org/cassandra/2.1.16/apache-cassandra-2.1.16-bin.tar.gz
-
-echo "Installing the Cassandra Server..."
-
-tar -xvf apache-cassandra-2.1.16-bin.tar.gz
-
-# Installation of Elasticsearch node
-
-mkdir /tmp/elasticsearch
-cd /tmp/elasticsearch
-
-wget --no-verbose https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
-
-echo "Installing the Elasticsearch node..."
-
-tar -xvzf elasticsearch-1.7.5.tar.gz
-
 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
 Defaults:jenkins !requiretty
 jenkins     ALL = NOPASSWD: ALL
index 254c87f5a7df9be84cb96f93d2b87344e2ed7e65..677a5d206a66352da09dea74d83aa014dff8f846 100644 (file)
@@ -44,6 +44,29 @@ yum-config-manager -y --add-repo http://download.mono-project.com/repo/centos/
 yum -y install mono-complete nuget
 #end changes for vsemprovider in VTN
 
+
+# TSDR dependencies
+echo "Installing the Hbase Server..."
+mkdir /tmp/Hbase
+cd /tmp/Hbase
+wget --no-verbose http://apache.osuosl.org/hbase/hbase-0.94.27/hbase-0.94.27.tar.gz
+tar -xvf hbase-0.94.27.tar.gz
+
+echo "Installing the Cassandra Server..."
+mkdir /tmp/cassandra
+cd /tmp/cassandra
+wget --no-verbose http://apache.osuosl.org/cassandra/2.1.16/apache-cassandra-2.1.16-bin.tar.gz
+tar -xvf apache-cassandra-2.1.16-bin.tar.gz
+
+
+# Generally useful for all projects
+echo "Installing the Elasticsearch node..."
+mkdir /tmp/elasticsearch
+cd /tmp/elasticsearch
+wget --no-verbose https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
+tar -xvzf elasticsearch-1.7.5.tar.gz
+
+
 # The following installs hashicorp's packer binary which is required  for
 # the {verify,merge}-packer jobs
 mkdir /tmp/packer