forked from BuoyantIO/emojivoto
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Makefile
63 lines (44 loc) · 1.47 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
57
58
59
60
61
62
63
include ./common.mk
.PHONY: web emoji-svc voting-svc integration-tests push
all: build integration-tests
build-base-docker-image:
docker build . -f Dockerfile-base -t "datawire/emojivoto-svc-base:$(IMAGE_TAG)"
web:
$(MAKE) -C emojivoto-web
web-app:
$(MAKE) -C emojivoto-web-app
emoji-svc:
$(MAKE) -C emojivoto-emoji-svc
voting-svc:
$(MAKE) -C emojivoto-voting-svc
emoji-svc-local:
$(MAKE) -C emojivoto-emoji-svc local
voting-svc-local:
$(MAKE) -C emojivoto-voting-svc local
web-local:
$(MAKE) -C emojivoto-web local
web-app-local:
$(MAKE) -C emojivoto-web-app local
build: web web-app emoji-svc voting-svc
build-ui: build-container-ui
local: web-local web-app-local emoji-svc-local voting-svc-local
multi-arch:
$(MAKE) -C emojivoto-web build-multi-arch
$(MAKE) -C emojivoto-emoji-svc build-multi-arch
$(MAKE) -C emojivoto-voting-svc build-multi-arch
deploy-to-minikube:
$(MAKE) -C emojivoto-web build-container
$(MAKE) -C emojivoto-emoji-svc build-container
$(MAKE) -C emojivoto-voting-svc build-container
kubectl delete -f emojivoto.yml || echo "ok"
kubectl apply -f emojivoto.yml
deploy-to-docker-compose:
docker-compose stop
docker-compose rm -vf
$(MAKE) -C emojivoto-web build-container
$(MAKE) -C emojivoto-emoji-svc build-container
$(MAKE) -C emojivoto-voting-svc build-container
docker-compose -f ./docker-compose.yml up -d
push-%:
docker push datawire/emojivoto-$*:$(IMAGE_TAG)
push: push-svc-base push-emoji-svc push-voting-svc push-web push-web-app