forked from OpenQDev/OpenQ-Fullstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot.sh
executable file
·62 lines (54 loc) · 1.74 KB
/
boot.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
#!/bin/bash
. ./colors.sh
chmod u+x asciiart.sh
./asciiart.sh
clone() {
if [ -d "./$1" ]; then
echo -e "${Blue}$1 directory found${Color_Off}\n"
else
echo -e "${UCyan}No $1 directory found. Cloning $1...${Color_Off}\n"
git clone https://github.com/OpenQDev/$1.git
fi
}
declare -a repos=(
"OpenQ-CoinAPI"
"OpenQ-Oracle"
"OpenQ-Frontend"
"OpenQ-Contracts"
"OpenQ-Github-OAuth-Server"
"OpenQ-Helm"
"OpenQ-JSON-RPC-Node"
"OpenQ-CertManager"
"OpenQ-Graph"
"OpenQ-Kubeconfig"
"OpenQ-Bot"
"OpenQ-API"
"OpenQ-Architecture"
"OpenQ-Github-Proxy"
"OpenQ-Invoice-Server"
"OpenQ-OZ-Claim-Autotask"
"OpenQ-Bounty-Actions-Autotask"
"OpenQ-Event-Listener"
"OpenQ-Token-Price-Cron-Job"
"Superfluid-Subgraph"
"OpenQ-User-Registration"
)
for repo in "${repos[@]}"; do
echo -e "\n${BBlue}$repo${Color_Off}"
clone "$repo"
done
echo -e "${Red}NOTE:${Color_Off} ${Blue}You will need .env files in the root of the following repositories: ${Color_Off}"
echo -e ${Cyan}"- OpenQ-Frontend"${Color_Off}
echo -e ${Cyan}"- OpenQ-Oracle"${Color_Off}
echo -e ${Cyan}"- OpenQ-Contracts"${Color_Off}
echo -e ${Cyan}"- OpenQ-Github-OAuth-Server"${Color_Off}
echo -e ${Cyan}"- OpenQ-OZ-Claim-Autotask"${Color_Off}
echo -e ${Cyan}"- OpenQ-CoinAPI"${Color_Off}
echo -e ${Cyan}"- OpenQ-Event-Listener"${Color_Off}
echo -e ${Cyan}"- OpenQ-Bounty-Actions-Autotask\n"${Color_Off}
echo -e ${Blue}"No worries! See the README for instructions\n"${Color_Off}
# Save a local file of the openq launched containers for later deletion and removal
echo -e ${Cyan}"Starting all OpenQ containers from scratch..."${Color_Off}
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
echo -e ${Cyan}"Removed stale OpenQ containers. Booting new..."${Color_Off}
docker-compose -f docker-compose.yml up