github.com/gust1n/deis@v0.13.1-0.20141009230754-43ff4d95947b/Makefile (about)

     1  #
     2  # Deis Makefile
     3  #
     4  
     5  include includes.mk
     6  
     7  COMPONENTS=builder cache controller database logger logspout publisher registry router store
     8  START_ORDER=publisher store logger logspout database cache registry controller builder router
     9  CLIENTS=client deisctl
    10  
    11  all: build run
    12  
    13  dev-registry: check-docker
    14  	@docker inspect registry >/dev/null && docker start registry || docker run -d -p 5000:5000 --name registry registry:0.8.1
    15  	@echo
    16  	@echo "To use local boot2docker registry for Deis development:"
    17  	@echo "    export DEV_REGISTRY=`boot2docker ip 2>/dev/null`:5000"
    18  
    19  discovery-url:
    20  	sed -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$(curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data > contrib/coreos/user-data.new
    21  	mv contrib/coreos/user-data.new contrib/coreos/user-data
    22  
    23  build: check-docker
    24  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) build &&) echo done
    25  	@$(foreach C, $(CLIENTS), $(MAKE) -C $(C) build &&) echo done
    26  
    27  clean:
    28  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) clean &&) echo done
    29  	@$(foreach C, $(CLIENTS), $(MAKE) -C $(C) clean &&) echo done
    30  
    31  full-clean:
    32  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) full-clean &&) echo done
    33  
    34  install:
    35  	@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) install &&) echo done
    36  
    37  uninstall:
    38  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) uninstall &&) echo done
    39  
    40  start:
    41  	@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) start &&) echo done
    42  
    43  stop:
    44  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) stop &&) echo done
    45  
    46  restart: stop start
    47  
    48  run: install start
    49  
    50  dev-release:
    51  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) dev-release &&) echo done
    52  
    53  release: check-registry
    54  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) release &&) echo done
    55  	@$(foreach C, $(CLIENTS), $(MAKE) -C $(C) release &&) echo done
    56  
    57  deploy: build dev-release restart
    58  
    59  test: test-components push test-integration
    60  
    61  test-components:
    62  	@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) test &&) echo done
    63  
    64  test-integration:
    65  	$(MAKE) -C tests/ test-full
    66  
    67  test-smoke:
    68  	$(MAKE) -C tests/ test-smoke