diff --git a/README.md b/README.md index 354b40f..747325c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ sudo chown 100:1000 ## Launch L1 node ``` -docker compose up -d +docker compose up -d erigon prysm ``` To check logs: @@ -70,3 +70,35 @@ curl -H "Content-Type: application/json" http://127.0.0.1:3500/eth/v1/beacon/hea ``` To convert hex number in the result to decimal, we can do `printf "%d\n" 0x` + +## Set up diagnostics + +First you need to build the diagnostics image: + +``` +git clone https://github.com/erigontech/diagnostics.git +cd diagnostics + +# Note: https://github.com/erigontech/diagnostics/pull/99 is needed to fix the build +make build-docker +``` + +Then start the diagnostics container: + +``` +docker compose up -d erigon-diagnostics +``` + +Now you can see the diagnostics page at `http://:8080` + +Follow the instructions [here](https://erigon.gitbook.io/erigon/diagnostic-tool/setup#id-3.-create-a-new-session-in-the-diagnostic-tool) to create a new session and copy the session pin + +Then set `DIAGNOSTICS_SESSION` in `.env` + +Now start the erigon-support container to connect the diagnostics session to the erigon node: + +``` +docker compose up -d erigon-support +``` + +Once the diagnostics tool is successfully connected to the Erigon node, return to your web browser and reload the page. diff --git a/sepolia/.env.example b/sepolia/.env.example index 475a945..ebac34f 100644 --- a/sepolia/.env.example +++ b/sepolia/.env.example @@ -1,2 +1,3 @@ ERIGON_DATA_DIR=/mnt/volume_sgp1_01/erigon/data PRYSM_DATA_DIR=/mnt/volume_sgp1_01/prysm/data +DIAGNOSTICS_SESSION= diff --git a/sepolia/docker-compose.yml b/sepolia/docker-compose.yml index 7a2f302..4abb4f3 100644 --- a/sepolia/docker-compose.yml +++ b/sepolia/docker-compose.yml @@ -15,12 +15,35 @@ services: - "8546:8546" - "8551:8551" - "30303:30303" + - "6060:6060" volumes: - ${ERIGON_DATA_DIR}:/home/erigon/.local/share/erigon restart: unless-stopped configs: - jwt.hex + erigon-support: + image: erigontech/erigon:v2.60.10 + container_name: erigon-support-sepolia + command: | + support --debug.addrs erigon:6060 + --diagnostics.addr erigon-diagnostics:8080 + --diagnostics.sessions ${DIAGNOSTICS_SESSION} + --insecure + depends_on: + - "erigon" + - "erigon-diagnostics" + restart: unless-stopped + + erigon-diagnostics: + image: diagnostics + container_name: erigon-diagnostics-sepolia + command: | + /diagnostics --addr="0.0.0.0" + ports: + - "8080:8080" + restart: unless-stopped + prysm: image: gcr.io/prysmaticlabs/prysm/beacon-chain:v5.1.2 container_name: prysm-sepolia