Skip to content

Commit f40acff

Browse files
committed
try rm-ing op-reth as base-reth-node is rec client
1 parent 78bbb5a commit f40acff

3 files changed

Lines changed: 4 additions & 27 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ jobs:
9090
matrix:
9191
settings:
9292
- arch: linux/amd64
93-
runs-on: ubuntu-24.04-64core
93+
runs-on: ubuntu-24.04
9494
features: jemalloc,asm-keccak,optimism
9595
- arch: linux/arm64
96-
runs-on: ubuntu-24.04-arm-64core
96+
runs-on: ubuntu-24.04-arm
9797
features: jemalloc,optimism
9898
runs-on: ${{ matrix.settings.runs-on }}
9999
steps:

reth/Dockerfile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ RUN . /tmp/versions.env && git clone $OP_NODE_REPO --branch $OP_NODE_TAG --singl
1313
RUN . /tmp/versions.env && cd op-node && \
1414
make VERSION=$OP_NODE_TAG op-node
1515

16-
FROM rust:1.88 AS reth
17-
18-
WORKDIR /app
19-
20-
COPY versions.env /tmp/versions.env
21-
22-
RUN apt-get update && apt-get -y upgrade && apt-get install -y git libclang-dev pkg-config curl build-essential
23-
24-
RUN . /tmp/versions.env && git clone $OP_RETH_REPO --branch $OP_RETH_TAG --single-branch . && \
25-
git switch -c branch-$OP_RETH_TAG && \
26-
bash -c '[ "$(git rev-parse HEAD)" = "$OP_RETH_COMMIT" ]'
27-
28-
RUN cargo build --bin op-reth --profile maxperf --manifest-path crates/optimism/bin/Cargo.toml
29-
3016
FROM rust:1.88 AS reth-base
3117

3218
WORKDIR /app
@@ -41,7 +27,7 @@ RUN . /tmp/versions.env && git clone $BASE_RETH_NODE_REPO . && \
4127
git checkout tags/$BASE_RETH_NODE_TAG && \
4228
bash -c '[ "$(git rev-parse HEAD)" = "$BASE_RETH_NODE_COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
4329

44-
RUN cargo build --bin base-reth-node --profile maxperf --features jemalloc
30+
RUN cargo build --bin base-reth-node --profile maxperf
4531

4632
FROM ubuntu:24.04
4733

@@ -53,7 +39,6 @@ RUN mkdir -p /var/log/supervisor
5339
WORKDIR /app
5440

5541
COPY --from=op /app/op-node/bin/op-node ./
56-
COPY --from=reth /app/target/maxperf/op-reth ./
5742
COPY --from=reth-base /app/target/maxperf/base-reth-node ./
5843
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
5944
COPY ./reth/reth-entrypoint ./execution-entrypoint

reth/reth-entrypoint

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ DISCOVERY_PORT="${DISCOVERY_PORT:-30303}"
1111
P2P_PORT="${P2P_PORT:-30303}"
1212
ADDITIONAL_ARGS=""
1313
NODE_TYPE="${NODE_TYPE:-base}"
14+
BINARY="./base-reth-node"
1415

1516
if [[ -z "${RETH_CHAIN:-}" ]]; then
1617
echo "expected RETH_CHAIN to be set" 1>&2
@@ -23,15 +24,6 @@ if [[ "$NODE_TYPE" == "base" && -n "${RETH_FB_WEBSOCKET_URL:-}" ]]; then
2324
echo "Enabling Flashblocks support with endpoint: $RETH_FB_WEBSOCKET_URL"
2425
fi
2526

26-
# Select binary based on NODE_TYPE
27-
if [[ "$NODE_TYPE" == "base" ]]; then
28-
echo "Starting Base Reth node"
29-
BINARY="./base-reth-node"
30-
else
31-
echo "Starting OP Reth node"
32-
BINARY="./op-reth"
33-
fi
34-
3527
# Add pruning for base
3628
if [[ "$NODE_TYPE" == "base" && "${RETH_PRUNING_ARGS+x}" = x ]]; then
3729
echo "Adding pruning arguments: $RETH_PRUNING_ARGS"

0 commit comments

Comments
 (0)