Skip to content

Commit 2096c2d

Browse files
committed
Merge branch 'master' of github.com:RetailMeNotSandbox/ecs-selenium
2 parents 9c28295 + 9fe1b99 commit 2096c2d

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AWS_ACCOUNT_ID=111122223333
2+
AWS_AWS_REGION=eu-central-1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env
12
*.jar
23
/docker/common/selenium
34
docker/ecs-node-chrome/common/

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,20 @@ aws --region <region> ecr create-repository --repository-name ecs-node-chrome
4444
You now need to build and push the node images to your docker registry. ECR is assumed by default. You can rebuild your images periodically to get newer browsers in your cluster.
4545

4646
```bash
47+
# setup environment
48+
echo "AWS_ACCOUNT_ID=111122223333" > .env
49+
echo "AWS_REGION=<region>" >> .env
50+
4751
# login to ecr
48-
$(aws ecr get-login --region <region> --no-include-email)
52+
$(aws ecr get-login --no-include-email)
4953

5054
# build and push firefox
5155
cd docker/ecs-node-firefox
52-
make push ACCOUNT_ID=111122223333 REGION=<region>
56+
make push
5357

5458
# build and push chrome
5559
cd docker/ecs-node-chrome
56-
make push ACCOUNT_ID=111122223333 REGION=<region>
60+
make push
5761
```
5862

5963
## Setup

docker/ecs-node-chrome/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
include ../../.env
2+
export $(shell sed 's/=.*//' ../../.env)
3+
14
VERSION=3.8.1
2-
REGION=us-west-2
3-
ACCOUNT_ID=111122223333
4-
REGISTRY=$(ACCOUNT_ID).dkr.ecr.$(REGION).amazonaws.com
5+
REGISTRY=$(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com
56

67
clean:
78
rm -rf common

docker/ecs-node-firefox/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
include ../../.env
2+
export $(shell sed 's/=.*//' ../../.env)
3+
14
VERSION=3.8.1
2-
REGION=us-west-2
3-
ACCOUNT_ID=111122223333
4-
REGISTRY=$(ACCOUNT_ID).dkr.ecr.$(REGION).amazonaws.com
5+
REGISTRY=$(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com
56

67
clean:
78
rm -rf common

0 commit comments

Comments
 (0)