Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Selenium 4 #123

Merged
merged 6 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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