-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd2p.sh
executable file
·31 lines (24 loc) · 1.19 KB
/
d2p.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
#!/bin/sh
`aws ecr get-login`
docker rmi `docker images`
cd gatekeeper
docker build -t gatekeeper .
docker tag gatekeeper:latest 671223302517.dkr.ecr.us-east-1.amazonaws.com/gatekeeper:latest
docker push 671223302517.dkr.ecr.us-east-1.amazonaws.com/gatekeeper:latest
cd ../inventorymanager
docker build -t inventorymanager .
docker tag inventorymanager:latest 671223302517.dkr.ecr.us-east-1.amazonaws.com/inventorymanager:latest
docker push 671223302517.dkr.ecr.us-east-1.amazonaws.com/inventorymanager:latest
cd ../policycontroller
docker build -t policycontroller .
docker tag policycontroller:latest 671223302517.dkr.ecr.us-east-1.amazonaws.com/policycontroller:latest
docker push 671223302517.dkr.ecr.us-east-1.amazonaws.com/policycontroller:latest
cd ../safeprotector
docker build -t safeprotector .
docker tag safeprotector:latest 671223302517.dkr.ecr.us-east-1.amazonaws.com/safeprotector:latest
docker push 671223302517.dkr.ecr.us-east-1.amazonaws.com/safeprotector:latest
cd ../shoppingcart
docker build -t shoppingcart .
docker tag shoppingcart:latest 671223302517.dkr.ecr.us-east-1.amazonaws.com/shoppingcart:latest
docker push 671223302517.dkr.ecr.us-east-1.amazonaws.com/shoppingcart:latest
cd ..