57 lines
1.2 KiB
Markdown
57 lines
1.2 KiB
Markdown
# eth
|
|
|
|
## Setup
|
|
|
|
* Clone the stack repo:
|
|
|
|
```bash
|
|
laconic-so fetch-stack git.vdb.to/cerc-io/eth-stack
|
|
```
|
|
|
|
## Create a deployment
|
|
|
|
* First, create a spec file for the deployment, which will map the stack's ports and volumes to the host:
|
|
|
|
```bash
|
|
laconic-so --stack ~/cerc/eth-stack/stack-orchestrator/stacks/eth deploy init --output eth-spec.yml
|
|
```
|
|
|
|
* Once you've made any needed changes to the spec file, create a deployment from it:
|
|
|
|
```bash
|
|
laconic-so --stack ~/cerc/eth-stack/stack-orchestrator/stacks/eth deploy create --spec-file eth-spec.yml --deployment-dir eth-deployment
|
|
```
|
|
|
|
* Inside the `eth-deployment` deployment directory, open `config.env` file and set following env variables:
|
|
|
|
```bash
|
|
# Optional
|
|
# Allow unprotected txs
|
|
CERC_ALLOW_UNPROTECTED_TXS=true
|
|
```
|
|
|
|
## Start
|
|
|
|
* Start the deployment:
|
|
|
|
```bash
|
|
laconic-so deployment --dir eth-deployment start
|
|
```
|
|
|
|
## Clean up
|
|
|
|
* To stop all services running in the background, while preserving chain data:
|
|
|
|
```bash
|
|
laconic-so deployment --dir eth-deployment stop
|
|
```
|
|
|
|
* To stop all services and also delete chain data:
|
|
|
|
```bash
|
|
laconic-so deployment --dir eth-deployment stop --delete-volumes
|
|
|
|
# Remove the deployment dir
|
|
sudo rm -rf eth-deployment
|
|
```
|