Skip to content

Commit 5efd1f4

Browse files
authored
Merge pull request #123 from ggozad/CHORE-selenium-4
Upgrade to Selenium 4
2 parents bd63f39 + f5ae92d commit 5efd1f4

File tree

12 files changed

+345
-102
lines changed

12 files changed

+345
-102
lines changed

CHANGES.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Changelog
22
=========
33

4+
3.1.0 - 2022-11-10
5+
------------------
6+
7+
- Upgrade to selenium 4.
8+
[ggozad]
9+
10+
- Simplify docker compose config.
11+
[ggozad]
12+
13+
- Fix file download tests in selenoid.
14+
[ggozad]
15+
416
3.0.7 - 2022-11-09
517
------------------
618

config/browsers.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

config/selenoid/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM aerokube/selenoid:latest-release
2+
ARG BUILDPLATFORM
3+
ARG DOWNLOAD_VOLUME
4+
5+
RUN apk add gettext
6+
7+
COPY browsers.json.template /etc/selenoid/browsers.json.template
8+
RUN export CHROME_IMAGE=$([ "${BUILDPLATFORM}" = "linux/arm64" ] && echo "sskorol/selenoid_chromium_vnc:100.0" || echo "selenoid/chrome") && \
9+
envsubst < /etc/selenoid/browsers.json.template > /etc/selenoid/browsers.json
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@
66
"image": "selenoid/firefox",
77
"port": "4444",
88
"path": "/wd/hub",
9-
"tmpfs": { "/tmp": "size=512m" }
9+
"tmpfs": { "/tmp": "size=512m" },
10+
"volumes": [
11+
"${DOWNLOAD_VOLUME}:/home/selenium/Downloads"
12+
]
1013
}
1114
}
1215
},
1316
"chrome": {
1417
"default": "latest",
1518
"versions": {
1619
"latest": {
17-
"image": "sskorol/selenoid_chromium_vnc:100.0",
20+
"image": "$CHROME_IMAGE",
1821
"port": "4444",
19-
"tmpfs": { "/tmp": "size=512m" }
22+
"tmpfs": { "/tmp": "size=512m" },
23+
"volumes": [
24+
"${DOWNLOAD_VOLUME}:/home/selenium/Downloads"
25+
]
2026
}
2127
}
2228
}

docker-compose.arm64.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

docker-compose.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,20 @@ services:
4848
entrypoint: echo "Only here to make sure the image is available to selenoid"
4949

5050
selenoid:
51+
container_name: selenoid
5152
networks:
5253
- behaving
53-
image: aerokube/selenoid:latest-release
54+
build:
55+
args:
56+
- DOWNLOAD_VOLUME=$PWD/var/downloads
57+
context: config/selenoid
5458
volumes:
55-
- "./config:/etc/selenoid"
5659
- "/var/run/docker.sock:/var/run/docker.sock"
5760
- "./var/video:/opt/selenoid/video"
5861
- "./var/log:/opt/selenoid/logs"
59-
6062
environment:
6163
- OVERRIDE_VIDEO_OUTPUT_DIR=./var/video
64+
6265
command:
6366
[
6467
"-conf",

0 commit comments

Comments
 (0)