Skip to content

Commit

Permalink
docker: Fix docker startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Oct 20, 2023
1 parent 069d90a commit 7ad01f2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/common/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,25 @@ while ! [[ -S ${OASIS_NODE_SOCKET} ]]; do sleep 1; done
${OASIS_WEB3_GATEWAY} --config ${OASIS_WEB3_GATEWAY_CONFIG_FILE} 2>1 &>/var/log/oasis-web3-gateway.log &
OASIS_WEB3_GATEWAY_PID=$!

echo -n " * Bootstrapping network (this might take a minute)"
if [[ ${SAPPHIRE_BACKEND} == 'mock' ]]; then
echo -n " * Bootstrapping network (this might take a minute)"

echo -n .
${OASIS_NODE} debug control wait-nodes -n 2 -a unix:${OASIS_NODE_SOCKET}

echo -n .
${OASIS_NODE} debug control set-epoch --epoch 1 -a unix:${OASIS_NODE_SOCKET}

echo .
echo -n .
${OASIS_NODE} debug control set-epoch --epoch 2 -a unix:${OASIS_NODE_SOCKET}
else
echo " * Bootstrapping network (this might take a minute)"
# Wait for compute nodes before initiating deposit.
${OASIS_NODE} debug control wait-ready -a unix:${OASIS_NODE_SOCKET}

echo -n .
${OASIS_NODE} debug control set-epoch --epoch 3 -a unix:${OASIS_NODE_SOCKET}
fi

# Wait for compute nodes before initiating deposit.
echo
${OASIS_NODE} debug control wait-ready -a unix:${OASIS_NODE_SOCKET}

echo " * Populating accounts"
echo ""
${OASIS_DEPOSIT} -sock unix:${OASIS_NODE_SOCKET} "$@"
Expand Down

0 comments on commit 7ad01f2

Please sign in to comment.