init 717 Bytes
Newer Older
TonyFord's avatar
TonyFord committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
docker-compose down -v
chmod +x ./services/db/create_db.sh
docker-compose up -d db
sleep 20
docker-compose exec -T db /opt/explorer/create_db.sh
cat ${FAIRCHAINS_CONF} > ./services/faircoin/scripts/fairchains.conf
cat ${FAIRCHAINS_CONF} | sed -e s/netname/\#\ netname/g > ./services/faircoin/scripts/faircoin.conf
export AUTOSTART=0
docker-compose up -d faircoin
docker-compose exec -T faircoin mv -f ./scripts/fairchains.conf .faircoin2/
docker-compose exec -T faircoin mv -f ./scripts/faircoin.conf .faircoin2/
docker-compose stop faircoin
export AUTOSTART=1
docker-compose up -d faircoin
export AUTOSTART=0
docker-compose up -d explorer
sleep 20
docker-compose exec -T explorer python3 dbload.py -n -l