blob: 40ff5a1876ca95217c7eb7afcd2783fea690c60a [file] [log] [blame]
Andy Bavierf0405252015-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
5test: common_cloudlab
6 echo "# Autogenerated -- do not edit" > Dockerfile
7 cat ../common/Dockerfile.common Dockerfile.cord >> Dockerfile
8 cd ../../..; sudo docker build -t xos -f xos/configurations/cord/Dockerfile .
9 sudo docker run -d --add-host="ctl:$(MYIP)" -p 9999:8000 xos
10 bash ../common/wait_for_xos.sh
11
12common_cloudlab:
13 make -C ../common -f Makefile.cloudlab
14
15stop:
16 sudo docker stop $(RUNNING_CONTAINER)
17
18showlogs:
19 sudo docker logs $(LAST_CONTAINER)
20
21enter:
22 sudo docker exec -t -i $(RUNNING_CONTAINER) bash