blob: c71873e3566b1e1a033f0bdff74e1337606f719a [file] [log] [blame]
Tony Mackaeefc662015-10-30 18:08:47 +00001CONTAINER_NAME:=xos-server
Tony Mack86cbbd72015-11-01 16:31:30 +00002TOSCA_CONFIG_PATH:=/opt/xos/configurations/opencloud/opencloud.yaml
Tony Mack7c162e72015-10-30 15:22:20 +00003
Tony Mackaeefc662015-10-30 18:08:47 +00004.PHONY: build
Tony Mack53c46fb2015-10-31 18:11:27 +00005build: ; docker build --rm -t xos . && ./initdb
Tony Mackaeefc662015-10-30 18:08:47 +00006
7.PHONY: run
Tony Mack3da0cb22015-11-01 16:26:55 +00008run: ; docker run -d --name ${CONTAINER_NAME} -p 80:8000 xos
Tony Mackaeefc662015-10-30 18:08:47 +00009
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
Tony Mackbfae0ea2015-10-31 18:12:38 +000016.PHONY: rm
17rm: ; docker rm ${CONTAINER_NAME}