-
Notifications
You must be signed in to change notification settings - Fork 10
/
start.sh
executable file
·48 lines (37 loc) · 1.65 KB
/
start.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
#!/bin/bash
rm -rf scrapbook
git clone https://github.com/airavata-courses/scrapbook.git
cd scrapbook
kubectl delete deployments --ignore-not-found=true kafka-broker0 sb-auth sb-gateway sb-gdrive sb-image sb-session sb-ui sb-user zookeeper-deployment-1
kubectl delete services --ignore-not-found=true sb-auth sb-gatetway sb-gdrive sb-image sb-kafka sb-session sb-ui sb-user zoo1
echo '\nDeploy Kafka\n'
git checkout main-kafka
kubectl apply -f scrapbook-kafka/scrapbook-zookeeper.yaml
kubectl apply -f scrapbook-kafka/scrapbook-broker.yaml
echo '\nDeploy Gateway\n'
git checkout main-gateway
kubectl apply -f scrapbook-gateway-service/scrapbook-gateway-service.yaml
echo '\nDeploy Auth Service\n'
git checkout main-auth-service
kubectl apply -f scrapbook-auth-service/scrapbook-auth-service.yaml
echo '\nDeploy Session Service\n'
git checkout main-session-service
kubectl apply -f scrapbook-session-service/scrapbook-session-service.yaml
echo '\nDeploy User Service\n'
git checkout main-user-service
kubectl apply -f scrapbook-user-service/scrapbook-user-service.yaml
echo '\nDeploy Image Service\n'
git checkout main-image-service
kubectl apply -f scrapbook-image-service/scrapbook-image-service.yaml
echo '\nDeploy Google Drive Service\n'
git checkout main-gdrive-service
kubectl apply -f scrapbook-googledrive-service/scrapbook-googledrive-service.yaml
echo '\nDeploy MDE Service\n'
git checkout main-mde-service
kubectl apply -f scrapbook-metadata-service/scrapbook-metadata-service.yaml
echo '\nDeploy UI\n'
git checkout main-UI
kubectl apply -f scrapbook-ui/scrapbook-ui.yaml
echo '\nDeploy Ingress\n'
git checkout main
kubectl apply -f scrapbook-prod.yaml -n default