[Makefile] 'make start' logs output by default 'make start-no-log' don't
This commit is contained in:
parent
d280118b9b
commit
33e6992be8
12
Makefile
12
Makefile
|
@ -1,4 +1,16 @@
|
||||||
start:
|
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);
|
@test "`docker-compose ps | wc -l`" -le "2" || (echo -e "/!\\ already running environment\n"; exit 1);
|
||||||
@echo "> [1] pre-start script";
|
@echo "> [1] pre-start script";
|
||||||
@bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1);
|
@bash ./metactl/pre-start.sh && echo "< done" || (echo "< failed"; exit 1);
|
||||||
|
|
Loading…
Reference in New Issue