Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions compose.charon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ services:
CHARON_P2P_EXTERNAL_HOSTNAME: node2
CHARON_BEACON_NODE_ENDPOINTS: ${BN_2}

node3:
<<: *node-base
container_name: node3
#depends_on: [ relay ]
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node3/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node3/cluster-lock.json
CHARON_JAEGER_SERVICE: node3
CHARON_P2P_EXTERNAL_HOSTNAME: node3
CHARON_BEACON_NODE_ENDPOINTS: ${BN_2}

# _
# | |
# _ __ ___| | __ _ _ _
Expand Down
35 changes: 31 additions & 4 deletions compose.prysm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ x-prysm-base: &prysm-base
x-prysm-volume-run: &prysm-volume-run ./prysm/run.sh:/home/prysm/run.sh
x-prysm-volume-config: &prysm-volume-config ./testnet/config.yaml:/home/data/config.yaml

x-lodestar-base: &lodestar-base
image: chainsafe/lodestar:v1.40.0
networks: [network1]
restart: unless-stopped
entrypoint: /opt/lodestar/run.sh
user: "${DUID:-}:${DGID:-}" # Used by docker-in-docker as it's based on linux

x-lodestar-env: &lodestar-env
BUILDER_API_ENABLED: true

x-lodestar-volume-run: &lodestar-volume-run ./lodestar/run.sh:/opt/lodestar/run.sh
x-lodestar-volume-config: &lodestar-volume-config ./testnet/config.yaml:/opt/lodestar/config.yaml

services:
vc0-prysm:
<<: *prysm-base
Expand All @@ -35,15 +48,29 @@ services:
- *prysm-volume-config
- .charon/cluster/node1/validator_keys:/home/charon/validator_keys

vc2-prysm:
<<: *prysm-base
vc2-lodestar:
<<: *lodestar-base
depends_on: [node2]
environment:
<<: *lodestar-env
BEACON_NODE_ADDRESS: "http://node2:3600"
volumes:
- *prysm-volume-run
- *prysm-volume-config
- *lodestar-volume-run
- *lodestar-volume-config
- .charon/cluster/node2/validator_keys:/home/charon/validator_keys
- ./data/lodestar/vc2:/opt/data

vc3-lodestar:
<<: *lodestar-base
depends_on: [node3]
environment:
<<: *lodestar-env
BEACON_NODE_ADDRESS: "http://node3:3600"
volumes:
- *lodestar-volume-run
- *lodestar-volume-config
- .charon/cluster/node3/validator_keys:/home/charon/validator_keys
- ./data/lodestar/vc3:/opt/data

networks:
network1:
Expand Down
2 changes: 1 addition & 1 deletion deployments/env/charon.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CHARON_IMAGE=obolnetwork/charon
CHARON_VERSION=v1.9.0
CHARON_VERSION=v1.9.2

EXTERNAL_MONITORING=true
4 changes: 2 additions & 2 deletions deployments/env/cl_prysm.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CL_TYPE=prysm
CL_IMAGE=gcr.io/prysmaticlabs/prysm/beacon-chain
CL_VERSION=v7.1.3
CL_IMAGE=gcr.io/offchainlabs/prysm/beacon-chain
CL_VERSION=james-branch-dc35ef8834
4 changes: 2 additions & 2 deletions deployments/env/vc_prysm.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VC_TYPE=prysm
VC_IMAGE=gcr.io/prysmaticlabs/prysm/validator
VC_VERSION=v7.1.2
VC_IMAGE=gcr.io/offchainlabs/prysm/validator
VC_VERSION=james-branch-dc35ef8834
11 changes: 10 additions & 1 deletion prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ scrape_configs:
- job_name: "charon-2"
static_configs:
- targets: ["node2:3620"]
- job_name: "charon-3"
static_configs:
- targets: ["node3:3620"]
- job_name: "vc-lighthouse"
static_configs:
- targets:
Expand All @@ -24,7 +27,13 @@ scrape_configs:
- targets: ["vc0-nimbus:8008", "vc1-nimbus:8008", "vc2-nimbus:8008"]
- job_name: "vc-lodestar"
static_configs:
- targets: ["vc0-lodestar:5064", "vc1-lodestar:5064", "vc2-lodestar:5064"]
- targets:
[
"vc0-lodestar:5064",
"vc1-lodestar:5064",
"vc2-lodestar:5064",
"vc3-lodestar:5064",
]
- job_name: "vc-prysm"
static_configs:
- targets: ["vc0-prysm:8081", "vc1-prysm:8081", "vc2-prysm:8081"]
Expand Down
2 changes: 1 addition & 1 deletion setup_charon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ if [ -n "$genesis_time" ]; then
# Create charon cluster.
docker run -u $(id -u):$(id -g) --rm -v "$(pwd)/:/opt/charon" ${CHARON_IMAGE}:"${CHARON_VERSION}" create cluster \
--name="$CLUSTER_NAME" \
--nodes=3 \
--nodes=4 \
--fee-recipient-addresses="0x8943545177806ED17B9F23F0a21ee5948eCaa776" \
--withdrawal-addresses="0xBc7c960C1097ef1Af0FD32407701465f3c03e407" \
--split-existing-keys \
Expand Down
Loading