-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (51 loc) · 2.3 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
64
65
REGISTRY = gsacavdm
VERSION = 0.0.2
default: cloudcfg collect upload process
.PHONY: cloudcfg
cloudcfg:
docker build . -t ${REGISTRY}/azparity-cloudcfg:${VERSION} -f cloudcfg/Dockerfile
docker push ${REGISTRY}/azparity-cloudcfg:${VERSION}
.PHONY: collect
collect: collect-rps collect-policies collect-roles collect-health collect-portalextensions collect-vmextensions
.PHONY: collect-rps
collect-rps:
docker build . -t ${REGISTRY}/azparity-collect-rps:${VERSION} -f collect-rps/Dockerfile
docker push ${REGISTRY}/azparity-collect-rps:${VERSION}
.PHONY: collect-policies
collect-policies:
docker build . -t ${REGISTRY}/azparity-collect-policies:${VERSION} -f collect-policies/Dockerfile
docker push ${REGISTRY}/azparity-collect-policies:${VERSION}
.PHONY: collect-roles
collect-roles:
docker build . -t ${REGISTRY}/azparity-collect-roles:${VERSION} -f collect-roles/Dockerfile
docker push ${REGISTRY}/azparity-collect-roles:${VERSION}
.PHONY: collect-health
collect-health:
docker build . -t ${REGISTRY}/azparity-collect-health:${VERSION} -f collect-health/Dockerfile
docker push ${REGISTRY}/azparity-collect-health:${VERSION}
.PHONY: collect-portalextensions
collect-portalextensions:
docker build . -t ${REGISTRY}/azparity-collect-portalextensions:${VERSION} -f collect-portalextensions/Dockerfile
docker push ${REGISTRY}/azparity-collect-portalextensions:${VERSION}
.PHONY: collect-vmextensions
collect-vmextensions:
docker build . -t ${REGISTRY}/azparity-collect-vmextensions:${VERSION} -f collect-vmextensions/Dockerfile
docker push ${REGISTRY}/azparity-collect-vmextensions:${VERSION}
.PHONY: upload
upload:
docker build . -t ${REGISTRY}/azparity-upload:${VERSION} -f upload/Dockerfile
docker push ${REGISTRY}/azparity-upload:${VERSION}
.PHONY: process
process:
docker build . -t ${REGISTRY}/azparity-process:${VERSION} -f process/Dockerfile
docker push ${REGISTRY}/azparity-process:${VERSION}
.PHONY: deploy
deploy: deploy-collect deploy-upload
.PHONY: deploy-collect
deploy-collect:
kubectl get pods | grep azparity-collect | awk '{ system("kubectl delete pod " $1) }'
find k8/ -name collect-*.yaml -exec kubectl apply -f {} \;
.PHONY: deploy-process
deploy-process:
kubectl get pods | grep azparity-process | awk '{ system("kubectl delete pod " $1) }'
find k8/ -name process-*.yaml -exec kubectl apply -f {} \;