Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 1 | MYIP:=$(shell hostname -i) |
| 2 | RUNNING_CONTAINER:=$(shell sudo docker ps|grep "xos"|awk '{print $$NF}') |
| 3 | LAST_CONTAINER=$(shell sudo docker ps -l -q) |
| 4 | |
Scott Baker | 41fc11a | 2015-12-15 21:45:29 -0800 | [diff] [blame] | 5 | cord: common_cloudlab ceilometer_dashboard virtualbng_json vtn_network_cfg_json |
Scott Baker | 9178049 | 2015-12-09 21:29:48 -0800 | [diff] [blame] | 6 | rm ../../xos_configuration/* |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 7 | echo "# Autogenerated -- do not edit" > Dockerfile |
| 8 | cat ../common/Dockerfile.common Dockerfile.cord >> Dockerfile |
Scott Baker | 9178049 | 2015-12-09 21:29:48 -0800 | [diff] [blame] | 9 | cp ../common/xos_common_config ../../xos_configuration/ |
| 10 | cp ./xos_cord_config ../../xos_configuration/ |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 11 | 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 | |
| 15 | common_cloudlab: |
| 16 | make -C ../common -f Makefile.cloudlab |
| 17 | |
Srikanth Vavilapalli | 36158e8 | 2015-10-28 23:52:29 -0400 | [diff] [blame] | 18 | ceilometer_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 Baker | b4ed57b | 2015-12-02 13:41:40 -0800 | [diff] [blame] | 22 | bash install_ceilometer_patch.sh |
Srikanth Vavilapalli | 36158e8 | 2015-10-28 23:52:29 -0400 | [diff] [blame] | 23 | |
Scott Baker | 1b426a1 | 2015-12-02 20:00:20 -0800 | [diff] [blame] | 24 | virtualbng_json: |
| 25 | bash make-virtualbng-json.sh |
| 26 | |
Scott Baker | 41fc11a | 2015-12-15 21:45:29 -0800 | [diff] [blame] | 27 | vtn_network_cfg_json: |
| 28 | bash make-vtn-networkconfig-json.sh |
| 29 | |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 30 | stop: |
| 31 | sudo docker stop $(RUNNING_CONTAINER) |
| 32 | |
| 33 | showlogs: |
| 34 | sudo docker logs $(LAST_CONTAINER) |
| 35 | |
| 36 | enter: |
| 37 | sudo docker exec -t -i $(RUNNING_CONTAINER) bash |