Update container build
This commit is contained in:
parent
1f82257749
commit
aeca1aaefc
@ -1038,29 +1038,9 @@
|
|||||||
# This should clone the laconicd repo at `/home/dev/cerc/laconicd`
|
# 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
|
```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
|
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
|
||||||
|
|
||||||
# This should create the "cerc/laconicd" Docker image
|
# This should create the "cerc/laconicd" Docker image
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
* Archive the state and node config and keys:
|
* Archive the state and node config and keys:
|
||||||
|
|
||||||
```bash
|
```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
|
sudo chown dev:dev /srv/laconicd/stage1-laconicd-export.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -67,7 +67,7 @@
|
|||||||
cd /srv/laconicd
|
cd /srv/laconicd
|
||||||
|
|
||||||
# Unarchive
|
# 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
|
# Verify contents
|
||||||
ll stage2-deployment/data/laconicd-data
|
ll stage2-deployment/data/laconicd-data
|
||||||
|
Loading…
Reference in New Issue
Block a user