Skip to content

Commit 9f31245

Browse files
authored
Remove -host. Bump versions. Fix previous merge issues. (#16)
* Reference implementation for Selenium on ECS. * Selenium containers version bump. * Having -host as an argument now causes problems. * Fix merge issues…
1 parent 2096c2d commit 9f31245

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docker/common/ecs_entry_point.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set -o xtrace
2020
result="$(python /opt/bin/ecs-get-port-mapping.py)"
2121
eval "$result"
2222

23-
export SE_OPTS="-host $EC2_HOST -remoteHost http://$EC2_HOST:$PORT_TCP_5555 -id $NODE_ID"
23+
export SE_OPTS="-remoteHost http://$EC2_HOST:$PORT_TCP_5555 -id $NODE_ID"
2424

2525
# execute default extry_point.sh file
2626
/opt/bin/entry_point.sh

docker/ecs-node-chrome/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VERSION=3.8.1
1+
ARG VERSION=3.14.0
22
FROM selenium/node-chrome:${VERSION}
33
LABEL authors=RetailMeNot
44

docker/ecs-node-chrome/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
include ../../.env
22
export $(shell sed 's/=.*//' ../../.env)
3+
VERSION=3.14.0
34

4-
VERSION=3.8.1
55
REGISTRY=$(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com
66

77
clean:
88
rm -rf common
99

1010
build:
1111
mkdir -p common/
12-
rsync -av --exclude='selenium' --exclude='Makefile' ../common/* common/
13-
docker build -t ecs-node-chrome --build-arg VERSION=$(VERSION) .
12+
rsync -av ../common/* common/
13+
docker build -t $(IMAGE_NAME) --build-arg VERSION=$(VERSION) .
1414
rm -rf common/
1515

1616
tag: build
17-
docker tag ecs-node-chrome $(REGISTRY)/ecs-node-chrome:$(VERSION)
18-
docker tag ecs-node-chrome $(REGISTRY)/ecs-node-chrome:latest
17+
docker tag $(IMAGE_NAME) $(REGISTRY)/$(IMAGE_NAME):$(VERSION)
18+
docker tag $(IMAGE_NAME) $(REGISTRY)/$(IMAGE_NAME):latest
1919

2020
push: tag
21-
docker push $(REGISTRY)/ecs-node-chrome:$(VERSION)
22-
docker push $(REGISTRY)/ecs-node-chrome:latest
21+
docker push $(REGISTRY)/$(IMAGE_NAME):$(VERSION)
22+
docker push $(REGISTRY)/$(IMAGE_NAME):latest

docker/ecs-node-firefox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VERSION=3.8.1
1+
ARG VERSION=3.14.0
22
FROM selenium/node-firefox:${VERSION}
33
LABEL authors=RetailMeNot
44

docker/ecs-node-firefox/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
include ../../.env
22
export $(shell sed 's/=.*//' ../../.env)
3+
VERSION=3.14.0
34

4-
VERSION=3.8.1
55
REGISTRY=$(AWS_ACCOUNT_ID).dkr.ecr.$(AWS_REGION).amazonaws.com
66

77
clean:
88
rm -rf common
99

1010
build:
1111
mkdir -p common/
12-
rsync -av --exclude='selenium' --exclude='Makefile' ../common/* common/
13-
docker build -t ecs-node-firefox --build-arg VERSION=$(VERSION) .
12+
rsync -av ../common/* common/
13+
docker build -t $(IMAGE_NAME) --build-arg VERSION=$(VERSION) .
1414
rm -rf common/
1515

1616
tag: build
17-
docker tag ecs-node-firefox $(REGISTRY)/ecs-node-firefox:$(VERSION)
18-
docker tag ecs-node-firefox $(REGISTRY)/ecs-node-firefox:latest
17+
docker tag $(IMAGE_NAME) $(REGISTRY)/$(IMAGE_NAME):$(VERSION)
18+
docker tag $(IMAGE_NAME) $(REGISTRY)/$(IMAGE_NAME):latest
1919

2020
push: tag
21-
docker push $(REGISTRY)/ecs-node-firefox:$(VERSION)
22-
docker push $(REGISTRY)/ecs-node-firefox:latest
21+
docker push $(REGISTRY)/$(IMAGE_NAME):$(VERSION)
22+
docker push $(REGISTRY)/$(IMAGE_NAME):latest

0 commit comments

Comments
 (0)