Skip to content

Commit

Permalink
bump for pectra-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
toshihiko-okubo committed Nov 12, 2024
1 parent 5dcc926 commit 5edb6f3
Show file tree
Hide file tree
Showing 16 changed files with 3,583 additions and 8,392 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/chains/ethereum/Dockerfile.deposit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine3.17
FROM node:20-alpine

WORKDIR /app
COPY ./tools/deposit ./
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/chains/ethereum/Dockerfile.geth
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG VERSION=latest
FROM ethereum/client-go:${VERSION}
FROM docker.io/ethpandaops/geth:${VERSION}

# For health check
RUN apk add --no-cache curl
Expand Down
7 changes: 1 addition & 6 deletions tests/e2e/chains/ethereum/Dockerfile.lodestar
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG VERSION=latest
FROM chainsafe/lodestar:${VERSION}
FROM docker.io/ethpandaops/lodestar:${VERSION}

# Install package of jq
RUN apt-get update && \
Expand All @@ -10,9 +10,4 @@ RUN apt-get update && \

COPY ./scripts/lodestar_entrypoint.sh /lodestar_entrypoint.sh

ARG GETH_HTTP_PORT
ARG BEACON_HTTP_PORT
ENV GETH_HTTP_PORT=$GETH_HTTP_PORT
ENV BEACON_HTTP_PORT=$BEACON_HTTP_PORT

ENTRYPOINT ["bash", "/lodestar_entrypoint.sh"]
4 changes: 2 additions & 2 deletions tests/e2e/chains/ethereum/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GETH_HTTP_PORT ?= 8546
BEACON_HTTP_PORT ?= 19596
GETH_VERSION ?= v1.14.11
LODESTAR_VERSION ?= v1.22.0
GETH_VERSION ?= lightclient-prague-devnet-4-37035c5
LODESTAR_VERSION ?= v1.23.0
DOCKER_COMPOSE ?= docker compose
COMPOSE_UP_OPTS ?= -d
HARDHAT ?= npx hardhat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ volumes:
lodestar-storage: {}
validator-storage: {}
logs:
prometheus:
grafana:

services:
# Runs the go-ethereum execution client with the specified, unlocked account and necessary
Expand Down Expand Up @@ -55,22 +53,24 @@ services:

lodestar:
# https://hub.docker.com/r/chainsafe/lodestar
# image: chainsafe/lodestar:local
image: "lodestar-localnet:${LODESTAR_VERSION:-latest}"
build:
context: .
dockerfile: ./Dockerfile.lodestar
args:
- VERSION=${LODESTAR_VERSION:-latest}
- GETH_HTTP_PORT=${GETH_HTTP_PORT:-8545}
- BEACON_HTTP_PORT=${BEACON_HTTP_PORT:-9596}
container_name: lodestar
volumes:
- lodestar-storage:/data
- ./scripts/lodestar_entrypoint.sh:/scripts/lodestar_entrypoint.sh
- ./config/jwtsecret:/secret/jwtsecret
- ./consensus:/validator-data
- logs:/logs
environment:
- NODE_OPTIONS=--max-old-space-size=4096
- NODE_OPTIONS=--max-old-space-size=8192
- GETH_HTTP_PORT=${GETH_HTTP_PORT:-8545}
- BEACON_HTTP_PORT=${BEACON_HTTP_PORT:-9596}
ports:
- "8008:8008" # Metrics port
- ${BEACON_HTTP_PORT:-9596}:${BEACON_HTTP_PORT:-9596} # REST API port
Expand All @@ -79,6 +79,7 @@ services:
interval: "5s"
timeout: "10s"
retries: 10
entrypoint: /scripts/lodestar_entrypoint.sh
command:
- dev
- --dataDir=/data
Expand All @@ -89,24 +90,25 @@ services:
- --genesisEth1Hash=$${genesisHash} # If present it will create genesis with this eth1 hash
- --enr.ip=127.0.0.1
- --rest
- --rest.port=$${BEACON_HTTP_PORT}
- --rest.port=${BEACON_HTTP_PORT}
- --rest.address=0.0.0.0
- --rest.namespace="*"
- --eth1=true
- --eth1.providerUrls=http://geth:$${GETH_HTTP_PORT}
- --eth1.providerUrls=http://geth:${GETH_HTTP_PORT}
- --execution.urls=http://geth:8551
- --terminal-total-difficulty-override=0
- --params.ALTAIR_FORK_EPOCH=0
- --params.BELLATRIX_FORK_EPOCH=0
- --params.CAPELLA_FORK_EPOCH=0
- --params.DENEB_FORK_EPOCH=0
- --params.ELECTRA_FORK_EPOCH=0
- --params.DEPOSIT_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242
- --suggestedFeeRecipient=0xa89F47C6b463f74d87572b058427dA0A13ec5425
- --beaconNodes=http://127.0.0.1:$${BEACON_HTTP_PORT}
- --beaconNodes=http://127.0.0.1:${BEACON_HTTP_PORT}
- --reset
- --metrics
- --metrics.address=0.0.0.0
- --logLevel=debug
- --logLevel=info
- --logFile=/logs/beacon.log
- --logFileLevel=debug
- --logFileDailyRotate=5
Expand All @@ -115,7 +117,6 @@ services:
condition: service_healthy
networks:
eth-localnet:

# Send deposit function tx
deposit:
image: "deposit"
Expand All @@ -139,10 +140,13 @@ services:
container_name: lodestar-validator
volumes:
- validator-storage:/data
- ./scripts/lodestar_entrypoint.sh:/scripts/lodestar_entrypoint.sh
- ./consensus:/validator-data
- logs:/logs
environment:
- NODE_OPTIONS=--max-old-space-size=4096
- NODE_OPTIONS=--max-old-space-size=8192
- GETH_HTTP_PORT=${GETH_HTTP_PORT:-8545}
- BEACON_HTTP_PORT=${BEACON_HTTP_PORT:-9596}
command:
- validator
- --network=dev
Expand All @@ -151,6 +155,7 @@ services:
- --params.BELLATRIX_FORK_EPOCH=0
- --params.CAPELLA_FORK_EPOCH=0
- --params.DENEB_FORK_EPOCH=0
- --params.ELECTRA_FORK_EPOCH=0
- --params.DEPOSIT_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242
- --suggestedFeeRecipient=0xa89F47C6b463f74d87572b058427dA0A13ec5425
- --beaconNodes=http://lodestar:$${BEACON_HTTP_PORT}
Expand All @@ -162,7 +167,7 @@ services:
depends_on:
deposit:
condition: service_completed_successfully

# Deploy contracts via hardhat
contracts:
image: "node:18"
Expand All @@ -175,7 +180,6 @@ services:
networks:
eth-localnet:


networks:
eth-localnet:
name: eth-localnet
Expand Down
51 changes: 43 additions & 8 deletions tests/e2e/chains/ethereum/execution/genesis.json

Large diffs are not rendered by default.

Loading

0 comments on commit 5edb6f3

Please sign in to comment.