Skip to content

Commit 8cd9b38

Browse files
committed
Restructure client files into separate directories
1 parent ac445d3 commit 8cd9b38

File tree

9 files changed

+11
-45
lines changed

9 files changed

+11
-45
lines changed

.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
GETH_HOST_DATA_DIR=./geth-data
2-
RETH_HOST_DATA_DIR=./reth-data
1+
HOST_DATA_DIR=./geth-data
2+
CLIENT=geth

.github/workflows/docker.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: docker/build-push-action@v4
4343
with:
4444
context: .
45-
file: Dockerfile.geth
45+
file: geth/Dockerfile
4646
push: true
4747
tags: ${{ steps.meta.outputs.tags }}
4848
labels: ${{ steps.meta.outputs.labels }}
@@ -81,7 +81,7 @@ jobs:
8181
uses: docker/build-push-action@v4
8282
with:
8383
context: .
84-
file: Dockerfile.reth
84+
file: reth/Dockerfile
8585
push: true
8686
tags: ${{ steps.meta.outputs.tags }}
8787
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: docker/build-push-action@v4
2121
with:
2222
context: .
23-
file: Dockerfile.geth
23+
file: geth/Dockerfile
2424
push: false
2525
platforms: ${{ matrix.arch }}
2626
reth:
@@ -43,7 +43,7 @@ jobs:
4343
uses: docker/build-push-action@v4
4444
with:
4545
context: .
46-
file: Dockerfile.reth
46+
file: reth/Dockerfile
4747
push: false
4848
build-args: |
4949
FEATURES=${{ matrix.features }}

docker-compose-reth.yml

-33
This file was deleted.

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ services:
22
execution:
33
build:
44
context: .
5-
dockerfile: Dockerfile.geth
5+
dockerfile: ${CLIENT}/Dockerfile
66
ports:
77
- "8545:8545" # RPC
88
- "8546:8546" # websocket
99
- "7301:6060" # metrics
1010
command: [ "bash", "./execution-entrypoint" ]
1111
volumes:
12-
- ${GETH_HOST_DATA_DIR}:/data
12+
- ${HOST_DATA_DIR}:/data
1313
env_file:
1414
# select your network here:
1515
# - .env.sepolia
1616
# - .env.mainnet
1717
node:
1818
build:
1919
context: .
20-
dockerfile: Dockerfile.geth
20+
dockerfile: ${CLIENT}/Dockerfile
2121
depends_on:
2222
- execution
2323
ports:

Dockerfile.geth geth/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ WORKDIR /app
4242
COPY --from=op /app/op-node/bin/op-node ./
4343
COPY --from=geth /app/build/bin/geth ./
4444
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
45-
COPY geth-entrypoint ./execution-entrypoint
45+
COPY geth/geth-entrypoint ./execution-entrypoint
4646
COPY op-node-entrypoint .
4747

4848
CMD ["/usr/bin/supervisord"]
File renamed without changes.

Dockerfile.reth reth/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ WORKDIR /app
4040
COPY --from=op /app/op-node/bin/op-node ./
4141
COPY --from=reth /app/target/maxperf/op-reth ./
4242
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
43-
COPY reth-entrypoint ./execution-entrypoint
43+
COPY ./reth/reth-entrypoint ./execution-entrypoint
4444
COPY op-node-entrypoint .
4545

4646
CMD ["/usr/bin/supervisord"]

reth-entrypoint reth/reth-entrypoint

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ echo "$OP_NODE_L2_ENGINE_AUTH_RAW" > "$OP_NODE_L2_ENGINE_AUTH"
1717

1818
exec ./op-reth node \
1919
-vvv \
20-
--config /app/reth.toml \
2120
--datadir="$RETH_DATA_DIR" \
2221
--log.stdout.format log-fmt \
2322
--ws \

0 commit comments

Comments
 (0)