Advertisement
PandaAcademy

ECR - komendy

Oct 8th, 2023 (edited)
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # vagrant
  2. export AWS_ACCOUNT_ID=<numer-konta-aws>
  3. docker pull pandaacademy/backend
  4. docker pull pandaacademy/frontend
  5. aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com
  6. docker tag pandaacademy/backend:latest $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/backend:latest
  7. docker push $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/backend:latest
  8. docker tag pandaacademy/frontend:latest $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/frontend:latest
  9. docker push $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/frontend:latest
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement