diff options
author | 2017-04-24 11:38:11 +0200 | |
---|---|---|
committer | 2017-04-24 11:38:11 +0200 | |
commit | 62d9062776eed734ffdb02dc37dd5c3f7b541f5d (patch) | |
tree | 3880c14db010f1736d92a805c74dad6f56a0a5b8 /moonv4/bin/start.sh | |
parent | d285ffba7b9e2af55cf7765963764d2acd616a24 (diff) |
Add the bin directory
Change-Id: I9a84223aa572046060618da294f0c6dc1ed68c45
Diffstat (limited to 'moonv4/bin/start.sh')
-rwxr-xr-x | moonv4/bin/start.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/moonv4/bin/start.sh b/moonv4/bin/start.sh new file mode 100755 index 00000000..b2d30820 --- /dev/null +++ b/moonv4/bin/start.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +echo -e "\033[31mDeleting previous dockers\033[m" +docker rm -f $(docker ps -a | grep moon | cut -d " " -f 1) 2>/dev/null +docker rm -f messenger db keystone 2>/dev/null + +echo -e "\033[32mStarting Messenger\033[m" +docker run -dti --net=moon --hostname messenger --name messenger -e RABBITMQ_DEFAULT_USER=moon -e RABBITMQ_DEFAULT_PASS=p4sswOrd1 -e RABBITMQ_NODENAME=rabbit@messenger -e RABBITMQ_DEFAULT_VHOST=moon -e RABBITMQ_HIPE_COMPILE=1 -p 5671:5671 -p 5672:5672 -p 8080:15672 rabbitmq:3-management + +echo -e "\033[32mStarting DB manager\033[m" +docker run -dti --net=moon --hostname db --name db -e MYSQL_ROOT_PASSWORD=p4sswOrd1 -e MYSQL_DATABASE=moon -e MYSQL_USER=moon -e MYSQL_PASSWORD=p4sswOrd1 -p 3306:3306 mysql:latest + +echo waiting for 20 seconds before starting Keystone container... +sleep 20s + +docker run -dti --net moon --hostname keystone --name keystone -e DB_HOST=db -e DB_PASSWORD_ROOT=p4sswOrd1 -p 35357:35357 -p 5000:5000 keystone:mitaka + +echo -e "\033[32mBuilding packages\033[m" +bash $MOON_HOME/bin/build_all.sh + +. $MOON_HOME/moon_orchestrator/tests/venv/bin/activate + +pip install $MOON_HOME/moon_orchestrator/dist/moon_db-0.1.0.tar.gz --upgrade +pip install $MOON_HOME/moon_orchestrator/dist/moon_utilities-0.1.0.tar.gz --upgrade +echo waiting for 20 seconds before configuring and starting Orchestrator container... +sleep 30s +moon_db_manager upgrade + +echo -e "\033[32mStarting Moon Orchestrator\033[m" +moon_orchestrator |