mirror of
https://github.com/mozilla/fxa.git
synced 2025-12-13 20:36:41 +01:00
This adds a base node image and builder image so that all our service images can share the same common base, be smaller, and require less customization.
17 lines
252 B
Bash
Executable File
17 lines
252 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
PORT=${1:-3306}
|
|
HOST=${2:-localhost}
|
|
RETRY=60
|
|
for i in $(eval echo "{1..$RETRY}"); do
|
|
if echo PING | nc "$HOST" "$PORT" | grep -q 'mysql'; then
|
|
exit 0
|
|
else
|
|
if [ "$i" -lt $RETRY ]; then
|
|
sleep 1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit 1
|