-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_all.sh
42 lines (42 loc) · 1002 Bytes
/
deploy_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
DOCKER_COMPOSE_DIR=`pwd`
HOME_DIR='/Users/cdparra/Projects/appcivist'
echo 'pulling backend'
cd ${HOME_DIR}
cd appcivist-platform
git checkout master
git pull origin master
cd ..
echo 'pulling front end'
cd appcivist-pb-client
git checkout master
git pull origin master
cd ..
echo 'pulling voting api'
cd appcivist-voting-api
git checkout master
git pull origin master
cd ..
cd ${DOCKER_COMPOSE_DIR}
docker-compose build
#echo 'Up db'
#docker-compose up -d db
#echo 'Up mongo'
#docker-compose up -d mongo
#while [ $(docker inspect -f '{{.State.Running}}' db) = "false" ]
#do
#echo 'Starting db'
#sleep 10
#done
echo 'Up etherpad'
docker-compose up -d etherpad-lite
echo 'Up rabbitmq'
docker-compose up -d rabbitmq
echo 'Up appcivist-voting-api'
docker-compose up -d appcivist-voting-api
echo 'Up appcivist-usnb'
docker-compose up -d appcivist-usnb
echo 'Up appcivist-plataform'
docker-compose up -d appcivist-plataform
echo 'Up appcivist-pb-client'
docker-compose up -d appcivist-pb-client