blob: 524e4cd435ee9d0deeeb67c872c7c4cd96bf0083 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001MYIP:=$(shell hostname -i)
2
3cloudlab: common_cloudlab local_containers xos
4
5devstack: upgrade_pkgs common_devstack local_containers xos
6
7xos:
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
15common_cloudlab:
16 make -C ../common -f Makefile.cloudlab
17
18common_devstack:
19 make -C ../common -f Makefile.devstack
20
21base:
22 make -C ../../../containers/xos base
23
24local_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
34stop:
35 sudo MYIP=$(MYIP) docker-compose stop
36
37showlogs:
38 sudo MYIP=$(MYIP) docker-compose logs
39
40rm: stop
41 sudo MYIP=$(MYIP) docker-compose rm
42
43ps:
44 sudo MYIP=$(MYIP) docker-compose ps
45
46enter-xos:
47 sudo docker exec -it devel_xos_1 bash
48
49enter-synchronizer:
50 sudo docker exec -it devel_xos_synchronizer_openstack_1 bash
51
52upgrade_pkgs:
53 sudo pip install httpie --upgrade
54