Tony Mack | aeefc66 | 2015-10-30 18:08:47 +0000 | [diff] [blame] | 1 | CONTAINER_NAME:=xos-server |
Tony Mack | 86cbbd7 | 2015-11-01 16:31:30 +0000 | [diff] [blame^] | 2 | TOSCA_CONFIG_PATH:=/opt/xos/configurations/opencloud/opencloud.yaml |
Tony Mack | 7c162e7 | 2015-10-30 15:22:20 +0000 | [diff] [blame] | 3 | |
Tony Mack | aeefc66 | 2015-10-30 18:08:47 +0000 | [diff] [blame] | 4 | .PHONY: build |
Tony Mack | 53c46fb | 2015-10-31 18:11:27 +0000 | [diff] [blame] | 5 | build: ; docker build --rm -t xos . && ./initdb |
Tony Mack | aeefc66 | 2015-10-30 18:08:47 +0000 | [diff] [blame] | 6 | |
| 7 | .PHONY: run |
Tony Mack | 3da0cb2 | 2015-11-01 16:26:55 +0000 | [diff] [blame] | 8 | run: ; docker run -d --name ${CONTAINER_NAME} -p 80:8000 xos |
Tony Mack | aeefc66 | 2015-10-30 18:08:47 +0000 | [diff] [blame] | 9 | |
| 10 | .PHONY: runtosca |
| 11 | runtosca: ; docker exec -it ${CONTAINER_NAME} /usr/bin/python /opt/xos/tosca/run.py padmin@vicci.org ${TOSCA_CONFIG_PATH} |
| 12 | |
| 13 | .PHONY: stop |
| 14 | stop: ; docker stop ${CONTAINER_NAME} |
| 15 | |
Tony Mack | bfae0ea | 2015-10-31 18:12:38 +0000 | [diff] [blame] | 16 | .PHONY: rm |
| 17 | rm: ; docker rm ${CONTAINER_NAME} |