Skip to content

Commit aef70be

Browse files
committed
retry on cluster startup failure
1 parent 0e63788 commit aef70be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/start_db_cluster.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ docker run -d -v "$LOCATION"/jwtSecret:/jwtSecret -e ARANGO_LICENSE_KEY="$ARANGO
3030
docker run -d -v "$LOCATION"/jwtSecret:/jwtSecret -e ARANGO_LICENSE_KEY="$ARANGO_LICENSE_KEY" --network arangodb --ip 172.28.3.2 --name coordinator2 "$1" arangodb --cluster.start-dbserver false --cluster.start-coordinator true --starter.join agent1 --auth.jwt-secret /jwtSecret
3131

3232
debug_container() {
33+
if [ ! "$(docker ps -aqf name="$1")" ]; then
34+
echo "$1 container not found!"
35+
exit 1
36+
fi
37+
3338
running=$(docker inspect -f '{{.State.Running}}' "$1")
3439

3540
if [ "$running" = false ]

0 commit comments

Comments
 (0)