Skip to content
Merged
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
35 changes: 14 additions & 21 deletions geth/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
FROM golang:1.22 AS op
FROM golang:1.23 AS op

RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.13.2
ENV COMMIT=c8b9f62736a7dad7e569719a84c406605f4472e6
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
COPY versions.env /tmp/versions.env

# Install 'just'
RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin
RUN . /tmp/versions.env && git clone $OP_NODE_REPO --branch $OP_NODE_TAG --single-branch . && \
git switch -c branch-$OP_NODE_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$OP_NODE_COMMIT" ]'

RUN cd op-node && \
make VERSION=$VERSION op-node
RUN . /tmp/versions.env && cd op-node && \
make VERSION=$OP_NODE_TAG op-node

FROM golang:1.22 AS geth

WORKDIR /app

RUN apt-get update && \
apt-get install -y \
build-essential

ENV REPO=https://github.com/ethereum-optimism/op-geth.git
ENV VERSION=v1.101503.4
ENV COMMIT=2b9abb39077cb88f6e8a513f09a5ea2c2569dfed
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
COPY versions.env /tmp/versions.env

RUN . /tmp/versions.env && git clone $OP_GETH_REPO --branch $OP_GETH_TAG --single-branch . && \
git switch -c branch-$OP_GETH_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$OP_GETH_COMMIT" ]'

RUN go run build/ci.go install -static ./cmd/geth

Expand Down
30 changes: 14 additions & 16 deletions nethermind/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
FROM golang:1.23 AS op

RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.13.3
ENV COMMIT=b1e7c63bb2ffea46771c302bcb05f72ba1a7bf61
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
COPY versions.env /tmp/versions.env

# Install 'just'
RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin
RUN . /tmp/versions.env && git clone $OP_NODE_REPO --branch $OP_NODE_TAG --single-branch . && \
git switch -c branch-$OP_NODE_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$OP_NODE_COMMIT" ]'

RUN cd op-node && \
just VERSION=$VERSION op-node
RUN . /tmp/versions.env && cd op-node && \
just VERSION=$OP_NODE_TAG op-node

FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build

Expand All @@ -22,12 +20,12 @@ ARG TARGETARCH

WORKDIR /app

ENV REPO=https://github.com/NethermindEth/nethermind.git
ENV VERSION=1.31.11
ENV COMMIT=2be1890ee4f21f921a471de058dcb57937bd9b90
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c $VERSION
RUN bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
COPY versions.env /tmp/versions.env

RUN . /tmp/versions.env && git clone $NETHERMIND_REPO --branch $NETHERMIND_TAG --single-branch . && \
git switch -c $NETHERMIND_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$NETHERMIND_COMMIT" ]'
RUN TARGETARCH=${TARGETARCH#linux/} && \
arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH") && \
echo "Using architecture: $arch" && \
Expand Down
42 changes: 19 additions & 23 deletions reth/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,49 +1,45 @@
FROM golang:1.22 AS op
FROM golang:1.23 AS op

RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.13.2
ENV COMMIT=c8b9f62736a7dad7e569719a84c406605f4472e6
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
COPY versions.env /tmp/versions.env

# Install 'just'
RUN curl -sSfL 'https://just.systems/install.sh' | bash -s -- --to /usr/local/bin
RUN . /tmp/versions.env && git clone $OP_NODE_REPO --branch $OP_NODE_TAG --single-branch . && \
git switch -c branch-$OP_NODE_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$OP_NODE_COMMIT" ]'

RUN cd op-node && \
make VERSION=$VERSION op-node
RUN . /tmp/versions.env && cd op-node && \
make VERSION=$OP_NODE_TAG op-node

FROM rust:1.87 AS reth

WORKDIR /app

COPY versions.env /tmp/versions.env

RUN apt-get update && apt-get -y upgrade && apt-get install -y git libclang-dev pkg-config curl build-essential

ENV REPO=https://github.com/paradigmxyz/reth.git
ENV VERSION=v1.4.3
ENV COMMIT=fe3653ffe602d4e85ad213e8bd9f06e7b710c0c5
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
RUN . /tmp/versions.env && git clone $OP_RETH_REPO --branch $OP_RETH_TAG --single-branch . && \
git switch -c branch-$OP_RETH_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$OP_RETH_COMMIT" ]'

RUN cargo build --bin op-reth --profile maxperf --manifest-path crates/optimism/bin/Cargo.toml

FROM rust:1.87 AS reth-base

WORKDIR /app

COPY versions.env /tmp/versions.env

RUN apt-get update && apt-get -y upgrade && \
apt-get install -y git libclang-dev pkg-config curl build-essential && \
rm -rf /var/lib/apt/lists/*

ENV REPO=https://github.com/base/node-reth.git
ENV VERSION=v0.1.2
ENV COMMIT=7fe1d4e7c74d322d2cf78df55db40e14f466cfc6
RUN git clone $REPO . && \
git checkout tags/$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
RUN . /tmp/versions.env && git clone $BASE_RETH_NODE_REPO . && \
git checkout tags/$BASE_RETH_NODE_TAG && \
bash -c '[ "$(git rev-parse HEAD)" = "$BASE_RETH_NODE_COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)

RUN cargo build --bin base-reth-node --release

Expand Down
20 changes: 20 additions & 0 deletions versions.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export OP_NODE_TAG=op-node/v1.13.3
export OP_NODE_COMMIT=b1e7c63bb2ffea46771c302bcb05f72ba1a7bf61
export OP_NODE_REPO=https://github.com/ethereum-optimism/optimism.git

export OP_GETH_TAG=v1.101503.4
export OP_GETH_COMMIT=2b9abb39077cb88f6e8a513f09a5ea2c2569dfed
export OP_GETH_REPO=https://github.com/ethereum-optimism/op-geth.git

export OP_RETH_TAG=v1.4.3
export OP_RETH_COMMIT=fe3653ffe602d4e85ad213e8bd9f06e7b710c0c5
export OP_RETH_REPO=https://github.com/paradigmxyz/reth.git

export NETHERMIND_TAG=1.31.11
export NETHERMIND_COMMIT=2be1890ee4f21f921a471de058dcb57937bd9b90
export NETHERMIND_REPO=https://github.com/NethermindEth/nethermind.git

export BASE_RETH_NODE_TAG=v0.1.2
export BASE_RETH_NODE_COMMIT=7fe1d4e7c74d322d2cf78df55db40e14f466cfc6
export BASE_RETH_NODE_REPO=https://github.com/base/node-reth.git