Tony Mack | f4f7fc8 | 2015-10-30 18:08:47 +0000 | [diff] [blame^] | 1 | CONTAINER_NAME:=xos-server |
| 2 | TOSCA_CONFIG_PATH:=/opt/xos/configurations/xos/opencloud.yaml |
Tony Mack | 9b910ae | 2015-10-30 15:22:20 +0000 | [diff] [blame] | 3 | |
Tony Mack | f4f7fc8 | 2015-10-30 18:08:47 +0000 | [diff] [blame^] | 4 | .PHONY: build |
| 5 | build: ; docker build --rm -t xos . |
| 6 | |
| 7 | .PHONY: run |
| 8 | run: ; docker run --rm --name ${CONTAINER_NAME} -p 80:8000 xos |
| 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 | |
| 16 | .PHONY: rmcontainer |
| 17 | rmcontainer: ; docker rm ${CONTAINER_NAME} |