Skip to content

Commit

Permalink
fix: spelling mistake in start.sh, better OASIS_SINGLE_COMPUTE_NODE env
Browse files Browse the repository at this point in the history
  • Loading branch information
CedarMist committed Aug 16, 2023
1 parent d333e7d commit 60cdea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker/common/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
# - OASIS_WEB3_GATEWAY_CONFIG_FILE: path to oasis-web3-gateway config file
# - OASIS_DEPOSIT: path to oasis-deposit binary
# - SAPPHIRE_BACKEND: uses 'mock' backend by default
# - OASIS_SINGLE_COMPUTE_NODE: (default: true) if non-empty only run a single compute node

export OASIS_SINGLE_COMPUTE_NODE=1
export OASIS_SINGLE_COMPUTE_NODE=${OASIS_SINGLE_COMPUTE_NODE-1}
OASIS_WEB3_GATEWAY_VERSION=$(${OASIS_WEB3_GATEWAY} -v | head -n1 | cut -d " " -f 3 | sed -r 's/^v//')
OASIS_CORE_VERSION=$(${OASIS_NODE} -v | head -n1 | cut -d " " -f 3 | sed -r 's/^v//')
VERSION=$(cat /VERSION)
Expand Down
2 changes: 1 addition & 1 deletion tests/tools/spinup-oasis-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -euo pipefail
# - PARATIME_VERSION: version of the binary. e.g. 3.0.0
# - OASIS_NODE_DATADIR: path to temporary oasis-node data dir e.g. /tmp/oasis-localnet
# - KEYMANAGER_BINARY: path to key manager binary e.g. simple-keymanager
# - OASIS_SINGLE_COMPUTE_NODE: Only run a single compute note
# - OASIS_SINGLE_COMPUTE_NODE: Only run a single compute node

function paratime_ver {
echo $PARATIME_VERSION | cut -d \- -f 1 | cut -d + -f 1 | cut -d . -f $1
Expand Down

0 comments on commit 60cdea7

Please sign in to comment.