-
Notifications
You must be signed in to change notification settings - Fork 16
/
install-keep-dashboard.sh
executable file
·51 lines (31 loc) · 1.25 KB
/
install-keep-dashboard.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
#!/bin/bash
set -e
LOG_START='\n\e[1;36m' # new line + bold + color
LOG_END='\n\e[0m' # new line + reset color
DONE_START='\n\e[1;32m' # new line + bold + green
DONE_END='\n\n\e[0m' # new line + reset
WORKDIR=$PWD
printf "${LOG_START}Starting Keep Dashboard deployment...${LOG_END}"
printf "${LOG_START}Preparing keep-core artifacts...${LOG_END}"
cd $WORKDIR/keep-core/solidity-v1
ln -sf build/contracts artifacts
printf "${LOG_START}Preparing keep-ecdsa artifacts...${LOG_END}"
cd $WORKDIR/keep-ecdsa/solidity
ln -sf build/contracts artifacts
printf "${LOG_START}Preparing tBTC artifacts...${LOG_END}"
cd $WORKDIR/tbtc/solidity
ln -sf build/contracts artifacts
printf "${LOG_START}Install Keep Dashboard dependencies...${LOG_END}"
cd $WORKDIR/keep-core/solidity-v1/dashboard
npm install
printf "${LOG_START}Updating Keep Dashboard dependencies...${LOG_END}"
cd $WORKDIR/keep-core/solidity-v1
npm link
cd $WORKDIR/keep-ecdsa/solidity
npm link
cd $WORKDIR/tbtc/solidity
npm link
printf "${LOG_START}Updating Keep Dashboard configuration...${LOG_END}"
cd $WORKDIR/keep-core/solidity-v1/dashboard
npm link @keep-network/keep-core @keep-network/keep-ecdsa @keep-network/tbtc
printf "${DONE_START}Keep Dashboard initialized successfully!${DONE_END}"