Skip to content

Commit

Permalink
Add better debug
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbaggett committed Apr 18, 2024
1 parent 4610e34 commit 7d485e7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion wait-for-dynamodb
Expand Up @@ -7,4 +7,4 @@ while ! curl --silent --output /dev/null "{$DYNAMODB_ENDPOINT}/shell" ; do
echo -n "."
done

echo -e "\nConnected to Dynamodb!"
echo -e "\n > Connected to Dynamodb!"
4 changes: 2 additions & 2 deletions wait-for-mongo
Expand Up @@ -5,11 +5,11 @@ MONGODB_PORT=${MONGODB_PORT:-27017}
MONGODB_USERNAME=${MONGODB_USERNAME:-${MONGODB_USER}}
MONGODB_PASSWORD=${MONGODB_PASSWORD:-${MONGODB_PASS}}
MONGODB_DSN=${MONGODB_DSN:-"mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@${MONGODB_HOSTNAME}:${MONGODB_PORT}"}
echo -e "\nWaiting for MongoDB ..."
echo -e "\nWaiting for MongoDB (mongodb://${MONGODB_HOSTNAME}:${MONGODB_PORT}) ..."

while ! mongosh --eval 'db.runCommand("ping").ok' --quiet "${MONGODB_DSN}" > /dev/null 2>&1; do
sleep 1
echo -n "."
done

echo -e "\nConnected to MongoDB!"
echo -e "\n > Connected to MongoDB!"
2 changes: 1 addition & 1 deletion wait-for-mysql
Expand Up @@ -44,4 +44,4 @@ while ! mysqladmin ping -h"$MYSQL_HOST" -P"$MYSQL_PORT" --silent; do
sleep 1
echo -n "."
done
echo -e "\nConnected to MySQL!"
echo -e "\n > Connected to MySQL!"
2 changes: 1 addition & 1 deletion wait-for-postgresql
Expand Up @@ -45,4 +45,4 @@ while ! pg_isready -h "${POSTGRES_HOST}" -p "${POSTGRES_PORT}" -q; do
sleep 1
echo -n "."
done
echo -e "\nConnected to Postgres!"
echo -e "\n > Connected to Postgres!"
2 changes: 1 addition & 1 deletion wait-for-redis
Expand Up @@ -15,4 +15,4 @@ while ! redis-cli -h $REDIS_HOST -p $REDIS_PORT $PASSWORD_ARG -n 15 --no-auth-wa
echo -n "."
done

echo -e "Connected to Redis!"
echo -e "\n > Connected to Redis!"

0 comments on commit 7d485e7

Please sign in to comment.