Pingping Lin | 09e613e | 2016-09-01 00:14:32 +0000 | [diff] [blame] | 1 | .PHONY: xos |
| 2 | xos: nodes.yaml images.yaml |
| 3 | sudo docker-compose up -d |
| 4 | ../common/wait_for_xos_port.sh 8000 |
| 5 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml |
| 6 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml |
| 7 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /root/setup/setup.yaml |
| 8 | sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml |
| 9 | sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/images.yaml |
| 10 | sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/mgmt-net.yaml |
| 11 | sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/mcord.yaml |
| 12 | sudo docker exec mcord_xos_1 cp /opt/xos/configurations/mcord/xos_mcord_config /opt/xos/xos_configuration/ |
| 13 | sudo docker exec mcord_xos_1 touch /opt/xos/xos/settings.py |
| 14 | |
| 15 | nodes.yaml: |
| 16 | export SETUPDIR=.; bash ../common/make-nodes-yaml.sh |
| 17 | |
| 18 | images.yaml: |
| 19 | export SETUPDIR=.; bash ../common/make-images-yaml.sh |
| 20 | |
| 21 | .PHONY: local_containers |
| 22 | local_containers: |
| 23 | cd ../../../containers/xos; make devel |
| 24 | cd ../../../containers/synchronizer; make |
| 25 | enter-xos: |
| 26 | sudo docker exec -it mcord_xos_1 bash |
| 27 | |
| 28 | enter-os: |
| 29 | sudo docker exec -it mcord_xos_synchronizer_openstack_1 bash |
| 30 | |
| 31 | enter-vbbu: |
| 32 | sudo docker exec -it mcord_xos_synchronizer_vbbu_1 bash |
| 33 | |
| 34 | enter-vpgwc: |
| 35 | sudo docker exec -it mcord_xos_synchronizer_vpgwc_1 bash |
| 36 | |
| 37 | upgrade_pkgs: |
| 38 | sudo pip install httpie --upgrade |
| 39 | |
| 40 | rebuild_xos: |
| 41 | make -C ../../../containers/xos devel |
| 42 | |
| 43 | rebuild_synchronizer: |
| 44 | make -C ../../../containers/synchronizer |
| 45 | |
| 46 | stop: |
| 47 | docker-compose stop |
| 48 | |
| 49 | rm: |
| 50 | docker-compose stop; docker-compose rm |
| 51 | |