-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart
executable file
·51 lines (43 loc) · 1.11 KB
/
start
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
#!/bin/sh
set -v
./stop
cd ~/eth2-beaconchain-explorer/local-deployment/
set +v
echo "================================================================"
echo "Which modules must be launched?"
echo "1: statistics"
echo "2: rewards-exporter"
echo "3: eth1indexer"
echo "4: indexer"
echo "5: frontend-data-updater"
echo "6: frontend"
read -p "Type a series of numbers (ex: 345): " numbers
echo "================================================================"
set -v
systemctl restart docker.service
kurtosis engine restart
kurtosis clean -a
kurtosis run --enclave my-testnet . "$(cat network-params.json)"
bash provision-explorer-config.sh
set +v
bc_modules=""
case $numbers in
*1*) bc_modules=$bc_modules" statistics";;
esac
case $numbers in
*2*) bc_modules=$bc_modules" rewards-exporter";;
esac
case $numbers in
*3*) bc_modules=$bc_modules" eth1indexer";;
esac
case $numbers in
*4*) bc_modules=$bc_modules" indexer";;
esac
case $numbers in
*5*) bc_modules=$bc_modules" frontend-data-updater";;
esac
case $numbers in
*6*) bc_modules=$bc_modules" frontend";;
esac
set -v
docker compose up -d ${bc_modules}