Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | MYIP:=$(shell hostname -i) |
| 2 | |
| 3 | cloudlab: common_cloudlab local_containers xos |
| 4 | |
| 5 | devstack: upgrade_pkgs common_devstack local_containers xos |
| 6 | |
| 7 | xos: |
| 8 | sudo MYIP=$(MYIP) docker-compose up -d |
| 9 | bash ../common/wait_for_xos.sh |
| 10 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml |
| 11 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml |
| 12 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/cloudlab-openstack.yaml |
| 13 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml |
| 14 | |
| 15 | common_cloudlab: |
| 16 | make -C ../common -f Makefile.cloudlab |
| 17 | |
| 18 | common_devstack: |
| 19 | make -C ../common -f Makefile.devstack |
| 20 | |
| 21 | base: |
| 22 | make -C ../../../containers/xos base |
| 23 | |
| 24 | local_containers: |
| 25 | echo "" > ../../../containers/xos/local_certs.crt |
| 26 | for CRT in $$(ls /usr/local/share/ca-certificates/*) ; do \ |
| 27 | echo Adding Certificate: $$CRT ;\ |
| 28 | cat $$CRT >> ../../../containers/xos/local_certs.crt ;\ |
| 29 | echo "" >> ../../../containers/xos/local_certs.crt ;\ |
| 30 | done |
| 31 | make -C ../../../containers/xos devel |
| 32 | make -C ../../../containers/synchronizer |
| 33 | |
| 34 | stop: |
| 35 | sudo MYIP=$(MYIP) docker-compose stop |
| 36 | |
| 37 | showlogs: |
| 38 | sudo MYIP=$(MYIP) docker-compose logs |
| 39 | |
| 40 | rm: stop |
| 41 | sudo MYIP=$(MYIP) docker-compose rm |
| 42 | |
| 43 | ps: |
| 44 | sudo MYIP=$(MYIP) docker-compose ps |
| 45 | |
| 46 | enter-xos: |
| 47 | sudo docker exec -it devel_xos_1 bash |
| 48 | |
| 49 | enter-synchronizer: |
| 50 | sudo docker exec -it devel_xos_synchronizer_openstack_1 bash |
| 51 | |
| 52 | upgrade_pkgs: |
| 53 | sudo pip install httpie --upgrade |
| 54 | |