-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all-ecr.sh
46 lines (39 loc) · 1.81 KB
/
build-all-ecr.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
# Login mphjphk8sacr
ACR_NAME=446516249306.dkr.ecr.us-east-1.amazonaws.com
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $ACR_NAME
aws ecr create-repository --repository-name base-notebook --image-scanning-configuration scanOnPush=true --region us-east-1
aws ecr create-repository --repository-name scipy-notebook --image-scanning-configuration scanOnPush=true --region us-east-1
aws ecr create-repository --repository-name datascience-notebook --image-scanning-configuration scanOnPush=true --region us-east-1
aws ecr create-repository --repository-name theia-vscode --image-scanning-configuration scanOnPush=true --region us-east-1
aws ecr create-repository --repository-name pgadmin4 --image-scanning-configuration scanOnPush=true --region us-east-1
aws ecr create-repository --repository-name rstudio --image-scanning-configuration scanOnPush=true --region us-east-1
# build the base-notebook
cd base-notebook
docker build -t $ACR_NAME/base-notebook:latest .
docker push $ACR_NAME/base-notebook:latest
cd ..
# drived from base-notebook
cd scipy-notebook
docker build -t $ACR_NAME/scipy-notebook:latest --build-arg BASE_CONTAINER=$ACR_NAME/base-notebook:latest .
docker push $ACR_NAME/scipy-notebook:latest
cd ..
# drived from scipy-notebook
cd datascience-notebook
docker build -t $ACR_NAME/datascience-notebook:latest --build-arg BASE_CONTAINER=$ACR_NAME/scipy-notebook:latest .
docker push $ACR_NAME/datascience-notebook:latest
cd ..
# vscode image
cd theia-vscode
docker build -t $ACR_NAME/theia-vscode:latest .
docker push $ACR_NAME/theia-vscode:latest
cd ..
# pgadmin image
cd pgadmin4
docker build -t $ACR_NAME/pgadmin4:latest .
docker push $ACR_NAME/pgadmin4:latest
cd ..
# rstudio image
cd rstudio
docker build -t $ACR_NAME/rstudio:latest .
docker push $ACR_NAME/rstudio:latest
cd ..