From 7d746faaad61c2c883037a60aacce58a8c9fae45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 5 Dec 2019 15:05:17 +0100 Subject: [PATCH] Devnet 10 --- build/bootstrap/bootstrappers.pi | 4 ++-- build/genesis/devnet.car | Bin 3055 -> 3055 bytes scripts/deploy-bootstrapper.sh | 34 +++++++++++++++++++++++++++++++ scripts/deploy-devnet.sh | 27 +----------------------- 4 files changed, 37 insertions(+), 28 deletions(-) create mode 100755 scripts/deploy-bootstrapper.sh diff --git a/build/bootstrap/bootstrappers.pi b/build/bootstrap/bootstrappers.pi index 98e1010e6..e57d5490f 100644 --- a/build/bootstrap/bootstrappers.pi +++ b/build/bootstrap/bootstrappers.pi @@ -1,2 +1,2 @@ -/ip4/147.75.80.17/tcp/1347/p2p/12D3KooWPWCCqUN3gPEaFAMpAwfh5a6SryBEsFt5R2oK8oW86a4C -/ip4/147.75.80.29/tcp/1347/p2p/12D3KooWNL1fJPBArhsoqwg2wbXgCDTByMyg4ZGp6HjgWr9bgnaJ +/ip4/147.75.80.29/tcp/1347/p2p/12D3KooWQYHfhaqRCEAcZKFEVZnK7kgPh1FHwYNwLgCZkoxmmARu +/ip4/147.75.80.17/tcp/1347/p2p/12D3KooWQg7XTDcU7ySChvLSMZ3L4cywXPsAcv1uyMNw8n5hv9KS diff --git a/build/genesis/devnet.car b/build/genesis/devnet.car index ab806416a9e8163724cc699d24aca782b1145440..2abd987082fc5c06e0f9267545f6c33c013daaab 100644 GIT binary patch delta 1111 zcmaDa{$6~7NMLmHVaGm}`1IS`4}KA>+EQZGa6EXn!`3%Ri>}tpiWGjDUY1%^oSC1; zxRQynaKRHM1wtAorlu)eVNKd(xiz@`>rx(O75CV0FWj^@)@Rjw`TDB+A1(+iwq3m6ZlQIU zmDJo9XWzs(bckNMAhghT*JKB#GYVJy{tKNfIdkd$Obzd^e70_0%xk{8sKvau+WX?k zd#U6LlXaL)6;?;`yI@JMq=@OW`2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bootstrap node $host" +log "Stopping lotus daemon" + +ssh "$host" 'systemctl stop lotus-daemon' & +ssh "$host" 'systemctl stop lotus-storage-miner' & + +wait + +ssh "$host" 'rm -rf .lotus' & +ssh "$host" 'rm -rf .lotusstorage' & + +scp -C lotus "${host}":/usr/local/bin/lotus & +scp -C lotus-storage-miner "${host}":/usr/local/bin/lotus-storage-miner & + +wait + +log 'Initializing repo' + +ssh "$host" 'systemctl start lotus-daemon' +scp scripts/bootstrap.toml "${host}:.lotus/config.toml" +ssh "$host" "echo -e '[Metrics]\nNickname=\"Boot-$host\"' >> .lotus/config.toml" +ssh "$host" 'systemctl restart lotus-daemon' + +log 'Extracting addr info' + +ssh "$host" 'lotus net listen' | grep -v '/10' | grep -v '/127' >> build/bootstrap/bootstrappers.pi diff --git a/scripts/deploy-devnet.sh b/scripts/deploy-devnet.sh index dd4409b01..c1b82933c 100755 --- a/scripts/deploy-devnet.sh +++ b/scripts/deploy-devnet.sh @@ -91,32 +91,7 @@ make for host in "${BOOTSTRAPPERS[@]}" do - log "> Deploying bootstrap node $host" - log "Stopping lotus daemon" - - ssh "$host" 'systemctl stop lotus-daemon' & - ssh "$host" 'systemctl stop lotus-storage-miner' & - - wait - - ssh "$host" 'rm -rf .lotus' & - ssh "$host" 'rm -rf .lotusstorage' & - - scp -C lotus "${host}":/usr/local/bin/lotus & - scp -C lotus-storage-miner "${host}":/usr/local/bin/lotus-storage-miner & - - wait - - log 'Initializing repo' - - ssh "$host" 'systemctl start lotus-daemon' - scp scripts/bootstrap.toml "${host}:.lotus/config.toml" - ssh "$host" "echo -e '[Metrics]\nNickname=\"Boot-$host\"' >> .lotus/config.toml" - ssh "$host" 'systemctl restart lotus-daemon' - - log 'Extracting addr info' - - ssh "$host" 'lotus net listen' | grep -v '/10' | grep -v '/127' >> build/bootstrap/bootstrappers.pi + ./scripts/deploy-bootstrapper.sh $host done log 'Updating genesis node with bootstrapable binaries'