blob: d03e1bccd6ce132672e164b859fbd4b72157ef00 [file] [log] [blame]
Scott Baker381d0c32015-09-30 20:34:05 -07001MYIP:=$(shell hostname -i)
2RUNNING_CONTAINER=$(shell sudo docker ps|grep "xos"|awk '{print $$NF}')
3LAST_CONTAINER=$(shell sudo docker ps -l -q)
4
5all: frontend
6
7frontend:
8 sudo apt-get -y install httpie
9 cat ../common/Dockerfile.common Dockerfile.frontend > Dockerfile
10 cd ../../..; sudo docker build -t xos -f xos/configurations/frontend/Dockerfile .
11 sudo docker run -d --add-host="0.0.0.0:$(MYIP)" -p 9999:8000 xos
12 bash ../common/wait_for_xos.sh
13
14stop:
15 sudo docker stop $(RUNNING_CONTAINER)
16
17showlogs:
18 sudo docker logs $(LAST_CONTAINER)
19
Scott Baker79147bc2015-10-01 15:45:57 -070020enter:
Scott Baker3078b352015-10-01 19:46:50 -070021 sudo docker exec -t -i $(RUNNING_CONTAINER) bash