-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildup.sh
executable file
·71 lines (58 loc) · 2.26 KB
/
buildup.sh
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
66
67
68
69
70
71
#!/bin/bash
docker rmi johnson684/manager:latest -f
cd manager-go
docker build --network=host -t johnson684/manager:latest .
docker push johnson684/manager:latest
cd ..
docker rmi dasbd72/data-serve:latest -f
cd data-serve
docker build --network=host -t dasbd72/data-serve:latest .
docker push dasbd72/data-serve:latest
cd ..
docker rmi johnson684/cache-deleter:latest -f
cd cache-deleter
docker build --network=host -t johnson684/cache-deleter:latest .
docker push johnson684/cache-deleter:latest
cd ..
# image chain
docker rmi johnson684/image-scale:latest -f
docker build --network=host -t johnson684/image-scale:latest -f image-scale/Dockerfile .
docker push johnson684/image-scale:latest
docker rmi johnson684/image-recognition:latest -f
docker build --network=host -t johnson684/image-recognition:latest -f image-recognition/Dockerfile .
docker push johnson684/image-recognition:latest
# video chain
docker rmi johnson684/video-split:latest -f
docker build --network=host -t johnson684/video-split:latest -f video-split/Dockerfile .
docker push johnson684/video-split:latest
docker rmi johnson684/video-transcode:latest -f
docker build --network=host -t johnson684/video-transcode:latest -f video-transcode/Dockerfile .
docker push johnson684/video-transcode:latest
docker rmi johnson684/video-merge:latest -f
docker build --network=host -t johnson684/video-merge:latest -f video-merge/Dockerfile .
docker push johnson684/video-merge:latest
# word count chain
docker rmi johnson684/word-count-start:latest -f
docker build --network=host -t johnson684/word-count-start:latest -f workflow/word-count/word-count-start/Dockerfile .
docker push johnson684/word-count-start:latest
# pv
kubectl apply -f yamls/pv.yaml
kubectl apply -f yamls/pvc.yaml
# delete
# apps
kubectl delete -f yamls/app-image-chain.yaml
kubectl delete -f yamls/app-video-chain.yaml
kubectl delete -f yamls/app-word-chain.yaml
# controller
kubectl delete -f yamls/manager.yaml
kubectl delete -f yamls/data-serve.yaml
kubectl delete -f yamls/cache-deleter.yaml
# add
# controller
kubectl apply -f yamls/manager.yaml
kubectl apply -f yamls/data-serve.yaml
kubectl apply -f yamls/cache-deleter.yaml
# apps
kubectl apply -f yamls/app-image-chain.yaml
kubectl apply -f yamls/app-video-chain.yaml
kubectl apply -f yamls/app-word-chain.yaml