Skip to content

Commit

Permalink
op-node(1.9.4), op-geth(v1.101411.0), op-reth(1.1.0) (#337)
Browse files Browse the repository at this point in the history
* op-node(1.9.4), op-geth(v1.101411.0), op-reth(1.1.0)

* Update Rust version
  • Loading branch information
danyalprout authored Oct 21, 2024
1 parent f038903 commit 47c0680
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
12 changes: 6 additions & 6 deletions geth/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
FROM golang:1.21 AS op
FROM golang:1.22 AS op

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.9.1
ENV COMMIT=4797ddb70e05d4952685bad53e608cb5606284e6
ENV VERSION=v1.9.4
ENV COMMIT=2c24e652161187f3e30045eac1e176e6b53c469d
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'

RUN cd op-node && \
make VERSION=$VERSION op-node

FROM golang:1.21 AS geth
FROM golang:1.22 AS geth

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/op-geth.git
ENV VERSION=v1.101408.0
ENV COMMIT=5c2e75862239c77d2873de1888ba52ee84c83178
ENV VERSION=v1.101411.0
ENV COMMIT=d5a96613c22bc46238a21d6c0f805399c26c9d4c
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'
Expand Down
17 changes: 10 additions & 7 deletions reth/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM golang:1.21 AS op
FROM golang:1.22 AS op

WORKDIR /app

ENV REPO=https://github.com/ethereum-optimism/optimism.git
ENV VERSION=v1.9.1
ENV COMMIT=4797ddb70e05d4952685bad53e608cb5606284e6
ENV VERSION=v1.9.4
ENV COMMIT=2c24e652161187f3e30045eac1e176e6b53c469d
RUN git clone $REPO --branch op-node/$VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'

RUN cd op-node && \
make VERSION=$VERSION op-node

FROM rust:1.80 AS reth
FROM rust:1.82 AS reth

ARG FEATURES=jemalloc,asm-keccak,optimism

Expand All @@ -21,10 +21,13 @@ WORKDIR /app
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 COMMIT=c228fe15808c3acbf18dc3af1a03ef5cbdcda07a
RUN git clone $REPO . && git checkout $COMMIT
ENV VERSION=v1.1.0
ENV COMMIT=1ba631ba9581973e7c6cadeea92cfe1802aceb4a
RUN git clone $REPO --branch $VERSION --single-branch . && \
git switch -c branch-$VERSION && \
bash -c '[ "$(git rev-parse HEAD)" = "$COMMIT" ]'

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

FROM ubuntu:22.04

Expand Down

0 comments on commit 47c0680

Please sign in to comment.