Update container build

This commit is contained in:
Prathamesh Musale 2024-10-18 12:36:39 +05:30
parent 1f82257749
commit aeca1aaefc
2 changed files with 3 additions and 23 deletions

View File

@ -1038,29 +1038,9 @@
# This should clone the laconicd repo at `/home/dev/cerc/laconicd`
```
* Build the stage1 container image (required for exporting stage1 data):
* Build the container images:
```bash
# Checkout to laconicd tag used for stage1
cd ~/cerc/laconicd
git checkout v0.1.7
cd -
# Build
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
# Create required tag
docker tag cerc/laconicd:local cerc/laconicd-stage1:local
```
* Build the stage2 container image:
```bash
# Checkout to latest laconicd
cd ~/cerc/laconicd
git checkout main
cd -
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
# This should create the "cerc/laconicd" Docker image

View File

@ -44,7 +44,7 @@
* Archive the state and node config and keys:
```bash
sudo tar -czf /srv/laconicd/stage1-laconicd-export.tar.gz --exclude="./data" -C $STAGE1_DEPLOYMENT/data/laconicd-data .
sudo tar -czf /srv/laconicd/stage1-laconicd-export.tar.gz --exclude="./data" --exclude="./tmp" -C $STAGE1_DEPLOYMENT/data/laconicd-data .
sudo chown dev:dev /srv/laconicd/stage1-laconicd-export.tar.gz
```
@ -67,7 +67,7 @@
cd /srv/laconicd
# Unarchive
tar -xzf stage1-laconicd-config.tar.gz -C stage2-deployment/data/laconicd-data
tar -xzf stage1-laconicd-export.tar.gz -C stage2-deployment/data/laconicd-data
# Verify contents
ll stage2-deployment/data/laconicd-data