blob: 0ec4a3543421d16a9e17c13cc401338c3aef4a6a [file] [log] [blame]
Jeremy Moweryc8843ab2016-04-16 12:21:04 -07001MYIP:=$(shell hostname -i)
2
3cloudlab: common_cloudlab xos
4
5devstack: upgrade_pkgs common_devstack xos
6
7xos:
8 sudo MYIP=$(MYIP) docker-compose up -d
9 bash ../common/wait_for_xos.sh
10 sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/base.yaml
11 sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml
12
13containers:
14 cd ../../../containers/xos; make devel
15 cd ../../../containers/synchronizer; make
16 cd ../../../containers/vpn; make
17
18common_cloudlab:
19 make -C ../common -f Makefile.cloudlab
20
21common_devstack:
22 make -C ../common -f Makefile.devstack
23
24stop:
25 sudo MYIP=$(MYIP) docker-compose stop
26
27showlogs:
28 sudo MYIP=$(MYIP) docker-compose logs
29
30rm: stop
31 sudo MYIP=$(MYIP) docker-compose rm
32
33ps:
34 sudo MYIP=$(MYIP) docker-compose ps
35
36enter-xos:
37 sudo docker exec -it devel_xos_1 bash
38
39enter-synchronizer:
40 sudo docker exec -it devel_xos_synchronizer_openstack_1 bash
41
42upgrade_pkgs:
43 sudo pip install httpie --upgrade
44
45rebuild_xos:
46 make -C ../../../containers/xos devel
47
48rebuild_synchronizer:
49 make -C ../../../containers/synchronizer
50
51cleanup_docker: rm
52 sudo docker rm -v $(docker ps -a -q -f status=exited) || true
53 docker rm -v $(docker ps -a -q -f status=exited) || true
54 sudo docker rmi $(docker images -qf "dangling=true") || true
55 socker rmi $(docker images -qf "dangling=true") || true
56 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