blob: 216673dc93b83ae5f1e23f38dcf19dfa53a83f54 [file] [log] [blame]
MYIP:=$(shell hostname -i)
RUNNING_CONTAINER:=$(shell sudo docker ps|grep "xos"|awk '{print $$NF}')
LAST_CONTAINER=$(shell sudo docker ps -l -q)
cloudlab: common_cloudlab xos
devstack: common_devstack xos
xos:
rm ../../xos_configuration/*
cp ../common/xos_common_config ../../xos_configuration/
echo "# Autogenerated -- do not edit" > Dockerfile
cat ../common/Dockerfile.common Dockerfile.devel >> Dockerfile
cd ../../..; sudo docker build -t xosproject/xos-devel -f xos/configurations/devel/Dockerfile .
sudo docker run -d --add-host="ctl:$(MYIP)" -p 9999:8000 xosproject/xos-devel
bash ../common/wait_for_xos.sh
common_cloudlab:
make -C ../common -f Makefile.cloudlab
common_devstack:
make -C ../common -f Makefile.devstack
stop:
sudo docker stop $(RUNNING_CONTAINER)
showlogs:
sudo docker logs $(LAST_CONTAINER)
enter:
sudo docker exec -t -i $(RUNNING_CONTAINER) bash