Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Update docker-compose-wdio.yml for dev containers (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
artpark authored Aug 8, 2023
1 parent 5cc6566 commit e4d3563
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .devcontainer/docker-compose-wdio.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,36 @@
version: "3"

services:
selenium-hub:
image: selenium/hub:3.141.59-zirconium
image: seleniarm/hub:4.10.0-20230615
container_name: selenium-hub
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
healthcheck:
test: ["CMD", "/opt/bin/check-grid.sh"]
interval: 15s
timeout: 30s
retries: 5

chrome:
image: selenium/node-chrome:3.141.59-zirconium
# Volume mounting is necessary to ensure the browser does not crash inside the docker container.
# For more details see:
# https://github.com/SeleniumHQ/docker-selenium#running-the-images
# https://bugs.chromium.org/p/chromium/issues/detail?id=519952
# https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10
image: seleniarm/node-chromium:4.10.0-20230615
volumes:
- /dev/shm:/dev/shm
shm_size: 2gb
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444

- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
firefox:
image: selenium/node-firefox:3.141.59-zirconium
# Volume mounting is necessary to ensure the browser does not crash inside the docker container.
# For more details see:
# https://github.com/SeleniumHQ/docker-selenium#running-the-images
# https://bugs.chromium.org/p/chromium/issues/detail?id=519952
# https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10
image: seleniarm/node-firefox:4.10.0-20230615
volumes:
- /dev/shm:/dev/shm
shm_size: 2gb
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ npm run test
"wdio-fusion": "terra wdio --disableSeleniumService=true --themes orion-fusion-theme",
}
```
- If any of the compose files were to be changed, you must refresh the docker container by deleting the corresponding existing docker images, then running the following command:
```sh
docker compose -f <changed compose file name>.yml up
```
7. To terminate a dev container:
- Use command line or Rancher/Docker Desktop OR
- Using Visual Studio Code
Expand Down

0 comments on commit e4d3563

Please sign in to comment.