-
Notifications
You must be signed in to change notification settings - Fork 10
/
epirus.sh
executable file
·57 lines (47 loc) · 2.14 KB
/
epirus.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
#!/bin/bash
set -u
set -e
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo -e "${BLUE}Updating dependencies${NC} "
if [ ! -d crux ]; then
git clone https://github.com/blk-io/crux.git
else
cd crux && git pull && cd ..
fi
if [ ! -d blk-explorer-free ]; then
git clone https://github.com/blk-io/epirus-free.git
else
cd blk-explorer-free && git pull && cd ..
fi
echo -e "${BLUE}Starting 4 node Quorum network${NC} "
docker-compose -f crux/docker/quorum-crux/docker-compose.yaml up -d
until $(curl --output /dev/null --silent --head --fail http://localhost:22001); do
printf "${BLUE}\xE2\x97\x88${NC}"
sleep 2
done
echo -e "${BLUE}\xE2\x97\x88 done${NC}"
echo -e "${BLUE}Starting the Blockchain Explorer ${NC}"
NODE_ENDPOINT=http://localhost:22001 docker-compose -f blk-explorer-free/docker-compose.yaml up -d
until $(curl --output /dev/null --silent --head --fail http://localhost:8081); do
printf "${BLUE}\xE2\x97\x88${NC}"
sleep 2
done
echo -e "${BLUE}\xE2\x97\x88 backend started${NC}"
until $(curl --output /dev/null --silent --head --fail http://localhost:5000); do
printf "${BLUE}\xE2\x97\x88${NC}"
sleep 2
done
echo -e "${BLUE}\xE2\x97\x88 front-end started${NC}"
echo -e "${BLUE}Opening Blockchain Explorer at http://localhost:5000${NC} "
printf "${BLUE}
███████╗██████╗ ██╗██████╗ ██╗ ██╗███████╗
██╔════╝██╔══██╗██║██╔══██╗██║ ██║██╔════╝
█████╗ ██████╔╝██║██████╔╝██║ ██║███████╗
██╔══╝ ██╔═══╝ ██║██╔══██╗██║ ██║╚════██║
███████╗██║ ██║██║ ██║╚██████╔╝███████║
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
by blk.io (hi@blk.io)
${NC}"
echo -e "\n${BLUE}Platform started successfully, to stop run: ./stop.sh${NC} "
python -mwebbrowser "http://localhost:5000"