-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (40 loc) · 1.11 KB
/
Makefile
File metadata and controls
52 lines (40 loc) · 1.11 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
include ../includes.mk
build:
$(call rsync_all)
$(call ssh_all,'cd share/router && sudo docker build -t deis/router .')
install: check-fleet
@$(foreach R, $(ROUTER_UNITS), \
cp systemd/deis-router.service ./$(R) ; \
$(FLEETCTL) load ./$(R) ; \
rm -f ./$(R) ; \
)
uninstall: check-fleet stop
@$(foreach R, $(ROUTER_UNITS), \
cp systemd/deis-router.service ./$(R) ; \
$(FLEETCTL) unload ./$(R) ; \
$(FLEETCTL) destroy ./$(R) ; \
rm -f ./$(R) ; \
)
start: check-fleet
@$(foreach R, $(ROUTER_UNITS), \
cp systemd/deis-router.service ./$(R) ; \
$(FLEETCTL) start -no-block ./$(R) ; \
rm -f ./$(R) ; \
)
stop: check-fleet
@$(foreach R, $(ROUTER_UNITS), \
cp systemd/deis-router.service ./$(R) ; \
$(FLEETCTL) stop -block-attempts=600 ./$(R) ; \
rm -f ./$(R) ; \
)
restart: stop start
run: install start
clean: uninstall
$(call ssh_all,'sudo docker rm -f deis-router')
full-clean: clean
$(call ssh_all,'sudo docker rmi deis/router')
test: test-unit test-functional
test-unit:
@echo no unit tests
test-functional:
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v -timeout 20m ./tests/...