Skip to content

Commit

Permalink
Update starter.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Dec 15, 2023
1 parent 2ff1f0c commit 6a230cb
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6a230cb

Please sign in to comment.