Skip to content

Instantly share code, notes, and snippets.

@Enigo
Created January 23, 2023 10:02
Show Gist options
  • Save Enigo/f14999eaed5d65f81a4d8714b7a0dd3c to your computer and use it in GitHub Desktop.
Save Enigo/f14999eaed5d65f81a4d8714b7a0dd3c to your computer and use it in GitHub Desktop.
#!/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