From 481f3707635217b4bc9e44ee634babd47256f0d5 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 9 Aug 2024 15:44:00 +0530 Subject: [PATCH] Add port mappings --- ops/deployments-from-scratch.md | 13 ++++++- ops/stage0-to-stage1.md | 4 +- ops/update-deployments.md | 37 +++++++++++-------- .../stacks/testnet-laconicd/README.md | 2 +- testnet-onboarding-validator.md | 4 +- 5 files changed, 39 insertions(+), 21 deletions(-) diff --git a/ops/deployments-from-scratch.md b/ops/deployments-from-scratch.md index 613d338..2f2ef20 100644 --- a/ops/deployments-from-scratch.md +++ b/ops/deployments-from-scratch.md @@ -1,4 +1,4 @@ -# deployments-from-scratch +# Create deployments from scratch (for reference only) ## Login @@ -657,3 +657,14 @@ * The laconic console can now be viewed at + +## Domains / Port Mappings + +```bash +laconicd.laconic.com -> 26657 +laconicd.laconic.com/api -> 9473/api +faucet.laconic.com -> 4000 +loro-signup.laconic.com -> 3000 +wallet.laconic.com -> 5000 +loro-console.laconic.com -> 4001 +``` diff --git a/ops/stage0-to-stage1.md b/ops/stage0-to-stage1.md index 4569fe8..56550aa 100644 --- a/ops/stage0-to-stage1.md +++ b/ops/stage0-to-stage1.md @@ -1,4 +1,4 @@ -# stage0-to-stage1 +# Halt stage0 and start stage1 Once all the participants have completed their onboarding, stage0 laconicd chain can be halted and stage1 chain can be initialized and started @@ -64,6 +64,8 @@ Once all the participants have completed their onboarding, stage0 laconicd chain * Copy over the generated genesis file (`.json`) containing the onboarding module state with funded participants to data directory in stage1 deployment (`stage1-deployment/data/genesis-config`): ```bash + cd /srv/laconicd + cp ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd/output/genesis.json stage1-deployment/data/genesis-config/genesis.json ``` diff --git a/ops/update-deployments.md b/ops/update-deployments.md index 04dc4e6..13a7f83 100644 --- a/ops/update-deployments.md +++ b/ops/update-deployments.md @@ -1,4 +1,4 @@ -# update-deployments +# Update deployments after code changes Instructions to reset / update the deployments @@ -16,7 +16,7 @@ Instructions to reset / update the deployments * Deployment dir: `/srv/laconicd/stage0-deployment` -* Fetch and build with updated source code: +* If code has changed, fetch and build with updated source code: ```bash # laconicd source @@ -34,7 +34,7 @@ Instructions to reset / update the deployments laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild ``` -* Reset the data directory: +* Optionally, reset the data directory (this will remove all stage0 data!): ```bash # Stop the deployment @@ -45,7 +45,7 @@ Instructions to reset / update the deployments mkdir stage0-deployment/data/laconicd-data ``` -* Restart the deployment: +* Start the deployment: ```bash laconic-so deployment --dir stage0-deployment start @@ -54,7 +54,7 @@ Instructions to reset / update the deployments laconic-so deployment --dir stage0-deployment logs laconicd -f ``` -* Since the stage0 laconicd chain has been reset, reset the faucet deployment with new faucet key: +* If the stage0 laconicd chain has been reset, reset the faucet deployment too with new faucet key: ```bash cd /srv/faucet @@ -65,9 +65,14 @@ Instructions to reset / update the deployments CERC_FAUCET_KEY=$FAUCET_ACCOUNT_PK EOF - # Restart the deployment - laconic-so deployment --dir laconic-faucet-deployment stop + # Stop the deployment + laconic-so deployment --dir laconic-faucet-deployment stop --delete-volumes + # Remove and recreate the required data dir + sudo rm -rf laconic-faucet-deployment/data/faucet-data + mkdir laconic-faucet-deployment/data/faucet-data + + # Start the deployment laconic-so deployment --dir laconic-faucet-deployment start ``` @@ -75,7 +80,7 @@ Instructions to reset / update the deployments * Deployment dir: `/srv/app/onboarding-app-deployment` -* Fetch and build with updated source code: +* If code has changed, fetch and build with updated source code: ```bash # testnet-onboarding-app source @@ -93,7 +98,7 @@ Instructions to reset / update the deployments laconic-so --stack ~/cerc/testnet-onboarding-app-stack/stack-orchestrator/stacks/onboarding-app build-containers --force-rebuild ``` -* Update the configuration if required: +* Update the configuration, if required: ```bash cat < onboarding-app-deployment/config.env @@ -125,7 +130,7 @@ Instructions to reset / update the deployments * Deployment dir: `/srv/wallet/laconic-wallet-web-deployment` -* Fetch and build with updated source code: +* If code has changed, fetch and build with updated source code: ```bash # testnet-onboarding-app source @@ -143,7 +148,7 @@ Instructions to reset / update the deployments laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web build-containers --force-rebuild ``` -* Update the configuration if required: +* Update the configuration, if required: ```bash cat < laconic-wallet-web-deployment/config.env @@ -168,7 +173,7 @@ Instructions to reset / update the deployments * Deployment dir: `/srv/laconicd/stage1-deployment` -* Fetch and build with updated source code: +* If code has changed, fetch and build with updated source code: ```bash # laconicd source @@ -186,7 +191,7 @@ Instructions to reset / update the deployments laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild ``` -* Reset the data directory: +* Optionally, reset the data directory: ```bash # Stop the deployment @@ -199,7 +204,7 @@ Instructions to reset / update the deployments mkdir stage1-deployment/data/genesis-config ``` -* Update the configuration if required: +* Update the configuration, if required: ```bash cat < stage1-deployment/config.env @@ -216,7 +221,7 @@ Instructions to reset / update the deployments * Deployment dir: `/srv/console/laconic-console-deployment` -* Fetch and build with updated source code: +* If code has changed, fetch and build with updated source code: ```bash # testnet-onboarding-app source @@ -234,7 +239,7 @@ Instructions to reset / update the deployments laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers --force-rebuild ``` -* Update the configuration if required: +* Update the configuration, if required: ```bash cat < laconic-console-deployment/config.env diff --git a/stack-orchestrator/stacks/testnet-laconicd/README.md b/stack-orchestrator/stacks/testnet-laconicd/README.md index 78e7560..c0d52bd 100644 --- a/stack-orchestrator/stacks/testnet-laconicd/README.md +++ b/stack-orchestrator/stacks/testnet-laconicd/README.md @@ -244,7 +244,7 @@ laconic-so deployment --dir laconic-console-deployment start --from ' ``` -* View staking validators: +* View validators: ```bash laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators" diff --git a/testnet-onboarding-validator.md b/testnet-onboarding-validator.md index 3f0b5de..21fb7da 100644 --- a/testnet-onboarding-validator.md +++ b/testnet-onboarding-validator.md @@ -161,7 +161,7 @@ laconic-so deployment --dir testnet-laconicd-deployment start # `catching_up: false` indicates that node is completely synced ``` -* After the node has caught up, view current list of staking validators: +* After the node has caught up, view current list of validators: ```bash laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators" @@ -243,7 +243,7 @@ laconic-so deployment --dir testnet-laconicd-deployment start --from $KEY_NAME" ``` -* View staking validators: +* View validators: ```bash laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators"