blob: eb5802a4c7b0292825b9da042934c033a781a4e0 [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: upgrade_pkgs common_devstack devstack_net_fix 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
devstack_net_fix:
sudo ../devstack/net-fix.sh
sudo bash -c "source ../common/admin-openrc.sh; neutron subnet-update private-subnet --dns-nameservers list=true 8.8.8.8 8.8.4.4"
upgrade_pkgs:
sudo pip install httpie --upgrade