Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP execution client as global env #1

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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