Skip to content

Commit

Permalink
update build environment script to pull account ID from instance
Browse files Browse the repository at this point in the history
andrewkrug committed Jul 12, 2017
1 parent 93c0e27 commit bed180d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build-environment.sh
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@

cd /home/ec2-user/app

ACCOUNT_ID=`aws sts get-caller-identity | grep Account | cut -d '"' -f4`

sed -i s/656532927350/${ACCOUNT_ID}/g docker-compose.yml

aws ecr get-login --region us-west-2 | bash

/usr/local/bin/docker-compose pull

0 comments on commit bed180d

Please sign in to comment.