-
Notifications
You must be signed in to change notification settings - Fork 156
/
Makefile
44 lines (32 loc) · 1.11 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
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 "buoyantio/emojivoto-svc-base:$(IMAGE_TAG)"
web:
$(MAKE) -C emojivoto-web
emoji-svc:
$(MAKE) -C emojivoto-emoji-svc
voting-svc:
$(MAKE) -C emojivoto-voting-svc
build: web emoji-svc voting-svc
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 buoyantio/emojivoto-$*:$(IMAGE_TAG)
push: push-svc-base push-emoji-svc push-voting-svc push-web