-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (41 loc) · 1.4 KB
/
Makefile
File metadata and controls
60 lines (41 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# Deis Makefile
#
include includes.mk
COMPONENTS=builder cache controller database logger registry router
START_ORDER=logger database cache registry controller builder router
all: build run
dev-registry: check-docker
@# pull registry image if it doesn't already exist
@docker history registry:0.8.1 >/dev/null 2>&1 || docker pull registry:0.8.1
@# run registry container if it doesn't already exist
@docker inspect registry >/dev/null 2>&1 || docker run -d -p 5000:5000 --name registry registry:0.8.1
@echo
@echo "To configure the registry for local Deis development:"
@echo " export DEIS_REGISTRY=`boot2docker ip 2>/dev/null`:5000"
build: check-docker
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) build ;)
push: check-docker check-registry
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) push ;)
full-clean:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) full-clean ;)
install:
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) install ;)
uninstall:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) uninstall ;)
start:
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) start ;)
stop:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) stop ;)
restart: stop start
run: install start
test: test-components test-integration
test-components:
@$(foreach C,$(COMPONENTS), \
echo \\nTesting deis/$(C) ; \
$(MAKE) -C $(C) test ; \
)
test-integration:
$(MAKE) -C tests/ test-full
test-smoke:
$(MAKE) -C tests/ test-smoke