Skip to content

Commit

Permalink
Merge pull request #60 from datachainlab/bump-eth-nodes
Browse files Browse the repository at this point in the history
bump geth and lodestar

Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele authored Nov 13, 2024
2 parents 55411a1 + 38004de commit d4efa39
Show file tree
Hide file tree
Showing 15 changed files with 3,622 additions and 8,410 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
17 changes: 6 additions & 11 deletions tests/e2e/chains/ethereum/Dockerfile.lodestar
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ ARG VERSION=latest
FROM chainsafe/lodestar:${VERSION}

# Install package of jq
RUN apk update && \
apk upgrade && \
apk add --no-cache \
jq curl coreutils && \
rm -rf /var/cache/apk/*
RUN apt-get update && \
apt-get install -y \
bash jq curl coreutils && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

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 ["sh", "/lodestar_entrypoint.sh"]
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.5
LODESTAR_VERSION ?= v1.19.0
GETH_VERSION ?= v1.14.11
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 @@ -54,23 +52,23 @@ services:
eth-localnet:

lodestar:
# https://hub.docker.com/r/chainsafe/lodestar
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 +77,7 @@ services:
interval: "5s"
timeout: "10s"
retries: 10
entrypoint: /scripts/lodestar_entrypoint.sh
command:
- dev
- --dataDir=/data
Expand All @@ -89,11 +88,11 @@ 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
Expand All @@ -102,11 +101,11 @@ services:
- --params.DENEB_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 +114,6 @@ services:
condition: service_healthy
networks:
eth-localnet:

# Send deposit function tx
deposit:
image: "deposit"
Expand All @@ -139,10 +137,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 Down Expand Up @@ -175,7 +176,6 @@ services:
networks:
eth-localnet:


networks:
eth-localnet:
name: eth-localnet
Expand Down
53 changes: 44 additions & 9 deletions tests/e2e/chains/ethereum/execution/genesis.json

Large diffs are not rendered by default.

Loading

0 comments on commit d4efa39

Please sign in to comment.