Run a Node With Docker
This tutorial will walk you through the process of using Docker to run an BOBA Sepolia node, OP Mainnet node and OP Sepolia node. You can find all Docker Compose files here.
Prerequisites
Setup
Clone the boba
repository to get started
Configuration
Configuration for the docker-compose
is handled through environment variables inside of an .env
file.
Create an .env
file
.env
fileThe repository includes a sample environment variable file located at .env.example
that you can copy and modify to get started. Make a copy of this file and name it .env
.
Configure the .env
file
.env
fileOpen the .env
in your directory and set the variables inside. Read the descriptions of each variable to understand what they do and how to set them. Read the software release page to set the correct version.
DB Configuration
Download Snapshots
You can download the database snapshot for the client and network you wish to run.
Always verify snapshots by comparing the sha256sum of the downloaded file to the sha256sum listed on this page. Check the sha256sum of the downloaded file by running sha256sum <filename>
in a terminal.
BOBA Mainnet
The erigon db can be downloaded from the boba mainnet erigon db.
The geth db can be downloaded from boba mainnet geth db.
BOBA Sepolia
The erigon db can be downloaded from the boba sepolia erigon db.
The geth db can be downloaded from boba sepolia geth db.
OP Mainnet
The erigon db can be downloaded from Test in Prod OP Mainnet.
OP Sepolia
The erigon db can be downloaded from optimism sepolia erigon db.
Or you can download the genesis file from Optimsim and initialize the data directory with it.
The erigon can be built from the source using
make erigon
.
Extract Snapshots
Once you've downloaded the database snapshot, you'll need to extract it to a directory on your machine. This will take some time to complete.
Create a Shared Secret (JWT Token)
Modify Volume Location
The volumes of l2 and op-node should be modified to your file locations.
Run the Node
Once you've configured your .env
file, you can run the node using Docker Compose. The following command will start the node in the background.
Optional: Run the Node with Geth
We support both geth and erigon as the execution engines for Boba Mainnet node. You can start the node with geth using the following command:
Operating the Node
Start
Will start the node in a detatched shell (-d
), meaning the node will continue to run in the background.
View Logs
To view logs of all containers.
Stop
Wipe [DANGER]
Last updated