Update container build
This commit is contained in:
parent
61a3ead68b
commit
acf318f366
@ -1577,29 +1577,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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user