Skip to content

Commit 03587d0

Browse files
OP execution client as global env (#1)
Co-authored-by: Diego <[email protected]>
1 parent ee137f9 commit 03587d0

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

dappnode_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"globalEnvs": [
3838
{
39-
"envs": ["EXECUTION_CLIENT_MAINNET"],
39+
"envs": ["EXECUTION_CLIENT_MAINNET", "OP_EXECUTION_CLIENT"],
4040
"services": ["op-node"]
4141
}
4242
]

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ services:
55
context: op-node
66
args:
77
UPSTREAM_VERSION: v1.1.3
8-
environment:
9-
L2_CLIENT: op-geth.dnp.dappnode.eth
10-
USER_JWT: ""
118
restart: unless-stopped
9+
image: "op-node.op-node.dnp.dappnode.eth:0.1.0"

op-node/entrypoint.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ case $_DAPPNODE_GLOBAL_EXECUTION_CLIENT_MAINNET in
1919
;;
2020
esac
2121

22-
case $L2_CLIENT in
22+
case $_DAPPNODE_GLOBAL_OP_EXECUTION_CLIENT in
2323
"op-geth.dnp.dappnode.eth")
2424
L2_ENGINE="http://op-geth.dappnode:8551"
2525
JWT_PATH="/security/op-geth/jwtsecret.hex"
@@ -29,11 +29,9 @@ case $L2_CLIENT in
2929
JWT_PATH="/security/op-erigon/jwtsecret.hex"
3030
;;
3131
*)
32-
echo "Unknown value for L2_CLIENT: $L2_CLIENT"
33-
L2_ENGINE=$L2_CLIENT
34-
mkdir -p /config/security/user
35-
echo $USER_JWT >/security/user/jwtsecret.hex
36-
JWT_PATH="/security/user/jwtsecret.hex"
32+
echo "Unknown value for _DAPPNODE_GLOBAL_OP_EXECUTION_CLIENT: $_DAPPNODE_GLOBAL_OP_EXECUTION_CLIENT"
33+
sleep 60
34+
exit 1
3735
;;
3836
esac
3937

0 commit comments

Comments
 (0)