-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (37 loc) · 1.4 KB
/
Makefile
File metadata and controls
55 lines (37 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
#
# 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
@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"
discovery-url:
sed -i .orig -e "s,# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923,discovery: $$(curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data
build: check-docker
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) build || exit 1;)
push: check-docker check-registry
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) push || exit 1;)
full-clean:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) full-clean || exit 1;)
install:
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) install || exit 1;)
uninstall:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) uninstall || exit 1;)
start:
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) start || exit 1;)
stop:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) stop || exit 1;)
restart: stop start
run: install start
test: test-components push test-integration
test-components:
@$(foreach C, $(COMPONENTS), $(MAKE) -C $(C) test || exit 1;)
test-integration:
$(MAKE) -C tests/ test-full
test-smoke:
$(MAKE) -C tests/ test-smoke