Skip to content

Commit

Permalink
Restructure client files into separate directories
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalprout committed Jun 13, 2024
1 parent ac445d3 commit 8cd9b38
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 45 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GETH_HOST_DATA_DIR=./geth-data
RETH_HOST_DATA_DIR=./reth-data
HOST_DATA_DIR=./geth-data
CLIENT=geth
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.geth
file: geth/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.reth
file: reth/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.geth
file: geth/Dockerfile
push: false
platforms: ${{ matrix.arch }}
reth:
Expand All @@ -43,7 +43,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.reth
file: reth/Dockerfile
push: false
build-args: |
FEATURES=${{ matrix.features }}
Expand Down
33 changes: 0 additions & 33 deletions docker-compose-reth.yml

This file was deleted.

6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ services:
execution:
build:
context: .
dockerfile: Dockerfile.geth
dockerfile: ${CLIENT}/Dockerfile
ports:
- "8545:8545" # RPC
- "8546:8546" # websocket
- "7301:6060" # metrics
command: [ "bash", "./execution-entrypoint" ]
volumes:
- ${GETH_HOST_DATA_DIR}:/data
- ${HOST_DATA_DIR}:/data
env_file:
# select your network here:
# - .env.sepolia
# - .env.mainnet
node:
build:
context: .
dockerfile: Dockerfile.geth
dockerfile: ${CLIENT}/Dockerfile
depends_on:
- execution
ports:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.geth → geth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ WORKDIR /app
COPY --from=op /app/op-node/bin/op-node ./
COPY --from=geth /app/build/bin/geth ./
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY geth-entrypoint ./execution-entrypoint
COPY geth/geth-entrypoint ./execution-entrypoint
COPY op-node-entrypoint .

CMD ["/usr/bin/supervisord"]
File renamed without changes.
2 changes: 1 addition & 1 deletion Dockerfile.reth → reth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ 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 ./reth/reth-entrypoint ./execution-entrypoint
COPY op-node-entrypoint .

CMD ["/usr/bin/supervisord"]
1 change: 0 additions & 1 deletion reth-entrypoint → reth/reth-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"

exec ./op-reth node \
-vvv \
--config /app/reth.toml \
--datadir="$RETH_DATA_DIR" \
--log.stdout.format log-fmt \
--ws \
Expand Down

0 comments on commit 8cd9b38

Please sign in to comment.