Created
January 23, 2023 10:02
-
-
Save Enigo/f14999eaed5d65f81a4d8714b7a0dd3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SCRIPT_PATH=$(dirname $(realpath -s $0)) | |
echo "Starting environment..." | |
docker-compose -p data-loader -f $SCRIPT_PATH/docker-compose.yaml up -d --build | |
echo | |
printf "Waiting for DB" | |
while ! curl http://localhost:5432/ 2>&1 | grep '52' > /dev/null ; do | |
printf "." | |
sleep 1 | |
done | |
echo | |
echo "Everything is up and running" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment