github.com/econnell/deis@v1.5.1/registry/Makefile (about) 1 include ../includes.mk 2 3 COMPONENT = registry 4 IMAGE = $(IMAGE_PREFIX)$(COMPONENT):$(BUILD_TAG) 5 DEV_IMAGE = $(DEV_REGISTRY)/$(IMAGE) 6 7 build: check-docker 8 docker build -t $(IMAGE) . 9 10 clean: check-docker check-registry 11 docker rmi $(IMAGE) 12 13 full-clean: check-docker check-registry 14 docker images -q $(IMAGE_PREFIX)$(COMPONENT) | xargs docker rmi -f 15 16 install: check-deisctl 17 deisctl scale $(COMPONENT)=1 18 19 uninstall: check-deisctl 20 deisctl scale $(COMPONENT)=0 21 22 start: check-deisctl 23 deisctl start $(COMPONENT)@* 24 25 stop: check-deisctl 26 deisctl stop $(COMPONENT)@* 27 28 restart: stop start 29 30 run: install start 31 32 dev-release: push set-image 33 34 push: check-registry 35 docker tag -f $(IMAGE) $(DEV_IMAGE) 36 docker push $(DEV_IMAGE) 37 38 set-image: check-deisctl 39 deisctl config $(COMPONENT) set image=$(DEV_IMAGE) 40 41 release: 42 docker push $(IMAGE) 43 44 deploy: build dev-release restart 45 46 test: test-style test-unit test-functional 47 48 test-functional: 49 @docker history deis/mock-store >/dev/null 2>&1 || $(MAKE) -C ../tests/ mock-store 50 @docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest 51 GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/... 52 53 test-style: 54 @echo no style tests 55 56 test-unit: 57 @echo no unit tests