blob: 7081b51eafe8397943f822ea1f9d6d27f706e17b [file] [log] [blame]
Andy Bavierf9eee262015-10-06 14:55:44 -04001MYIP:=$(shell hostname -i)
2RUNNING_CONTAINER:=$(shell sudo docker ps|grep "xos"|awk '{print $$NF}')
3LAST_CONTAINER=$(shell sudo docker ps -l -q)
4
Scott Baker41fc11a2015-12-15 21:45:29 -08005cord: common_cloudlab ceilometer_dashboard virtualbng_json vtn_network_cfg_json
Scott Baker91780492015-12-09 21:29:48 -08006 rm ../../xos_configuration/*
Andy Bavierf9eee262015-10-06 14:55:44 -04007 echo "# Autogenerated -- do not edit" > Dockerfile
8 cat ../common/Dockerfile.common Dockerfile.cord >> Dockerfile
Scott Baker91780492015-12-09 21:29:48 -08009 cp ../common/xos_common_config ../../xos_configuration/
10 cp ./xos_cord_config ../../xos_configuration/
Andy Bavierf9eee262015-10-06 14:55:44 -040011 cd ../../..; sudo docker build -t xos -f xos/configurations/cord/Dockerfile .
12 sudo docker run -d --add-host="ctl:$(MYIP)" -p 9999:8000 xos
13 bash ../common/wait_for_xos.sh
14
15common_cloudlab:
16 make -C ../common -f Makefile.cloudlab
17
Srikanth Vavilapalli36158e82015-10-28 23:52:29 -040018ceilometer_dashboard:
19 #NOTE: The below dashboard install scripts assume
20 #clouldlab openstack environment created using "OpenStack" profile
21 bash install_xos_ceilometer_dashboard.sh
Scott Bakerb4ed57b2015-12-02 13:41:40 -080022 bash install_ceilometer_patch.sh
Srikanth Vavilapalli36158e82015-10-28 23:52:29 -040023
Scott Baker1b426a12015-12-02 20:00:20 -080024virtualbng_json:
25 bash make-virtualbng-json.sh
26
Scott Baker41fc11a2015-12-15 21:45:29 -080027vtn_network_cfg_json:
28 bash make-vtn-networkconfig-json.sh
29
Andy Bavierf9eee262015-10-06 14:55:44 -040030stop:
31 sudo docker stop $(RUNNING_CONTAINER)
32
33showlogs:
34 sudo docker logs $(LAST_CONTAINER)
35
36enter:
37 sudo docker exec -t -i $(RUNNING_CONTAINER) bash