Add instructions to update stage1 and console deployments

This commit is contained in:
Prathamesh Musale 2024-08-09 15:10:54 +05:30
parent ec9a745932
commit 17f53942ae
2 changed files with 94 additions and 2 deletions

View File

@ -215,7 +215,7 @@
* Update the configuration:
```bash
cat <<EOF > laconic-console-deployment/config.env
cat <<EOF > onboarding-app-deployment/config.env
WALLET_CONNECT_ID=63...
CERC_REGISTRY_GQL_ENDPOINT="https://laconicd.laconic.com/api"

View File

@ -96,7 +96,7 @@ Instructions to reset / update the deployments
* Update the configuration if required:
```bash
cat <<EOF > laconic-console-deployment/config.env
cat <<EOF > onboarding-app-deployment/config.env
WALLET_CONNECT_ID=63...
CERC_REGISTRY_GQL_ENDPOINT="https://laconicd.laconic.com/api"
@ -163,3 +163,95 @@ Instructions to reset / update the deployments
```
* The web wallet can now be viewed at <https://wallet.laconic.com>
## stage1 laconicd
* Deployment dir: `/srv/laconicd/stage1-deployment`
* Fetch and build with updated source code:
```bash
# laconicd source
cd ~/cerc/laconicd
# Pull latest changes, or checkout to the required branch
git pull
# Confirm the latest commit hash
git log
# Rebuild the containers
cd /srv/laconicd
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
```
* Reset the data directory:
```bash
# Stop the deployment
laconic-so deployment --dir stage1-deployment stop --delete-volumes
# Remove and recreate the required data dirs
sudo rm -rf stage1-deployment/data/laconicd-data stage1-deployment/data/genesis-config
mkdir stage1-deployment/data/laconicd-data
mkdir stage1-deployment/data/genesis-config
```
* Update the configuration if required:
```bash
cat <<EOF > stage1-deployment/config.env
AUTHORITY_AUCTION_ENABLED=true
AUTHORITY_AUCTION_COMMITS_DURATION=3600
AUTHORITY_AUCTION_REVEALS_DURATION=3600
AUTHORITY_GRACE_PERIOD=7200
EOF
```
* Follow [stage0-to-stage1.md](./stage0-to-stage1.md) to generate the genesis file for stage1 and start the deployment
## laconic-console
* Deployment dir: `/srv/console/laconic-console-deployment`
* Fetch and build with updated source code:
```bash
# testnet-onboarding-app source
cd ~/cerc/laconic-console
# Pull latest changes, or checkout to the required branch
git pull
# Confirm the latest commit hash
git log
# Rebuild the containers
cd /srv/console
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers --force-rebuild
```
* Update the configuration if required:
```bash
cat <<EOF > laconic-console-deployment/config.env
# Laconicd (hosted) GQL endpoint
LACONIC_HOSTED_ENDPOINT=https://laconicd.laconic.com
EOF
```
* Restart the deployment:
```bash
laconic-so deployment --dir laconic-console-deployment stop
laconic-so deployment --dir laconic-console-deployment start
# Follow logs for console container
laconic-so deployment --dir laconic-console-deployment logs console -f
```
* The laconic console can now be viewed at <https://loro-console.laconic.com>