Commit a6777d113ab6776d16e3cc2f7e3d79c4dd59e6c5
1 parent
8930ff77e3
Exists in
master
and in
4 other branches
Add some messages
Showing 1 changed file with 6 additions and 0 deletions
deploy.sh
View file @
a6777d1
... | ... | @@ -24,6 +24,7 @@ |
24 | 24 | sleep 1 |
25 | 25 | |
26 | 26 | # Prepare installation |
27 | +echo "Preparing installation..." | |
27 | 28 | cd api |
28 | 29 | cp .env.example .env |
29 | 30 | docker run --rm -v $(pwd):/app \ |
30 | 31 | |
31 | 32 | |
... | ... | @@ -36,12 +37,15 @@ |
36 | 37 | TIME_START=`date +%s` |
37 | 38 | |
38 | 39 | # Just in case something is up from previous runs |
40 | +echo "Bringing down any previous containers..." | |
39 | 41 | docker-compose -f docker-compose-jfrog.yml down |
40 | 42 | |
41 | 43 | # Run containers |
44 | +echo "Bringing up containers..." | |
42 | 45 | docker-compose -f docker-compose-jfrog.yml up --detach |
43 | 46 | |
44 | 47 | # loop until all containers are up |
48 | +echo "Checking if all containers are up..." | |
45 | 49 | while true; do |
46 | 50 | # if any container other than composer has exited, bail out |
47 | 51 | res=`docker ps -a | \ |
... | ... | @@ -63,6 +67,7 @@ |
63 | 67 | grep "Up" | \ |
64 | 68 | wc -l` |
65 | 69 | if [ $res -eq 11 ]; then |
70 | + echo "All good!" | |
66 | 71 | break |
67 | 72 | fi |
68 | 73 | # only wait for 10 mins until everything is up. It should be more than |
... | ... | @@ -81,5 +86,6 @@ |
81 | 86 | sleep 10 |
82 | 87 | |
83 | 88 | # create and populate the database |
89 | +echo "Creating and populating the database..." | |
84 | 90 | docker-compose -f docker-compose-jfrog.yml exec api php artisan migrate:fresh --seed --force |