From 6a230cbede806a19fa23cc2342ea23a444210220 Mon Sep 17 00:00:00 2001 From: Anthony Mahanna Date: Thu, 14 Dec 2023 19:16:57 -0500 Subject: [PATCH] Update starter.sh --- starter.sh | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/starter.sh b/starter.sh index 47800a40..7b0a5bcf 100755 --- a/starter.sh +++ b/starter.sh @@ -39,25 +39,21 @@ else conf_file="${setup}" fi -docker run -d --rm --name adb -p 8529:8529 arangodb/arangodb:latest - -docker ps -a - -# docker run -d --rm \ -# --name arango \ -# -p 8528:8528 \ -# -p 8529:8529 \ -# $extra_ports \ -# -v "$(pwd)/tests/static/":/tests/static \ -# -v /tmp:/tmp \ -# "arangodb/$image_name:$version" -# /bin/sh -c "arangodb --configuration=/tests/static/$conf_file.conf" - -# wget --quiet --waitretry=1 --tries=120 -O - http://localhost:8528/version | jq -# if [ $? -eq 0 ]; then -# echo "OK starter ready" -# exit 0 -# else -# echo "ERROR starter not ready, giving up" -# exit 1 -# fi +docker run -d \ + --name arango \ + -p 8528:8528 \ + -p 8529:8529 \ + $extra_ports \ + -v "$(pwd)/tests/static/":/tests/static \ + -v /tmp:/tmp \ + "arangodb/$image_name:$version" \ + /bin/sh -c "arangodb --configuration=/tests/static/$conf_file.conf" + +wget --quiet --waitretry=1 --tries=120 -O - http://localhost:8528/version | jq +if [ $? -eq 0 ]; then + echo "OK starter ready" + exit 0 +else + echo "ERROR starter not ready, giving up" + exit 1 +fi \ No newline at end of file