git.delta.rocks / unique-network / refs/commits / c2fde9c9bdff

difftreelog

source

deploy-testnet.sh1.5 KiBsourcehistory
1#######################################################2#3# Deployng process:4#5#   1. Git pull the nft_parachain on the server6#   2. SCP secret files in the root folder of nft_parachain7#      - einstein_store_key.json8#      - newton_store_key.json9#      - einstein_key_file10#   3. Run this script11#1213### Build and run Einstein node (bootnode) and Newton node14docker-compose -f docker-compose-testnet.yml up -d --build1516sleep 301718### Deploy aura store keys19# Einstein20curl http://localhost:9935 -H "Content-Type:application/json;charset=utf-8" -d "@./einstein_store_key.json"2122# Newton23curl http://localhost:9936 -H "Content-Type:application/json;charset=utf-8" -d "@./newton_store_key.json"2425### Deploy standpa store keys26# Einstein27curl http://localhost:9935 -H "Content-Type:application/json;charset=utf-8" -d "@./einstein_store_key_grandpa.json"2829# Newton30curl http://localhost:9936 -H "Content-Type:application/json;charset=utf-8" -d "@./newton_store_key_grandpa.json"3132sleep 30 3334### Stop and restart nodes so that they start finalizing35docker stop nft_parachain_node_einstein_136docker stop nft_parachain_node_newton_137docker stop nft_parachain_node_bohr_138docker start nft_parachain_node_einstein_139docker start nft_parachain_node_newton_140docker start nft_parachain_node_bohr_14142### Cleanup4344# Delete key file used to set bootnode peer ID45rm einstein_key_file4647# Delete store key files48rm ./einstein_store_key.json49rm ./newton_store_key.json50rm ./einstein_store_key_grandpa.json51rm ./newton_store_key_grandpa.json