Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 1 | MYIP:=$(shell hostname -i) |
| 2 | |
| 3 | cloudlab: common_cloudlab xos |
| 4 | |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 5 | xos: |
| 6 | sudo MYIP=$(MYIP) docker-compose up -d |
| 7 | bash ../common/wait_for_xos.sh |
Scott Baker | 2c6dc26 | 2016-04-26 16:32:57 -0700 | [diff] [blame] | 8 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml |
| 9 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml |
| 10 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/cloudlab-openstack.yaml |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 11 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml |
| 12 | |
Jeremy Mowery | e71e2e2 | 2016-04-19 17:14:22 -0700 | [diff] [blame] | 13 | frontend: |
| 14 | sudo make -f ../common/Makefile.prereqs |
| 15 | sudo docker-compose up -d |
| 16 | bash ../common/wait_for_xos.sh |
| 17 | sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/sample.yaml |
| 18 | |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 19 | containers: |
| 20 | cd ../../../containers/xos; make devel |
| 21 | cd ../../../containers/synchronizer; make |
Jeremy Mowery | e71e2e2 | 2016-04-19 17:14:22 -0700 | [diff] [blame] | 22 | cd ../../../containers/openvpn; make |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 23 | |
| 24 | common_cloudlab: |
| 25 | make -C ../common -f Makefile.cloudlab |
| 26 | |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 27 | stop: |
| 28 | sudo MYIP=$(MYIP) docker-compose stop |
| 29 | |
| 30 | showlogs: |
| 31 | sudo MYIP=$(MYIP) docker-compose logs |
| 32 | |
| 33 | rm: stop |
| 34 | sudo MYIP=$(MYIP) docker-compose rm |
| 35 | |
| 36 | ps: |
| 37 | sudo MYIP=$(MYIP) docker-compose ps |
| 38 | |
| 39 | enter-xos: |
Jeremy Mowery | a2b1c8d | 2016-04-19 18:36:15 -0700 | [diff] [blame] | 40 | sudo docker exec -it openvpn_xos_1 bash |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 41 | |
| 42 | enter-synchronizer: |
Jeremy Mowery | a2b1c8d | 2016-04-19 18:36:15 -0700 | [diff] [blame] | 43 | sudo docker exec -it openvpn_xos_synchronizer_openvpn_1 bash |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 44 | |
| 45 | upgrade_pkgs: |
| 46 | sudo pip install httpie --upgrade |
| 47 | |
| 48 | rebuild_xos: |
Jeremy Mowery | 5ed452b | 2016-04-19 19:44:00 -0700 | [diff] [blame] | 49 | make -C ../../../containers/xos devel |
Jeremy Mowery | c8843ab | 2016-04-16 12:21:04 -0700 | [diff] [blame] | 50 | |
| 51 | rebuild_synchronizer: |
| 52 | make -C ../../../containers/synchronizer |
| 53 | |
| 54 | cleanup_docker: rm |
| 55 | sudo docker rm -v $(docker ps -a -q -f status=exited) || true |
| 56 | docker rm -v $(docker ps -a -q -f status=exited) || true |
| 57 | sudo docker rmi $(docker images -qf "dangling=true") || true |
| 58 | socker rmi $(docker images -qf "dangling=true") || true |
| 59 | sudo docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes || true |