blob: 9e0eae9a135e963ec9b6aef058dfc03dbef307de [file] [log] [blame]
Tony Mackf4f7fc82015-10-30 18:08:47 +00001CONTAINER_NAME:=xos-server
2TOSCA_CONFIG_PATH:=/opt/xos/configurations/xos/opencloud.yaml
Tony Mack9b910ae2015-10-30 15:22:20 +00003
Tony Mackf4f7fc82015-10-30 18:08:47 +00004.PHONY: build
Tony Mack325b3fc2015-10-31 18:11:27 +00005build: ; docker build --rm -t xos . && ./initdb
Tony Mackf4f7fc82015-10-30 18:08:47 +00006
7.PHONY: run
8run: ; docker run --rm --name ${CONTAINER_NAME} -p 80:8000 xos
9
10.PHONY: runtosca
11runtosca: ; docker exec -it ${CONTAINER_NAME} /usr/bin/python /opt/xos/tosca/run.py padmin@vicci.org ${TOSCA_CONFIG_PATH}
12
13.PHONY: stop
14stop: ; docker stop ${CONTAINER_NAME}
15
16.PHONY: rmcontainer
17rmcontainer: ; docker rm ${CONTAINER_NAME}