ptut-virtenv/Makefile

29 lines
1.1 KiB
Makefile
Raw Normal View History

start:
2018-02-18 18:07:21 +00:00
@echo "> [1] pre-start script";
@bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1);
@echo;
@echo "> [2] Build & launch environment";
@docker-compose up -d > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1);
@echo;
@echo "> [3] post-start script";
@bash ./metactl/post-start.sh && echo "< done" || (echo "< failed"; exit 1);
start-no-cache:
2018-02-18 18:07:21 +00:00
@echo "> [1] pre-start script";
@bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1);
@echo;
@echo "> [2] Build & launch environment";
@docker-compose up --force-recreate --build -d > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1);
@echo;
@echo "> [3] post-start script";
@bash ./metactl/post-start.sh && echo "< done" || (echo "< failed"; exit 1);
stop:
2018-02-18 18:07:21 +00:00
@echo "> [1] pre-stop script";
@bash ./metactl/pre-stop.sh && echo "< done" || (echo "< failed"; exit 1);
@echo;
@echo "> [2] Stop and remove environment";
@docker-compose down > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1);
@echo;
@echo "> [3] post-stop script";
@bash ./metactl/post-stop.sh && echo "< done" || (echo "< failed"; exit 1);