Add steps to setup stage1 deployment
This commit is contained in:
parent
0aa5e4203f
commit
670294593a
@ -585,4 +585,75 @@
|
|||||||
|
|
||||||
## stage1 laconicd
|
## stage1 laconicd
|
||||||
|
|
||||||
|
* Stack: <https://git.vdb.to/cerc-io/fixturenet-laconicd-stack/src/branch/main/stack-orchestrator/stacks/fixturenet-laconicd>
|
||||||
|
|
||||||
|
* Source repo: <https://git.vdb.to/cerc-io/laconicd>
|
||||||
|
|
||||||
|
* Target dir: `/srv/laconicd/stage1-deployment`
|
||||||
|
|
||||||
|
* Cleanup an existing deployment if required:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /srv/laconicd
|
||||||
|
|
||||||
|
# Stop the deployment
|
||||||
|
laconic-so deployment --dir stage1-deployment stop --delete-volumes
|
||||||
|
|
||||||
|
# Remove the deployment dir
|
||||||
|
sudo rm -rf stage1-deployment
|
||||||
|
|
||||||
|
# Remove the existing spec file
|
||||||
|
rm stage1-spec.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
|
||||||
|
* Same as that for [stage0 laconicd](#setup), not required if already done for stage0
|
||||||
|
|
||||||
|
### Deployment
|
||||||
|
|
||||||
|
* Create a spec file for the deployment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /srv/laconicd
|
||||||
|
|
||||||
|
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy init --output stage1-spec.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
* Edit network in the spec file to map container ports to host ports:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# stage1-spec.yml
|
||||||
|
network:
|
||||||
|
ports:
|
||||||
|
laconicd:
|
||||||
|
- '6060'
|
||||||
|
- '127.0.0.1:26657:26657'
|
||||||
|
- '26656:26656'
|
||||||
|
- '127.0.0.1:9473:9473'
|
||||||
|
- '127.0.0.1:9090:9090'
|
||||||
|
- '127.0.0.1:1317:1317'
|
||||||
|
```
|
||||||
|
|
||||||
|
* Create a deployment from the spec file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy create --spec-file stage1-spec.yml --deployment-dir stage1-deployment
|
||||||
|
```
|
||||||
|
|
||||||
|
* Update the configuration:
|
||||||
|
|
||||||
|
```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
|
||||||
|
```
|
||||||
|
|
||||||
|
### Start
|
||||||
|
|
||||||
|
Follow [stage0-to-stage1.md](./stage0-to-stage1.md) to halt stage0 deployment, generate the genesis file for stage1 and start the stage1 deployment
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
1
ops/stage0-to-stage1.md
Normal file
1
ops/stage0-to-stage1.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# stage0-to-stage1
|
Loading…
Reference in New Issue
Block a user