From a6777d113ab6776d16e3cc2f7e3d79c4dd59e6c5 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Fri, 19 Mar 2021 14:05:59 +0200 Subject: [PATCH] Add some messages --- deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy.sh b/deploy.sh index 11e0e65..7ecbf38 100755 --- a/deploy.sh +++ b/deploy.sh @@ -24,6 +24,7 @@ docker-compose \ sleep 1 # Prepare installation +echo "Preparing installation..." cd api cp .env.example .env docker run --rm -v $(pwd):/app \ @@ -36,12 +37,15 @@ sh ./create_volumes.sh TIME_START=`date +%s` # Just in case something is up from previous runs +echo "Bringing down any previous containers..." docker-compose -f docker-compose-jfrog.yml down # Run containers +echo "Bringing up containers..." docker-compose -f docker-compose-jfrog.yml up --detach # loop until all containers are up +echo "Checking if all containers are up..." while true; do # if any container other than composer has exited, bail out res=`docker ps -a | \ @@ -63,6 +67,7 @@ while true; do grep "Up" | \ wc -l` if [ $res -eq 11 ]; then + echo "All good!" break fi # only wait for 10 mins until everything is up. It should be more than @@ -81,5 +86,6 @@ done sleep 10 # create and populate the database +echo "Creating and populating the database..." docker-compose -f docker-compose-jfrog.yml exec api php artisan migrate:fresh --seed --force -- 2.2.2