Tony Mack | 94efdce | 2015-10-14 16:36:59 +0000 | [diff] [blame] | 1 | RUNNING_CONTAINER:=$(shell sudo docker ps|grep "opencloud_server"|awk '{print $$NF}') |
| 2 | |
Tony Mack | 6e2c47d | 2015-09-30 16:09:17 +0000 | [diff] [blame] | 3 | .PHONY: build |
| 4 | build: ; docker build --rm -t opencloud . |
| 5 | |
| 6 | .PHONY: run |
Tony Mack | 94efdce | 2015-10-14 16:36:59 +0000 | [diff] [blame] | 7 | run: ; docker run --rm --name opencloud_server opencloud |
| 8 | |
| 9 | .PHONY: runtosca |
| 10 | runtosca: ; docker exec -it $RUNNING_CONTAINER /usr/bin/python /opt/xos/tosca/run.py padmin@vicci.org $TOSCA_CONFIG_PATH |
Tony Mack | 6e2c47d | 2015-09-30 16:09:17 +0000 | [diff] [blame] | 11 | |
| 12 | .PHONY: stop |
| 13 | stop: ; docker stop opencloud_server |
| 14 | |
| 15 | .PHONY: rmcontainer |
| 16 | rmcontainer: ; docker rm opencloud_server |