forked from gunjeetgulatigit/nameko-devex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.12 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
SHELL = /bin/bash
HOST ?= localhost
NAMESPACE ?= nameko
CONTEXT ?= kind-${NAMESPACE}
TAG ?= dev
all: startup requirements deploy
deploy: charts helm.app.deploy.bash helm.app.wipe.bash
# These images can be build using make build in the parent folder.
kind load docker-image --name nameko hazelflames/nameko-gateway:dev hazelflames/nameko-products:dev hazelflames/nameko-orders:dev
if ./helm.app.deploy.bash ${NAMESPACE} ${CONTEXT};\
then\
true;\
else\
./helm.app.wipe.bash ${NAMESPACE} ${CONTEXT};\
fi
requirements: helm.req.deploy.bash
if ./helm.req.deploy.bash ${NAMESPACE} ${CONTEXT};\
then\
true;\
else\
./helm.req.wipe.bash ${NAMESPACE} ${CONTEXT};\
fi
startup: kind.startup.bash kind.wipe.bash
if ./kind.startup.bash ${HOST} ${NAMESPACE};\
then\
true;\
else\
./kind.wipe.bash ${NAMESPACE};\
fi
test-bm:
# activate the Python enviroment first
cd ..;\
./test/nex-bzt.sh http://localhost:80
wipe: wipe-app wipe-req kind.wipe.bash
./kind.wipe.bash ${NAMESPACE}
wipe-app: helm.app.wipe.bash
./helm.app.wipe.bash ${NAMESPACE} ${CONTEXT}
wipe-req: helm.req.wipe.bash
./helm.req.wipe.bash ${NAMESPACE} ${CONTEXT}