Skip to content

Commit

Permalink
OP execution client as global env
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimog01 committed Sep 20, 2023
1 parent ee137f9 commit 6835178
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"globalEnvs": [
{
"envs": ["EXECUTION_CLIENT_MAINNET"],
"envs": ["EXECUTION_CLIENT_MAINNET", "OP_EXECUTION_CLIENT"],
"services": ["op-node"]
}
]
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ services:
context: op-node
args:
UPSTREAM_VERSION: v1.1.3
environment:
L2_CLIENT: op-geth.dnp.dappnode.eth
USER_JWT: ""
restart: unless-stopped
image: "op-node.op-node.dnp.dappnode.eth:0.1.0"
10 changes: 4 additions & 6 deletions op-node/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ case $_DAPPNODE_GLOBAL_EXECUTION_CLIENT_MAINNET in
;;
esac

case $L2_CLIENT in
case $_DAPPNODE_GLOBAL_OP_EXECUTION_CLIENT in
"op-geth.dnp.dappnode.eth")
L2_ENGINE="http://op-geth.dappnode:8551"
JWT_PATH="/security/op-geth/jwtsecret.hex"
Expand All @@ -29,11 +29,9 @@ case $L2_CLIENT in
JWT_PATH="/security/op-erigon/jwtsecret.hex"
;;
*)
echo "Unknown value for L2_CLIENT: $L2_CLIENT"
L2_ENGINE=$L2_CLIENT
mkdir -p /config/security/user
echo $USER_JWT >/security/user/jwtsecret.hex
JWT_PATH="/security/user/jwtsecret.hex"
echo "Unknown value for _DAPPNODE_GLOBAL_OP_EXECUTION_CLIENT: $_DAPPNODE_GLOBAL_OP_EXECUTION_CLIENT"
sleep 60
exit 1
;;
esac

Expand Down

0 comments on commit 6835178

Please sign in to comment.