Skip to content

Commit

Permalink
Fix download tests, unify docker compose and build selenoid depending…
Browse files Browse the repository at this point in the history
… on the arch.
  • Loading branch information
ggozad committed Nov 10, 2022
1 parent 37f8123 commit b74e8f5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 75 deletions.
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
1 change: 0 additions & 1 deletion tests/features/downloads.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@no_remote_webdriver
Feature: File downloading

@web
Expand Down

0 comments on commit b74e8f5

Please sign in to comment.