-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (36 loc) · 1.45 KB
/
Makefile
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
include includes.mk
CONTAINER = squid router alpine centos-6 centos-7 fedora-21 ubuntu-14.04 \
nginx chef-server consul docker dockerui elasticsearch kibana \
logstash seagull
START_ORDER = squid router
all: init build
dev-registry: check-docker
@docker inspect registry >/dev/null 2>&1 && docker start registry || docker run --restart="always" -d -p 5000:5000 --name registry registry:0.9.1
@echo
@echo "To use the local registry for development:"
@echo " export DEV_REGISTRY=`docker-machine ip ip 2>/dev/null`:5000"
init: check-docker
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) build &&) echo done
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) run &&) echo done
build: check-docker
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) build &&) echo done
clean:
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) clean &&) echo done
full-clean:
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) full-clean &&) echo done
start:
@$(foreach C, $(START_ORDER), $(MAKE) -C $(C) start &&) echo done
stop:
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) stop &&) echo done
restart: stop start
run: start
dev-release:
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) dev-release &&) echo done
push:
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) push &&) echo done
set-image:
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) set-image &&) echo done
release: check-registry
@$(foreach C, $(CONTAINER), $(MAKE) -C $(C) release &&) echo done
deploy: build dev-release restart
test: