Skip to content

Commit

Permalink
Merge pull request #123 from ggozad/CHORE-selenium-4
Browse files Browse the repository at this point in the history
Upgrade to Selenium 4
  • Loading branch information
ggozad authored Nov 10, 2022
2 parents bd63f39 + f5ae92d commit 5efd1f4
Show file tree
Hide file tree
Showing 12 changed files with 345 additions and 102 deletions.
12 changes: 12 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Changelog
=========

3.1.0 - 2022-11-10
------------------

- Upgrade to selenium 4.
[ggozad]

- Simplify docker compose config.
[ggozad]

- Fix file download tests in selenoid.
[ggozad]

3.0.7 - 2022-11-09
------------------

Expand Down
23 changes: 0 additions & 23 deletions config/browsers.json

This file was deleted.

9 changes: 9 additions & 0 deletions config/selenoid/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM aerokube/selenoid:latest-release
ARG BUILDPLATFORM
ARG DOWNLOAD_VOLUME

RUN apk add gettext

COPY browsers.json.template /etc/selenoid/browsers.json.template
RUN export CHROME_IMAGE=$([ "${BUILDPLATFORM}" = "linux/arm64" ] && echo "sskorol/selenoid_chromium_vnc:100.0" || echo "selenoid/chrome") && \
envsubst < /etc/selenoid/browsers.json.template > /etc/selenoid/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@
"image": "selenoid/firefox",
"port": "4444",
"path": "/wd/hub",
"tmpfs": { "/tmp": "size=512m" }
"tmpfs": { "/tmp": "size=512m" },
"volumes": [
"${DOWNLOAD_VOLUME}:/home/selenium/Downloads"
]
}
}
},
"chrome": {
"default": "latest",
"versions": {
"latest": {
"image": "sskorol/selenoid_chromium_vnc:100.0",
"image": "$CHROME_IMAGE",
"port": "4444",
"tmpfs": { "/tmp": "size=512m" }
"tmpfs": { "/tmp": "size=512m" },
"volumes": [
"${DOWNLOAD_VOLUME}:/home/selenium/Downloads"
]
}
}
}
Expand Down
45 changes: 0 additions & 45 deletions docker-compose.arm64.yml

This file was deleted.

9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,20 @@ services:
entrypoint: echo "Only here to make sure the image is available to selenoid"

selenoid:
container_name: selenoid
networks:
- behaving
image: aerokube/selenoid:latest-release
build:
args:
- DOWNLOAD_VOLUME=$PWD/var/downloads
context: config/selenoid
volumes:
- "./config:/etc/selenoid"
- "/var/run/docker.sock:/var/run/docker.sock"
- "./var/video:/opt/selenoid/video"
- "./var/log:/opt/selenoid/logs"

environment:
- OVERRIDE_VIDEO_OUTPUT_DIR=./var/video

command:
[
"-conf",
Expand Down
Loading

0 comments on commit 5efd1f4

Please sign in to comment.