-
Notifications
You must be signed in to change notification settings - Fork 277
/
appscale_install.sh
executable file
·74 lines (68 loc) · 1.71 KB
/
appscale_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
set -u
set -e
cd `dirname $0`/..
if [ -z "$APPSCALE_HOME_RUNTIME" ]; then
export APPSCALE_HOME_RUNTIME=`pwd`
fi
if [ -z "${2-}" ]; then
DESTDIR=""
else
DESTDIR=$2
fi
APPSCALE_HOME=${DESTDIR}${APPSCALE_HOME_RUNTIME}
CURL_OPTS="-s"
. debian/appscale_install_functions.sh
echo "Install AppScale into ${APPSCALE_HOME}"
echo "APPSCALE_HOME in runtime=${APPSCALE_HOME_RUNTIME}"
# Let's make sure we got at least one input.
if [ -z "$1" ]; then
echo "ERROR: need to have at least one target!"
exit 1
fi
case "$1" in
# At this time we cannot simply install pieces of AppScale, and the
# space saving is minimal. So we install all the components.
all|core)
# Scratch install of appscale including post script.
installappscaleprofile
. /etc/profile.d/appscale.sh
installgems
postinstallhaproxy
postinstallnginx
installjavajdk
installappserverjava
installtornado
installpycrypto
installurllib3
installpycapnp
installpymemcache
installpyyaml
installsoappy
installzookeeper
postinstallzookeeper
postinstallrabbitmq
installsolr
installsolr7
installservice
postinstallservice
postinstallejabberd
setulimits
increaseconnections
installVersion
postinstallrsyslog
installapiclient
installgosdk
installacc
installcommon
installadminserver
installhermes
installinfrastructuremanager
installtaskqueue
installdatastore
installapiserver
installsearch2
preplogserver
prepdashboard
fetchclientjars
;;
esac