Skip to content

Commit

Permalink
docker: skip running node if offline var is set
Browse files Browse the repository at this point in the history
Co-authored-by: Tadej Janež <tadej.j@nez.si>
  • Loading branch information
pro-wh and tjanez committed Feb 14, 2022
1 parent 84605be commit cc2c052
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/service/node/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/sh -eu
# If this is deployed as an offline signer, skip running the node
# so that we don't waste time attempting to connect.
if [ -n "${OASIS_ROSETTA_GATEWAY_OFFLINE_MODE-}" ]; then
exec sleep inf
fi
cd /data
exec oasis-node --config "$OASIS_NODE_CONFIG"

0 comments on commit cc2c052

Please sign in to comment.