Skip to content

Commit

Permalink
fix: wait for restroom to be up before ending
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Jan 30, 2024
1 parent 053ca76 commit dea191f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion start-restroom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ if [[ "$FILES" != "" ]]; then
fi

docker run --name $RESTROOM_CONTAINER_NAME --publish 3000:3000 $FILES_PARAMS $LOGGER_PARAMS -v "$CONTRACTS":"/app/contracts" --detach ghcr.io/dyne/restroom-mw:latest
sleep 7

while ! `echo -e "\x1dclose\x0d" | telnet localhost 3000 >/dev/null 2>/dev/null`; do
sleep 1
done

0 comments on commit dea191f

Please sign in to comment.