Provision explorer #3

Merged
dboreham merged 1 commits from dboreham/provision-explorer into main 2024-07-15 04:17:41 +00:00

View File

@ -23,8 +23,6 @@ else
exit 1 exit 1
fi fi
so_command=/home/laconic/bin/laconic-so
echo "Run deploy init on all nodes" echo "Run deploy init on all nodes"
spec_file_name=${machine_name_prefix}-spec.yml spec_file_name=${machine_name_prefix}-spec.yml
@ -36,8 +34,11 @@ do
node_name=${machine_name_prefix}-${i} node_name=${machine_name_prefix}-${i}
node_host_name=${node_name}.${machine_domain} node_host_name=${node_name}.${machine_domain}
laconic_console_config="LACONIC_HOSTED_ENDPOINT=http://${node_host_name}:9473" laconic_console_config="LACONIC_HOSTED_ENDPOINT=http://${node_host_name}:9473"
explorer_api_config="LACONIC_LACONICD_API_URL=http://${node_host_name}:1317"
explorer_rpc_config="LACONIC_LACONICD_RPC_URL=http://${node_host_name}:26657"
explorer_chain_id_config="LACONIC_LACONICD_CHAIN_ID=${chain_id}"
deployment_config=${laconic_console_config},${explorer_api_config},${explorer_rpc_config},${explorer_chain_id_config}
echo "Creating deployment dir on ${node_name}" echo "Creating deployment dir on ${node_name}"
ssh laconic@${node_host_name} ${so_command} --stack mainnet-laconic deploy init --map-ports-to-host any-same --output ${spec_file_name} --config ${laconic_console_config} ssh ${ssh_user}@${node_host_name} ${so_command} --stack mainnet-laconic deploy init --map-ports-to-host any-same --output ${spec_file_name} --config ${deployment_config}
ssh laconic@${node_host_name} ${so_command} --stack mainnet-laconic deploy create --deployment-dir ${deployment_dir} --spec-file ${spec_file_name} --network-dir ${node_network_dir} --initial-peers ${peers} ssh ${ssh_user}@${node_host_name} ${so_command} --stack mainnet-laconic deploy create --deployment-dir ${deployment_dir} --spec-file ${spec_file_name} --network-dir ${node_network_dir} --initial-peers ${peers}
done done