Add port mappings

This commit is contained in:
Prathamesh Musale 2024-08-09 15:44:00 +05:30
parent 688ae18249
commit 481f370763
5 changed files with 39 additions and 21 deletions

View File

@ -1,4 +1,4 @@
# deployments-from-scratch # Create deployments from scratch (for reference only)
## Login ## Login
@ -657,3 +657,14 @@
* The laconic console can now be viewed at <https://loro-console.laconic.com> * The laconic console can now be viewed at <https://loro-console.laconic.com>
</details> </details>
## 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
```

View File

@ -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 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`): * 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 ```bash
cd /srv/laconicd
cp ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd/output/genesis.json stage1-deployment/data/genesis-config/genesis.json cp ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd/output/genesis.json stage1-deployment/data/genesis-config/genesis.json
``` ```

View File

@ -1,4 +1,4 @@
# update-deployments # Update deployments after code changes
Instructions to reset / update the deployments Instructions to reset / update the deployments
@ -16,7 +16,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/laconicd/stage0-deployment` * 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 ```bash
# laconicd source # 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 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 ```bash
# Stop the deployment # Stop the deployment
@ -45,7 +45,7 @@ Instructions to reset / update the deployments
mkdir stage0-deployment/data/laconicd-data mkdir stage0-deployment/data/laconicd-data
``` ```
* Restart the deployment: * Start the deployment:
```bash ```bash
laconic-so deployment --dir stage0-deployment start 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 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 ```bash
cd /srv/faucet cd /srv/faucet
@ -65,9 +65,14 @@ Instructions to reset / update the deployments
CERC_FAUCET_KEY=$FAUCET_ACCOUNT_PK CERC_FAUCET_KEY=$FAUCET_ACCOUNT_PK
EOF EOF
# Restart the deployment # Stop the deployment
laconic-so deployment --dir laconic-faucet-deployment stop 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 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` * 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 ```bash
# testnet-onboarding-app source # 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 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 ```bash
cat <<EOF > onboarding-app-deployment/config.env cat <<EOF > onboarding-app-deployment/config.env
@ -125,7 +130,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/wallet/laconic-wallet-web-deployment` * 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 ```bash
# testnet-onboarding-app source # 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 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 ```bash
cat <<EOF > laconic-wallet-web-deployment/config.env cat <<EOF > laconic-wallet-web-deployment/config.env
@ -168,7 +173,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/laconicd/stage1-deployment` * 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 ```bash
# laconicd source # 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 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 ```bash
# Stop the deployment # Stop the deployment
@ -199,7 +204,7 @@ Instructions to reset / update the deployments
mkdir stage1-deployment/data/genesis-config mkdir stage1-deployment/data/genesis-config
``` ```
* Update the configuration if required: * Update the configuration, if required:
```bash ```bash
cat <<EOF > stage1-deployment/config.env cat <<EOF > stage1-deployment/config.env
@ -216,7 +221,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/console/laconic-console-deployment` * 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 ```bash
# testnet-onboarding-app source # 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 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 ```bash
cat <<EOF > laconic-console-deployment/config.env cat <<EOF > laconic-console-deployment/config.env

View File

@ -244,7 +244,7 @@ laconic-so deployment --dir laconic-console-deployment start
--from <key-name>' --from <key-name>'
``` ```
* View staking validators: * View validators:
```bash ```bash
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators" laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators"

View File

@ -161,7 +161,7 @@ laconic-so deployment --dir testnet-laconicd-deployment start
# `catching_up: false` indicates that node is completely synced # `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 ```bash
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators" 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" --from $KEY_NAME"
``` ```
* View staking validators: * View validators:
```bash ```bash
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators" laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators"