Prerequisites

Before you begin:

  1. Install Docker:

  2. Install Kurtosis CLI:

    curl -fsSL <https://get.kurtosis.com> | bash
    
    
  3. Install Go:

  4. Clone the Beacon-Kit repository:

    git clone <https://github.com/berachain/beacon-kit>
    cd beacon-kit
    
    

1. Deploying Berachain Nodes with Kurtosis

Kurtosis simplifies the process of spinning up Berachain clusters. Here's how:

Step 1: Create a Kurtosis Package

Clone or download the Kurtosis package for Berachain:

git clone <https://github.com/berachain/kurtosis-package.git>
cd kurtosis-package

Step 2: Configure and Deploy the Network

Run the following commands to deploy a Berachain cluster:

kurtosis run ./path-to-kurtosis-package \\\\
  --enclave-name=my-berachain-enclave \\\\
  --config ./path-to-config-file.yaml

Replace path-to-config-file.yaml with your configuration file. Use the Kurtosis documentation for detailed configuration options.

Step 3: Interact with the Cluster

Once the cluster is up, you can interact with the nodes using the JSON-RPC endpoints provided in the output.


2. Using Snapshots for Node Recovery