-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·51 lines (41 loc) · 1.92 KB
/
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
#!/bin/bash
set -e
# In production you really want to change this variable
CLAWIO_INSTALL_PATH=/tmp/clawioproject
rm -rf ${CLAWIO_INSTALL_PATH}
mkdir -p ${CLAWIO_INSTALL_PATH}
cd ${CLAWIO_INSTALL_PATH}
# Clone required services. Add your own.
git clone https://github.com/clawio/orches
git clone https://github.com/clawio/service-auth
git clone https://github.com/clawio/service-ocwebdav
git clone https://github.com/clawio/service-mysql
git clone https://github.com/clawio/service-mysql-localfsxattr
git clone https://github.com/clawio/service-localfs-data
git clone https://github.com/clawio/service-localfs-meta
git clone https://github.com/clawio/service-localfs-prop
git clone https://github.com/clawio/service-localfsxattr-data
git clone https://github.com/clawio/service-localfsxattr-meta
git clone https://github.com/clawio/service-localfsxattr-mysqlprop
git clone https://github.com/clawio/service-localfsxattr-redisprop
git clone https://github.com/clawio/clawio
git clone https://github.com/clawio/clawiobench
cp orches/deploy.json .
# Ideally docker-compose up -d will be enough but given that
# some containers need to be launched in sequence and
# compose does not guarantee that, we launch them in manually
# in the desired sequence.
docker-compose -f deploy.json build --no-cache --force-rm
docker-compose -f deploy.json up -d --force-recreate
# show services running.
docker-compose -f deploy.json ps
docker-compose -f deploy.json ps
docker-compose -f deploy.json ps
docker-compose -f deploy.json ps
## Increase max connections for MySQL
docker exec -it service-localfs-prop-mysql mysql -uroot -padmin -e "set global max_connections=100000"
docker exec -it service-localfsxattr-mysqlprop-mysql mysql -uroot -padmin -e "set global max_connections=100000"
echo "ClawIO is up and running"
echo "If you see some service with status Exit run:"
echo " 'docker-compose -f deploy.json up -d' a couple of times until"
echo "all services are up."