15 lines
786 B
Makefile
15 lines
786 B
Makefile
|
start:
|
||
|
@echo -n "> 1. Execute pre-start script..........";
|
||
|
@bash ./metactl/pre-start.sh && echo "done" || (echo "failed"; exit 1);
|
||
|
@echo -n "> 2. Build & launch environment........";
|
||
|
@docker-compose up -d > /dev/null 2>&1 && echo "done" || (echo "failed"; exit 1);
|
||
|
@echo -n "> 3. Execute post-start script.........";
|
||
|
@bash ./metactl/post-start.sh && echo "done" || (echo "failed"; exit 1);
|
||
|
|
||
|
stop:
|
||
|
@echo -n "> 1. Execute pre-stop script...........";
|
||
|
@bash ./metactl/pre-stop.sh && echo "done" || (echo "failed"; exit 1);
|
||
|
@echo -n "> 2. Stop and remove environment.....";
|
||
|
@docker-compose down > /dev/null 2>&1 && echo "done" || (echo "failed"; exit 1);
|
||
|
@echo -n "> 3. Execute post-stop script..........";
|
||
|
@bash ./metactl/post-stop.sh && echo "done" || (echo "failed"; exit 1);
|