Skip to content

Commit fdafc9c

Browse files
author
Michael de Hoog
authored
Repo cleanup (#59)
* Move environment config to separate .env file * Remove volumes config (already in README) * Tabs vs spaces * README cleanup * Update README to mention .env file
1 parent b40e05e commit fdafc9c

4 files changed

Lines changed: 34 additions & 35 deletions

File tree

.env.goerli

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
OP_GETH_GENESIS_FILE_PATH=goerli/genesis-l2.json
2+
OP_GETH_SEQUENCER_HTTP=https://goerli-sequencer.base.org
3+
# OP_GETH_ETH_STATS=nodename:secret@host:port # optional
4+
5+
OP_NODE_L1_ETH_RPC=https://ethereum-goerli-rpc.allthatnode.com # [recommended] replace with your preferred L1 (Ethereum, not Base) node RPC URL
6+
OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
7+
OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a # for localdev only
8+
OP_NODE_L2_ENGINE_RPC=http://geth:8551
9+
OP_NODE_LOG_LEVEL=info
10+
OP_NODE_METRICS_ADDR=0.0.0.0
11+
OP_NODE_METRICS_ENABLED=true
12+
OP_NODE_METRICS_PORT=7300
13+
OP_NODE_P2P_AGENT=base
14+
OP_NODE_P2P_BOOTNODES=enr:-J64QBbwPjPLZ6IOOToOLsSjtFUjjzN66qmBZdUexpO32Klrc458Q24kbty2PdRaLacHM5z-cZQr8mjeQu3pik6jPSOGAYYFIqBfgmlkgnY0gmlwhDaRWFWHb3BzdGFja4SzlAUAiXNlY3AyNTZrMaECmeSnJh7zjKrDSPoNMGXoopeDF4hhpj5I0OsQUUt4u8uDdGNwgiQGg3VkcIIkBg,enr:-J64QAlTCDa188Hl1OGv5_2Kj2nWCsvxMVc_rEnLtw7RPFbOfqUOV6khXT_PH6cC603I2ynY31rSQ8sI9gLeJbfFGaWGAYYFIrpdgmlkgnY0gmlwhANWgzCHb3BzdGFja4SzlAUAiXNlY3AyNTZrMaECkySjcg-2v0uWAsFsZZu43qNHppGr2D5F913Qqs5jDCGDdGNwgiQGg3VkcIIkBg
15+
OP_NODE_P2P_LISTEN_IP=0.0.0.0
16+
OP_NODE_P2P_LISTEN_TCP_PORT=9222
17+
OP_NODE_P2P_LISTEN_UDP_PORT=9222
18+
OP_NODE_ROLLUP_CONFIG=goerli/rollup.json
19+
OP_NODE_RPC_ADDR=0.0.0.0
20+
OP_NODE_RPC_PORT=8545
21+
OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
22+
OP_NODE_VERIFIER_L1_CONFS=4
23+
# OP_NODE_L1_TRUST_RPC allows for faster syncing, but should be used *only* if your L1 RPC node
24+
# is fully trusted. It also allows op-node to work with clients such as Erigon that do not
25+
# support storage proofs.
26+
# OP_NODE_L1_TRUST_RPC=true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you encounter problems with your node, please open a [GitHub issue](https://g
4949

5050
### Usage
5151

52-
1. Ensure you have an Ethereum Goerli L1 full node RPC available (not Base Goerli), and set `OP_NODE_L1_ETH_RPC` (in `docker-compose.yml` if using docker-compose). If running your own L1 node, it needs to be synced before Base will be able to fully sync.
52+
1. Ensure you have an Ethereum L1 full node RPC available (not Base), and set `OP_NODE_L1_ETH_RPC` (in the `.env.*` file if using docker-compose). If running your own L1 node, it needs to be synced before Base will be able to fully sync.
5353
2. Run:
5454

5555
```

docker-compose.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ services:
77
- 30303:30303
88
- 7301:6060 # metrics
99
command: [ "sh", "./geth-entrypoint" ]
10-
volumes:
11-
- "./geth-data:/data"
12-
environment:
13-
- OP_GETH_GENESIS_FILE_PATH=goerli/genesis-l2.json
14-
- OP_GETH_SEQUENCER_HTTP=https://goerli-sequencer.base.org
15-
- OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
16-
- OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a # for localdev only
17-
# - OP_GETH_ETH_STATS=nodename:secret@host:port # optional
10+
env_file:
11+
- .env.goerli
1812
node:
1913
build: .
2014
depends_on:
@@ -25,26 +19,5 @@ services:
2519
- 7300:7300 # metrics
2620
- 6060:6060
2721
command: [ "sh", "./op-node-entrypoint" ]
28-
environment:
29-
- OP_NODE_L1_ETH_RPC=https://ethereum-goerli-rpc.allthatnode.com # [recommended] replace with your preferred L1 (ethereum, not Base) node RPC URL
30-
- OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
31-
- OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a # for localdev only
32-
- OP_NODE_L2_ENGINE_RPC=http://geth:8551
33-
- OP_NODE_LOG_LEVEL=info
34-
- OP_NODE_METRICS_ADDR=0.0.0.0
35-
- OP_NODE_METRICS_ENABLED=true
36-
- OP_NODE_METRICS_PORT=7300
37-
- OP_NODE_P2P_AGENT=base
38-
- OP_NODE_P2P_BOOTNODES=enr:-J64QBbwPjPLZ6IOOToOLsSjtFUjjzN66qmBZdUexpO32Klrc458Q24kbty2PdRaLacHM5z-cZQr8mjeQu3pik6jPSOGAYYFIqBfgmlkgnY0gmlwhDaRWFWHb3BzdGFja4SzlAUAiXNlY3AyNTZrMaECmeSnJh7zjKrDSPoNMGXoopeDF4hhpj5I0OsQUUt4u8uDdGNwgiQGg3VkcIIkBg,enr:-J64QAlTCDa188Hl1OGv5_2Kj2nWCsvxMVc_rEnLtw7RPFbOfqUOV6khXT_PH6cC603I2ynY31rSQ8sI9gLeJbfFGaWGAYYFIrpdgmlkgnY0gmlwhANWgzCHb3BzdGFja4SzlAUAiXNlY3AyNTZrMaECkySjcg-2v0uWAsFsZZu43qNHppGr2D5F913Qqs5jDCGDdGNwgiQGg3VkcIIkBg
39-
- OP_NODE_P2P_LISTEN_IP=0.0.0.0
40-
- OP_NODE_P2P_LISTEN_TCP_PORT=9222
41-
- OP_NODE_P2P_LISTEN_UDP_PORT=9222
42-
- OP_NODE_ROLLUP_CONFIG=goerli/rollup.json
43-
- OP_NODE_RPC_ADDR=0.0.0.0
44-
- OP_NODE_RPC_PORT=8545
45-
- OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
46-
- OP_NODE_VERIFIER_L1_CONFS=4
47-
# OP_NODE_L1_TRUST_RPC allows for faster syncing, but should be used *only* if your L1 RPC node
48-
# is fully trusted. It also allows op-node to work with clients such as Erigon that do not
49-
# support storage proofs.
50-
# - OP_NODE_L1_TRUST_RPC=true
22+
env_file:
23+
- .env.goerli

geth-entrypoint

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ fi
5353
--ws.port="$WS_PORT" \
5454
--ws.origins="*" \
5555
--ws.api=debug,eth,txpool,net,engine \
56-
--metrics \
57-
--metrics.addr=0.0.0.0 \
58-
--metrics.port="$METRICS_PORT" \
56+
--metrics \
57+
--metrics.addr=0.0.0.0 \
58+
--metrics.port="$METRICS_PORT" \
5959
--syncmode=full \
6060
--gcmode=archive \
6161
--nodiscover \

0 commit comments

Comments
 (0)