-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f722031
commit 33088bc
Showing
18 changed files
with
217 additions
and
29,829 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
GETH_HOST_DATA_DIR=./geth-data | ||
GETH_HOST_DATA_DIR=./geth-data | ||
RETH_HOST_DATA_DIR=./reth-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.idea/ | ||
/geth-data/ | ||
/geth-data/ | ||
/reth-data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM golang:1.21 AS op | ||
|
||
WORKDIR /app | ||
|
||
ENV REPO=https://github.com/ethereum-optimism/optimism.git | ||
ENV VERSION=v1.7.6 | ||
# for verification: | ||
ENV COMMIT=4a487b8920daa9dc4b496d691d5f283f9bb659b1 | ||
|
||
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 AS reth | ||
|
||
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=1c148e7f030f0b6b3610564e0142c799756666f4 | ||
|
||
RUN git clone $REPO . && git checkout $COMMIT | ||
RUN cargo build --bin op-reth --locked --features jemalloc,optimism --profile maxperf | ||
|
||
FROM golang:1.21 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y jq curl supervisor && \ | ||
rm -rf /var/lib/apt/lists | ||
RUN mkdir -p /var/log/supervisor | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=op /app/op-node/bin/op-node ./ | ||
COPY --from=reth /app/target/maxperf/op-reth ./ | ||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY reth-entrypoint ./execution-entrypoint | ||
COPY op-node-entrypoint . | ||
|
||
CMD ["/usr/bin/supervisord"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
execution: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.reth | ||
ports: | ||
- "8545:8545" # RPC | ||
- "8546:8546" # websocket | ||
- "7301:6060" # metrics | ||
command: [ "bash", "./execution-entrypoint" ] | ||
volumes: | ||
- ${RETH_HOST_DATA_DIR}:/data | ||
env_file: | ||
# select your network here: | ||
# - .env.mainnet | ||
# - .env.sepolia | ||
node: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.reth | ||
depends_on: | ||
- execution | ||
ports: | ||
- "7545:8545" # RPC | ||
- "9222:9222" # P2P TCP | ||
- "9222:9222/udp" # P2P UDP | ||
- "7300:7300" # metrics | ||
- "6060:6060" # pprof | ||
command: [ "bash", "./op-node-entrypoint" ] | ||
env_file: | ||
# select your network here: | ||
# - .env.mainnet | ||
# - .env.sepolia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.