diff options
author | 2017-07-06 15:35:12 +0200 | |
---|---|---|
committer | 2017-07-06 15:35:12 +0200 | |
commit | 19dd4e461d1239754bd1a82e30f2a770c99a7f90 (patch) | |
tree | 28c57a5802c805dbbe10e760dff159e499fc9622 /moonv4/tests/21_slave_scalability/master.sh | |
parent | 53a64609bd5b3f02a3bdf7d85030db8f2028cada (diff) |
Add test files for the evaluation
Change-Id: Ieceeef68ce701b913aaccd900218fbee896f48df
Diffstat (limited to 'moonv4/tests/21_slave_scalability/master.sh')
-rw-r--r-- | moonv4/tests/21_slave_scalability/master.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/moonv4/tests/21_slave_scalability/master.sh b/moonv4/tests/21_slave_scalability/master.sh new file mode 100644 index 00000000..3799d631 --- /dev/null +++ b/moonv4/tests/21_slave_scalability/master.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash + +apt-get update +apt-get install -y python3-dev python3-pip git +pip3 install pip --upgrade +echo 127.0.0.1 messenger db keystone | tee -a /etc/hosts +apt-get install -y apt-transport-https ca-certificates curl software-properties-common +apt-get update + +curl -sSL https://get.docker.com | sh +docker run hello-world +groupadd docker +gpasswd -a ${USER} docker +service docker restart + +cd +git clone https://git.opnfv.org/moon +cd moon/moonv4 +export MOON_HOME=$(pwd) +mkdir /etc/moon +cp -r $(pwd)/moon_orchestrator/conf/* /etc/moon/ +cp /vagrant/conf/moon_master.conf /et/moon/moon.conf + +docker network create -d bridge --subnet=172.18.0.0/16 --gateway=172.18.0.1 moon +#docker load -i /vagrant/keystone.tar + +#docker run -dti --net=moon --hostname messenger --name messenger --link messenger:messenger -e RABBITMQ_DEFAULT_USER=moon -e RABBITMQ_DEFAULT_PASS=p4sswOrd1 -e RABBITMQ_NODENAME=rabbit@messenger -e RABBITMQ_DEFAULT_VHOST=moon -p 5671:5671 -p 5672:5672 rabbitmq:3-management +#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 +docker pull rabbitmq:3-management +docker pull mysql:latest +docker pull asteroide/keystone_mitaka:latest + +bash ${MOON_HOME}/bin/build_all.sh + +pip3 install pip --upgrade +source ${MOON_HOME}/bin/build_all.sh +pip3 install ${MOON_HOME}/moon_orchestrator/dist/moon_db-0.1.0.tar.gz --upgrade +pip3 install ${MOON_HOME}/moon_orchestrator/dist/moon_utilities-0.1.0.tar.gz --upgrade + +cd ${MOON_HOME}/moon_orchestrator +pip3 install -r requirements.txt --upgrade +pip3 install . --upgrade + +#echo "waiting for Database (it may take time)..." +#echo -e "\033[35m" +#sed '/ready for connections/q' <(docker logs db -f) +#echo -e "\033[m" +# +#echo "waiting for Messenger (it may take time)..." +#echo -e "\033[35m" +#sed '/Server startup complete;/q' <(docker logs messenger -f) +#echo -e "\033[m" +# +# +#docker run -dti --net moon --name keystone --hostname=keystone -e DB_HOST=db -e DB_PASSWORD_ROOT=p4sswOrd1 -p 35357:35357 -p 5000:5000 keystone_mitaka:latest +# +#echo moon_orchestrator |