-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 990 Bytes
/
Makefile
File metadata and controls
41 lines (28 loc) · 990 Bytes
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
include ../includes.mk
build: check-docker
docker build -t deis/router:$(GIT_TAG) .
push: check-docker check-registry check-deisctl
docker tag deis/router:$(GIT_TAG) $(REGISTRY)/deis/router:$(GIT_TAG)
docker push $(REGISTRY)/deis/router:$(GIT_TAG)
deisctl config router set image=$$DEIS_REGISTRY/deis/router:$(GIT_TAG)
clean: check-docker check-registry
docker rmi deis/router:$(GIT_TAG)
docker rmi $(REGISTRY)/deis/router:$(GIT_TAG)
full-clean: check-docker check-registry
docker images -q deis/router | xargs docker rmi -f
docker images -q $(REGISTRY)/deis/router | xargs docker rmi -f
install: check-deisctl
deisctl scale router=1
uninstall: check-deisctl
deisctl scale router=0
start: check-deisctl
deisctl start router
stop: check-deisctl
deisctl stop router
restart: stop start
run: install start
test: test-unit test-functional
test-unit:
@echo no unit tests
test-functional:
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v -timeout 20m ./tests/...