RUNNING_CONTAINER:=$(shell sudo docker ps|grep "opencloud_server"|awk '{print $$NF}') | |
.PHONY: build | |
build: ; docker build --rm -t opencloud . | |
.PHONY: run | |
run: ; docker run --rm --name opencloud_server opencloud | |
.PHONY: runtosca | |
runtosca: ; docker exec -it $RUNNING_CONTAINER /usr/bin/python /opt/xos/tosca/run.py padmin@vicci.org $TOSCA_CONFIG_PATH | |
.PHONY: stop | |
stop: ; docker stop opencloud_server | |
.PHONY: rmcontainer | |
rmcontainer: ; docker rm opencloud_server |