blob: 53fec7b6b779ae72e90ad382c3e3ec1866dae194 [file] [log] [blame]
Pingping Lin09e613e2016-09-01 00:14:32 +00001.PHONY: xos
2xos: nodes.yaml images.yaml
3 sudo docker-compose up -d
4 ../common/wait_for_xos_port.sh 8000
5 sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml
6 sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml
7 sudo docker-compose run xos python /opt/xos/tosca/run.py none /root/setup/setup.yaml
8 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml
9 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/images.yaml
10 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/mgmt-net.yaml
11 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/mcord.yaml
12 sudo docker exec mcord_xos_1 cp /opt/xos/configurations/mcord/xos_mcord_config /opt/xos/xos_configuration/
13 sudo docker exec mcord_xos_1 touch /opt/xos/xos/settings.py
14
15nodes.yaml:
16 export SETUPDIR=.; bash ../common/make-nodes-yaml.sh
17
18images.yaml:
19 export SETUPDIR=.; bash ../common/make-images-yaml.sh
20
21.PHONY: local_containers
22local_containers:
23 cd ../../../containers/xos; make devel
24 cd ../../../containers/synchronizer; make
25enter-xos:
26 sudo docker exec -it mcord_xos_1 bash
27
28enter-os:
29 sudo docker exec -it mcord_xos_synchronizer_openstack_1 bash
30
31enter-vbbu:
32 sudo docker exec -it mcord_xos_synchronizer_vbbu_1 bash
33
34enter-vpgwc:
35 sudo docker exec -it mcord_xos_synchronizer_vpgwc_1 bash
36
37upgrade_pkgs:
38 sudo pip install httpie --upgrade
39
40rebuild_xos:
41 make -C ../../../containers/xos devel
42
43rebuild_synchronizer:
44 make -C ../../../containers/synchronizer
45
46stop:
47 docker-compose stop
48
49rm:
50 docker-compose stop; docker-compose rm
51