Scott Baker | d4f59d3 | 2015-09-29 23:07:09 -0700 | [diff] [blame] | 1 | MYIP:=$(shell hostname -i) |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 2 | EXISTING_CONTAINER:=$(shell sudo docker ps|grep "xos"|awk '{print $$NF}') |
Scott Baker | d4f59d3 | 2015-09-29 23:07:09 -0700 | [diff] [blame] | 3 | |
| 4 | test: common_cloudlab |
Scott Baker | 57151b9 | 2015-10-01 10:53:15 -0700 | [diff] [blame^] | 5 | cat ../common/Dockerfile.common Dockerfile.devel > Dockerfile |
| 6 | cd ../../..; sudo docker build -t xos -f xos/configurations/devel/Dockerfile . |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 7 | sudo docker run -d --add-host="0.0.0.0:$(MYIP)" -p 9999:8000 xos |
| 8 | bash ../common/wait_for_xos.sh |
Scott Baker | d4f59d3 | 2015-09-29 23:07:09 -0700 | [diff] [blame] | 9 | |
| 10 | common_cloudlab: |
| 11 | make -C ../common -f Makefile.cloudlab |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 12 | |
| 13 | stop: |
| 14 | sudo docker stop $(EXISTING_CONTAINER) |