Add steps to update snowball and nitro node deployments

This commit is contained in:
Adw8 2024-10-30 13:21:26 +05:30
parent f5af37b4b2
commit b625c4e02f
2 changed files with 55 additions and 0 deletions

View File

@ -330,6 +330,8 @@ Instructions to reset / update the deployments
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify build-containers --force-rebuild laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-shopify build-containers --force-rebuild
``` ```
* Update `laconic-shopify-deployment/config.env` if required
* Restart the deployment * Restart the deployment
```bash ```bash
@ -339,3 +341,34 @@ Instructions to reset / update the deployments
laconic-so deployment --dir laconic-shopify-deployment start laconic-so deployment --dir laconic-shopify-deployment start
``` ```
## Backend Deployment
* Stack: <https://git.vdb.to/cerc-io/snowballtools-base-api-stack>
* Target dir: `/srv/deploy-backend/backend-deployment`
* If code has changed, fetch and build with updated source code:
```bash
laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend setup-repositories --git-ssh --pull
# rebuild containers
laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend build-containers --force-rebuild
```
* Update `backend-deployment/configmaps/config/prod.toml` if required
* Restart the deployment
```bash
cd /srv/deploy-backend/backend-deployment
laconic-so deployment --dir backend-deployment stop
laconic-so deployment --dir backend-deployment start
```
## Frontend Deployment
Follow steps from [deployments-from-scratch.md](./deployments-from-scratch.md#deploy-frontend) to deploy the snowball frontend

View File

@ -728,6 +728,28 @@ Perform swaps using a swap channel created with another Nitro node over the mirr
# ] # ]
``` ```
## Update nitro nodes
Run the following commands in the deployment machine
* Rebuild containers
```bash
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node build-containers --force-rebuild
```
* Restart the nodes
```bash
cd <path-to-nitro-node-deployments>
laconic-so deployment --dir l1-nitro-deployment stop
laconic-so deployment --dir l1-nitro-deployment start
laconic-so deployment --dir l2-nitro-deployment stop
laconic-so deployment --dir l2-nitro-deployment start
```
## Clean up ## Clean up
* Switch to deployments dir: * Switch to deployments dir: