blob: aa6f2d50da16f0b377a9cdeefa80e2af7d665a38 [file] [log] [blame]
Jeremy Moweryc8843ab2016-04-16 12:21:04 -07001MYIP:=$(shell hostname -i)
2
3cloudlab: common_cloudlab xos
4
Jeremy Moweryc8843ab2016-04-16 12:21:04 -07005xos:
6 sudo MYIP=$(MYIP) docker-compose up -d
7 bash ../common/wait_for_xos.sh
Scott Baker2c6dc262016-04-26 16:32:57 -07008 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 Moweryc8843ab2016-04-16 12:21:04 -070011 sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml
12
Jeremy Mowerye71e2e22016-04-19 17:14:22 -070013frontend:
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 Moweryc8843ab2016-04-16 12:21:04 -070019containers:
20 cd ../../../containers/xos; make devel
21 cd ../../../containers/synchronizer; make
Jeremy Mowerye71e2e22016-04-19 17:14:22 -070022 cd ../../../containers/openvpn; make
Jeremy Moweryc8843ab2016-04-16 12:21:04 -070023
24common_cloudlab:
25 make -C ../common -f Makefile.cloudlab
26
Jeremy Moweryc8843ab2016-04-16 12:21:04 -070027stop:
28 sudo MYIP=$(MYIP) docker-compose stop
29
30showlogs:
31 sudo MYIP=$(MYIP) docker-compose logs
32
33rm: stop
34 sudo MYIP=$(MYIP) docker-compose rm
35
36ps:
37 sudo MYIP=$(MYIP) docker-compose ps
38
39enter-xos:
Jeremy Mowerya2b1c8d2016-04-19 18:36:15 -070040 sudo docker exec -it openvpn_xos_1 bash
Jeremy Moweryc8843ab2016-04-16 12:21:04 -070041
42enter-synchronizer:
Jeremy Mowerya2b1c8d2016-04-19 18:36:15 -070043 sudo docker exec -it openvpn_xos_synchronizer_openvpn_1 bash
Jeremy Moweryc8843ab2016-04-16 12:21:04 -070044
45upgrade_pkgs:
46 sudo pip install httpie --upgrade
47
48rebuild_xos:
Jeremy Mowery5ed452b2016-04-19 19:44:00 -070049 make -C ../../../containers/xos devel
Jeremy Moweryc8843ab2016-04-16 12:21:04 -070050
51rebuild_synchronizer:
52 make -C ../../../containers/synchronizer
53
54cleanup_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