eth-stack/stack-orchestrator/stacks/eth
2024-09-04 12:40:53 +05:30
..
README.md Add a service to run a geth node 2024-09-04 12:40:53 +05:30
stack.yml Add a service to run a geth node 2024-09-04 12:40:53 +05:30

eth

Setup

  • Clone the stack repo:

    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:

    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:

    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:

    # Optional
    # Allow unprotected txs
    CERC_ALLOW_UNPROTECTED_TXS=true
    

Start

  • Start the deployment:

    laconic-so deployment --dir eth-deployment start
    

Clean up

  • To stop all services running in the background, while preserving chain data:

    laconic-so deployment --dir eth-deployment stop
    
  • To stop all services and also delete chain data:

    laconic-so deployment --dir eth-deployment stop --delete-volumes
    
    # Remove the deployment dir
    sudo rm -rf eth-deployment