github.com/techend/deis@v1.0.1-0.20141111224634-e0eee0392b8a/builder/Makefile (about) 1 include ../includes.mk 2 3 COMPONENT = builder 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 rm -f deisctl 12 docker rmi $(IMAGE) 13 14 full-clean: check-docker check-registry clean 15 docker images -q $(IMAGE_PREFIX)$(COMPONENT) | xargs docker rmi -f 16 17 install: check-deisctl 18 deisctl install $(COMPONENT) 19 20 uninstall: check-deisctl 21 deisctl uninstall $(COMPONENT) 22 23 start: check-deisctl 24 deisctl start $(COMPONENT) 25 26 stop: check-deisctl 27 deisctl stop $(COMPONENT) 28 29 restart: stop start 30 31 run: install start 32 33 dev-release: push set-image 34 35 push: check-registry 36 docker tag $(IMAGE) $(DEV_IMAGE) 37 docker push $(DEV_IMAGE) 38 39 set-image: check-deisctl 40 deisctl config $(COMPONENT) set image=$(DEV_IMAGE) 41 42 release: 43 docker push $(IMAGE) 44 45 deploy: build dev-release restart 46 47 test: test-unit test-functional 48 49 test-unit: 50 @echo no unit tests 51 52 test-functional: 53 @docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest 54 GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...