forked from tensorflow/models
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (30 loc) · 1003 Bytes
/
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
URL="dummyai/tf-object-detection"
dev:
docker run -v `pwd`:/app/object_detection -it $(URL) bash
run:
docker run -p 5900:5900 -it $(URL)
jupyter:
docker run -p 8889:8889 -it $(URL) bash # jupyter notebook --allow-root --ip 0.0.0.0 --port 8889
push:
docker push $(URL)
build:
docker build -t $(URL):`cat VERSION` .
docker tag $(URL):`cat VERSION` $(URL):latest
deploy-ingress-controller:
kubectl create configmap nginx-template --from-file=nginx.tmpl=./nginx.tmpl
kubectl create -f ./ingress-controller.yaml
clean-ingress-controller:
kubectl delete service nginx-ingress
kubectl delete deploy nginx-ingress-controller
kubectl delete configmap --all
clean-ingress:
kubectl delete ing dummy-ing
deploy-ingress:
kubectl create -f ingress.yaml
deploy-app:
kubectl create -f pod.yaml
kubectl expose deploy tf-object-detection --type=NodePort --name=tf-object-detection
clean-app:
kubectl delete deploy tf-object-detection
kubectl delete service tf-object-detection
.PHONY: build