From 436dfb0bfee9fa6622fd80bd398233dac436b25d Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 29 Oct 2024 10:15:39 +0530 Subject: [PATCH] Update stage1 deployment directory --- ops/deployments-from-scratch.md | 6 ++++++ ops/stage1-to-stage2.md | 10 +++++----- testnet-onboarding-validator.md | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ops/deployments-from-scratch.md b/ops/deployments-from-scratch.md index 3a510ab..4b991ff 100644 --- a/ops/deployments-from-scratch.md +++ b/ops/deployments-from-scratch.md @@ -937,6 +937,9 @@ ```bash laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console deploy create --spec-file laconic-console-testnet2-spec.yml --deployment-dir laconic-console-testnet2-deployment + + # Place console deployment in the same cluster as stage2 deployment + cp ../stage2-deployment/deployment.yml laconic-console-testnet2-deployment/deployment.yml ``` * Update the configuration: @@ -945,6 +948,9 @@ cat < laconic-console-testnet2-deployment/config.env # Laconicd (hosted) GQL endpoint LACONIC_HOSTED_ENDPOINT=https://laconicd-sapo.laconic.com + + # laconicd chain id + CERC_LACONICD_CHAIN_ID=laconic-testnet-2 EOF ``` diff --git a/ops/stage1-to-stage2.md b/ops/stage1-to-stage2.md index eb7925e..3c62451 100644 --- a/ops/stage1-to-stage2.md +++ b/ops/stage1-to-stage2.md @@ -16,15 +16,17 @@ ```bash # On stage1 deployment machine - cd /srv/laconicd + STAGE1_DEPLOYMENT=/srv/laconicd/testnet-laconicd-deployment - laconic-so deployment --dir stage1-deployment logs laconicd -f --tail 30 + laconic-so deployment --dir $STAGE1_DEPLOYMENT logs laconicd -f --tail 30 + + # Note: stage1 node on deployments VM has been changed to run from /srv/laconicd/testnet-laconicd-deployment instead of /srv/laconicd/stage1-deployment ``` * Stop the stage1 deployment: ```bash - laconic-so deployment --dir stage1-deployment stop + laconic-so deployment --dir $STAGE1_DEPLOYMENT stop # Stopping this deployment marks the end of testnet stage1 ``` @@ -34,8 +36,6 @@ * Export the chain state: ```bash - STAGE1_DEPLOYMENT=/srv/laconicd/stage1-deployment - docker run -it \ -v $STAGE1_DEPLOYMENT/data/laconicd-data:/root/.laconicd \ cerc/laconicd-stage1:local bash -c "laconicd export | jq > /root/.laconicd/stage1-state.json" diff --git a/testnet-onboarding-validator.md b/testnet-onboarding-validator.md index 74e7dc7..4f4ebf7 100644 --- a/testnet-onboarding-validator.md +++ b/testnet-onboarding-validator.md @@ -63,6 +63,8 @@ ```bash laconic-so fetch-stack git.vdb.to/cerc-io/testnet-laconicd-stack + + # See stack documentation stack-orchestrator/stacks/testnet-laconicd/README.md for more details ``` * Clone required repositories: