blob: 7d11490f958d143fa57ac474eea3d72a329b4b24 [file] [log] [blame]
Andy Bavier941c9322015-10-05 17:08:41 -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 images
6 echo "# Autogenerated -- do not edit" > Dockerfile
7 cat ../common/Dockerfile.common Dockerfile.kilo-install >> Dockerfile
8 cd ../../..; sudo docker build -t xos -f xos/configurations/kilo-install/Dockerfile .
9 sudo docker run -d --add-host="0.0.0.0:$(MYIP)" -p 9999:8000 -v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates:ro 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
23
24images:
25 sudo bash -c "source /root/setup/admin-openrc.sh; \
26 glance image-show trusty-server-multi-nic || \
27 glance image-create --name trusty-server-multi-nic \
28 --disk-format qcow2 \
29 --file /proj/xos-PG0/acb/images/trusty-server-multi-nic.img \
30 --container-format bare"