Skip to content

Commit

Permalink
up-generic.sh: handle ./up-generic.sh <num> - creates num of instances
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed May 20, 2022
1 parent 7da52d3 commit 039d777
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions up-generic.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#This is for internal testing only
if [ -z "$1" ]; then
$1=1
fi
: ${TRIPLET:=x86_64-linux-gnu}
: ${bitcoind=1}
: ${lnd=1}
: ${tor=1}
: ${bitcoind=$1}
: ${lnd=$1}
: ${tor=$1}

python plebnet_generate.py TRIPLET=$TRIPLET bitcoind=$bitcoind lnd=$lnd tor=$tor

#Remove
docker-compose down
docker-compose down
sudo rm -rf volumes


Expand All @@ -16,17 +19,17 @@ sudo rm -rf volumes
mkdir volumes
for (( i=0; i<=$bitcoind-1; i++ ))
do
mkdir volumes/bitcoin_datadir_$i
mkdir -p volumes/bitcoin_datadir_$i
done
for (( i=0; i<=$lnd-1; i++ ))
do
mkdir volumes/lnd_datadir_$i
mkdir -p volumes/lnd_datadir_$i
done
for (( i=0; i<=$tor-1; i++ ))
do
mkdir volumes/tor_datadir_$i
mkdir volumes/tor_servicesdir_$i
mkdir volumes/tor_torrcdir_$i
mkdir -p volumes/tor_datadir_$i
mkdir -p volumes/tor_servicesdir_$i
mkdir -p volumes/tor_torrcdir_$i
done

docker-compose build --build-arg TRIPLET=$TRIPLET
Expand Down

0 comments on commit 039d777

Please sign in to comment.