File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ TIPS_UI_S3_SECRET_ACCESS_KEY=minioadmin
3333OP_NODE_NETWORK =
3434OP_NODE_ROLLUP_CONFIG = /data/rollup.json
3535OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS = true
36- OP_NODE_SYNCMODE = consensus-layer
3736OP_NODE_L1_ETH_RPC = http://host.docker.internal:8545
3837OP_NODE_L1_BEACON = http://host.docker.internal:3500
39- OP_NODE_L1_RPC_KIND = debug_geth
38+ OP_NODE_L1_RPC_KIND = basic
4039OP_NODE_L1_TRUST_RPC = false
4140OP_NODE_L2_ENGINE_KIND = reth
4241OP_NODE_L2_ENGINE_AUTH = /data/jwtsecret
@@ -45,7 +44,7 @@ OP_NODE_P2P_LISTEN_TCP_PORT=9222
4544OP_NODE_P2P_LISTEN_UDP_PORT = 9222
4645OP_NODE_P2P_INTERNAL_IP = true
4746OP_NODE_P2P_ADVERTISE_IP = host.docker.internal
48- OP_NODE_P2P_NO_DISCOVERY = true
47+ OP_NODE_P2P_NO_DISCOVERY = false
4948OP_NODE_RPC_ADDR = 0.0.0.0
5049OP_NODE_RPC_PORT = 8545
5150OP_NODE_LOG_LEVEL = debug
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Thumbs.db
1919# Environment variables
2020.env
2121.env.docker
22+ .env.playground
2223/ui /.env
2324
2425# Claude
Original file line number Diff line number Diff line change @@ -22,14 +22,25 @@ sync: deps-reset
2222 ### REFORMAT ###
2323 just fix
2424
25- sync-env :
25+ playground-env :
26+ #!/ bin/ bash
27+ HOST_IP=$(docker run --rm alpine nslookup host.docker.internal | awk ' /Address: / && $2 !~ /:/ {print $2; exit}' )
28+ PEER_ID=$(grep ' started p2p host' ~/ .playground/ devnet/ logs/ op-node.log | sed -n ' s/.*peerID=\([^ ]*\).*/\1/p' | head -1)
29+ echo " BUILDER_PLAYGROUND_HOST_IP=$HOST_IP" > .env .playground
30+ echo " BUILDER_PLAYGROUND_PEER_ID=$PEER_ID" >> .env .playground
31+ echo " OP_NODE_P2P_STATIC=/ip4/$HOST_IP/tcp/9003/p2p/$PEER_ID" >> .env .playground
32+ cat .env .playground
33+
34+ sync-env : playground-env
2635 cp .env .example .env
2736 cp .env .example ./ ui/ .env
2837 cp .env .example .env .docker
2938 # Change kafka ports
3039 sed -i ' ' ' s/localhost:9092/host.docker.internal:9094/g' ./ .env .docker
3140 # Change other dependencies
3241 sed -i ' ' ' s/localhost/host.docker.internal/g' ./ .env .docker
42+ # Append playground-specific P2P config
43+ cat .env .playground >> .env .docker
3344
3445stop-all :
3546 export COMPOSE_FILE=docker-compose.yml:docker-compose.tips.yml && docker compose down && docker compose rm && rm -rf data/
You can’t perform that action at this time.
0 commit comments