2018-02-18 14:28:52 +00:00
|
|
|
start:
|
2018-03-15 11:11:06 +00:00
|
|
|
@test "`docker-compose ps | wc -l`" -le "2" || (echo -e "/!\\ already running environment\n"; exit 1);
|
|
|
|
@echo "> [1] pre-start script";
|
|
|
|
@bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1);
|
|
|
|
@echo;
|
|
|
|
@echo "> [2] Build & launch environment";
|
|
|
|
@echo;
|
|
|
|
@docker-compose up -d && 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-log:
|
2018-02-18 18:36:35 +00:00
|
|
|
@test "`docker-compose ps | wc -l`" -le "2" || (echo -e "/!\\ already running environment\n"; exit 1);
|
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);
|
2018-02-18 14:28:52 +00:00
|
|
|
|
2018-02-18 17:41:16 +00:00
|
|
|
start-no-cache:
|
2018-02-18 18:36:35 +00:00
|
|
|
@test "`docker-compose ps | wc -l`" -le "2" || (echo -e "/!\\ already running environment\n"; exit 1);
|
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";
|
2018-02-19 14:37:45 +00:00
|
|
|
@docker-compose up -d --build > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1);
|
2018-02-18 18:07:21 +00:00
|
|
|
@echo;
|
|
|
|
@echo "> [3] post-start script";
|
|
|
|
@bash ./metactl/post-start.sh && echo "< done" || (echo "< failed"; exit 1);
|
2018-02-18 17:41:16 +00:00
|
|
|
|
2018-02-18 14:28:52 +00:00
|
|
|
stop:
|
2018-02-18 18:36:35 +00:00
|
|
|
@test "`docker-compose ps | wc -l`" -gt "2" || (echo -e "/!\\ no running environment\n"; exit 1);
|
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";
|
2018-02-19 14:37:45 +00:00
|
|
|
@docker-compose down --remove-orphans > /dev/null 2>&1 && echo "< done" || (echo "< failed"; exit 1);
|
2018-02-18 18:07:21 +00:00
|
|
|
@echo;
|
|
|
|
@echo "> [3] post-stop script";
|
2018-02-19 14:01:14 +00:00
|
|
|
@bash ./metactl/post-stop.sh && echo "< done" || (echo "< failed"; exit 1);
|