-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-and-install-cloudstack.sh
More file actions
executable file
·30 lines (26 loc) · 1.27 KB
/
build-and-install-cloudstack.sh
File metadata and controls
executable file
·30 lines (26 loc) · 1.27 KB
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
#!/bin/bash
set -eux
. ./functions.sh
yum -y install git
cd /opt
fetch_git_repo https://github.com/apache/cloudstack.git
cd cloudstack
cd packaging/centos63
wget http://repo1.maven.org/maven2/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar -O /root/.m2/repository/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar
wget http://repo1.maven.org/maven2/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar -O /root/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar
wget http://repo1.maven.org/maven2/org/apache/ws/commons/axiom/axiom-dom/1.2.10/axiom-dom-1.2.10.jar -O /root/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.10/axiom-dom-1.2.10.jar
wget http://mirrors.ibiblio.org/maven2/commons-lang/commons-lang/2.3/commons-lang-2.3.jar -O /root/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
wget http://mirrors.ibiblio.org/maven2/bouncycastle/bcprov-jdk14/140/bcprov-jdk14-140.jar -O /root/.m2/repository/bouncycastle/bcprov-jdk14/140/bcprov-jdk14-140.jar
./package.sh
mkdir -p ~/repo
cd ../..
cp dist/rpmbuild/RPMS/x86_64/*rpm ~/repo/
createrepo ~/repo
cat <<EOF >> /etc/yum.repos.d/cloudstack.repo
[apache-cloudstack]
name=Apache CloudStack
baseurl=file:///root/repo/
enabled=1
gpgcheck=0
EOF
yum -y install cloudstack-management