-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap_testnet.sh
executable file
·38 lines (33 loc) · 1.71 KB
/
bootstrap_testnet.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
#!/bin/sh
export DOCKER_UID=$( id -u ${USER} )
export DOCKER_GID=$( id -g ${USER} )
export NUM_NODES=5
echo "****************************************************************"
echo "****************************************************************"
echo " FLUSHING EVERYTHING"
echo "****************************************************************"
echo "****************************************************************"
#rm -r volumes/*
echo "****************************************************************"
echo "****************************************************************"
echo " BUILDING CONTAINERS"
echo "****************************************************************"
echo "****************************************************************"
export BOOT_PHASE=build
docker-compose build
echo "****************************************************************"
echo "****************************************************************"
echo " BOOTSTRAPPING"
echo "****************************************************************"
echo "****************************************************************"
export BOOT_PHASE=bootstrap
export LOCALNET_ONLY=yes
docker-compose up --scale node=${NUM_NODES}
python3 ./scripts/collect_wallets.py # Get Addresses and prepare genesis block
echo "****************************************************************"
echo "****************************************************************"
echo " STARTING LOCALNET"
echo "****************************************************************"
echo "****************************************************************"
export BOOT_PHASE=start
docker-compose up --scale node=${NUM_NODES}