@@ -6,47 +6,59 @@ include includes.mk
66
77COMPONENTS =builder cache controller database logger registry router
88START_ORDER =logger database cache registry controller builder router
9+ CLIENTS =client deisctl
910
1011all : build run
1112
1213dev-registry : check-docker
13- @docker run -d -p 5000:5000 --name registry registry:0.8.1
14+ @docker inspect registry > /dev/null && docker start registry || docker run -d -p 5000:5000 --name registry registry:0.8.1
1415 @echo
15- @echo " To configure the registry for local Deis development:"
16- @echo " export DEIS_REGISTRY =` boot2docker ip 2> /dev/null` :5000"
16+ @echo " To use local boot2docker registry for Deis development:"
17+ @echo " export DEV_REGISTRY =` boot2docker ip 2> /dev/null` :5000"
1718
1819discovery-url :
1920 sed -i .orig -e " s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$ (curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data
2021
2122build : check-docker
22- @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) build || exit 1;)
23+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) build &&) echo done
24+ @$(foreach C, $(CLIENTS ) , $(MAKE ) -C $(C ) build &&) echo done
25+
26+ clean :
27+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) clean &&) echo done
28+ @$(foreach C, $(CLIENTS ) , $(MAKE ) -C $(C ) clean &&) echo done
2329
24- push : check-docker check-registry
25- @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) push || exit 1;)
26-
2730full-clean :
28- @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) full-clean || exit 1;)
31+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) full-clean &&) echo done
2932
3033install :
31- @$(foreach C, $(START_ORDER ) , $(MAKE ) -C $(C ) install || exit 1;)
34+ @$(foreach C, $(START_ORDER ) , $(MAKE ) -C $(C ) install &&) echo done
3235
3336uninstall :
34- @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) uninstall || exit 1;)
37+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) uninstall &&) echo done
3538
3639start :
37- @$(foreach C, $(START_ORDER ) , $(MAKE ) -C $(C ) start || exit 1;)
40+ @$(foreach C, $(START_ORDER ) , $(MAKE ) -C $(C ) start &&) echo done
3841
3942stop :
40- @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) stop || exit 1;)
43+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) stop &&) echo done
4144
4245restart : stop start
4346
4447run : install start
4548
49+ dev-release :
50+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) dev-release &&) echo done
51+
52+ release : check-registry
53+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) release &&) echo done
54+ @$(foreach C, $(CLIENTS ) , $(MAKE ) -C $(C ) release &&) echo done
55+
56+ deploy : build dev-release restart
57+
4658test : test-components push test-integration
4759
4860test-components :
49- @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) test || exit 1;)
61+ @$(foreach C, $(COMPONENTS ) , $(MAKE ) -C $(C ) test &&) echo done
5062
5163test-integration :
5264 $(MAKE ) -C tests/ test-full
0 commit comments