[Makefile] 'make start' logs output by default 'make start-no-log' don't

This commit is contained in:
xdrm-brackets 2018-03-15 12:11:06 +01:00
parent d280118b9b
commit 33e6992be8
1 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,16 @@
start:
@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:
@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);