File tree 5 files changed +18
-9
lines changed 5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change
1
+ AWS_ACCOUNT_ID = 111122223333
2
+ AWS_AWS_REGION = eu-central-1
Original file line number Diff line number Diff line change
1
+ .env
1
2
* .jar
2
3
/docker /common /selenium
3
4
docker /ecs-node-chrome /common /
Original file line number Diff line number Diff line change @@ -44,16 +44,20 @@ aws --region <region> ecr create-repository --repository-name ecs-node-chrome
44
44
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.
45
45
46
46
``` bash
47
+ # setup environment
48
+ echo " AWS_ACCOUNT_ID=111122223333" > .env
49
+ echo " AWS_REGION=<region>" >> .env
50
+
47
51
# login to ecr
48
- $( aws ecr get-login --region < region > -- no-include-email)
52
+ $( aws ecr get-login --no-include-email)
49
53
50
54
# build and push firefox
51
55
cd docker/ecs-node-firefox
52
- make push ACCOUNT_ID=111122223333 REGION= < region >
56
+ make push
53
57
54
58
# build and push chrome
55
59
cd docker/ecs-node-chrome
56
- make push ACCOUNT_ID=111122223333 REGION= < region >
60
+ make push
57
61
```
58
62
59
63
## Setup
Original file line number Diff line number Diff line change
1
+ include ../../.env
2
+ export $(shell sed 's/=.*//' ../../.env)
3
+
1
4
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
5
6
6
7
clean :
7
8
rm -rf common
Original file line number Diff line number Diff line change
1
+ include ../../.env
2
+ export $(shell sed 's/=.*//' ../../.env)
3
+
1
4
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
5
6
6
7
clean :
7
8
rm -rf common
You can’t perform that action at this time.
0 commit comments