github.com/amrnt/deis@v1.3.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 install $(COMPONENT)
    18  
    19  uninstall: check-deisctl
    20  	deisctl uninstall $(COMPONENT)
    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 $(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-unit test-functional
    47  
    48  test-unit:
    49  	@echo no unit tests
    50  
    51  test-functional:
    52  	@docker history deis/mock-store >/dev/null 2>&1 || $(MAKE) -C ../tests/ mock-store
    53  	@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
    54  	GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...