forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
container_build.sh
executable file
·128 lines (106 loc) · 5.24 KB
/
container_build.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/bash
ECR_URI=$1
REGION=$2
AWSCLI_PROFILE=$3
# Create ECR repository
aws ecr create-repository --repository-name deploy-streamlit --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name train-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name recommend-family --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name deploy-karpenter-node-pool --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name kubernetes-inference-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name job-model-profile-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name job-model-profile --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name serverless-inference-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name kubernetes-inference --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name serverless-inference --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name llama-inference-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name diffusion-inference-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name llama2-inference --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name diffusion-inference --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name llama2-streamlit --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name sdxl1-streamlit --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name llama-train-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name diffusion-train-deploy --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name ray-cpu --region $REGION --profile $AWSCLI_PROFILE
aws ecr create-repository --repository-name ray-gpu --region $REGION --profile $AWSCLI_PROFILE
aws ecr get-login-password --region $REGION --profile $AWSCLI_PROFILE | docker login --username AWS --password-stdin $ECR_URI
cd ./automation/deploy_streamlit
docker build -t $ECR_URI/deploy-streamlit:latest .
docker push $ECR_URI/deploy-streamlit:latest
cd -
cd ./automation/deploy_train
docker build -t $ECR_URI/train-deploy:latest .
docker push $ECR_URI/train-deploy:latest
cd -
cd ./recommend/family_recommend/family
docker build -t $ECR_URI/recommend-family:latest .
docker push $ECR_URI/recommend-family:latest
cd -
cd ./automation/karpenter_node_pool_deploy
docker build -t $ECR_URI/deploy-karpenter-node-pool:latest . -f Dockerfile_x86
docker push $ECR_URI/deploy-karpenter-node-pool:latest
cd -
cd ./automation/kubernetes_inference_deploy
docker build -t $ECR_URI/kubernetes-inference-deploy:latest .
docker push $ECR_URI/kubernetes-inference-deploy:latest
cd -
cd ./automation/kubernetes_model_profiler_deploy
docker build -t $ECR_URI/job-model-profile-deploy:latest .
docker push $ECR_URI/job-model-profile-deploy:latest
cd -
cd ./model_profile/template_code
docker build -t $ECR_URI/job-model-profile:latest .
docker push $ECR_URI/job-model-profile:latest
cd -
cd ./automation/serverless_inference_deploy
./install_terraform_init.sh
./install_terraform_binary.sh
docker build -t $ECR_URI/serverless-inference-deploy:latest .
docker push $ECR_URI/serverless-inference-deploy:latest
cd -
cd ./inference/template_code
docker build -t $ECR_URI/kubernetes-inference:latest . -f Dockerfile.kubernetes_gpu
docker push $ECR_URI/kubernetes-inference:latest
docker build -t $ECR_URI/serverless-inference:latest . -f Dockerfile.lambda
docker push $ECR_URI/serverless-inference:latest
cd -
cd ./automation/llama_inference_deploy
docker build -t $ECR_URI/llama-inference-deploy:latest .
docker push $ECR_URI/llama-inference-deploy:latest
cd -
cd ./automation/diffusion_inference_deploy
docker build -t $ECR_URI/diffusion-inference-deploy:latest .
docker push $ECR_URI/diffusion-inference-deploy:latest
cd -
cd ./inference/template_code/llama
docker build -t $ECR_URI/llama2-inference:latest . -f Dockerfile.kubernetes_gpu
docker push $ECR_URI/llama2-inference:latest
cd -
cd ./inference/template_code/diffusion
docker build -t $ECR_URI/diffusion-inference:latest . -f Dockerfile.kubernetes_gpu
docker push $ECR_URI/diffusion-inference:latest
cd -
cd ./automation/deploy_streamlit/llama2
docker build -t $ECR_URI/llama2-streamlit:latest .
docker push $ECR_URI/llama2-streamlit:latest
cd -
cd ./automation/deploy_streamlit/stable_diffusion
docker build -t $ECR_URI/sdxl1-streamlit:latest .
docker push $ECR_URI/sdxl1-streamlit:latest
cd -
cd ./automation/llama_train_deploy
docker build -t $ECR_URI/llama-train-deploy:latest .
docker push $ECR_URI/llama-train-deploy:latest
cd -
cd ./automation/diffusion_train_deploy
docker build -t $ECR_URI/diffusion-train-deploy:latest .
docker push $ECR_URI/diffusion-train-deploy:latest
cd -
cd ./train/ray/cpu
docker build -t $ECR_URI/ray-cpu:latest .
docker push $ECR_URI/ray-cpu:latest
cd -
cd ./train/ray/gpu
docker build -t $ECR_URI/ray-gpu:latest .
docker push $ECR_URI/ray-gpu:latest
cd -