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

Commit 03a4bd4

Browse files
authored
Update docker-compose-wdio.yml for dev containers (#3871)
1 parent 9a5b918 commit 03a4bd4

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

.devcontainer/docker-compose-wdio.yml

+13-20
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,36 @@
11
version: "3"
2-
32
services:
43
selenium-hub:
5-
image: selenium/hub:3.141.59-zirconium
4+
image: seleniarm/hub:4.10.0-20230615
65
container_name: selenium-hub
76
ports:
7+
- "4442:4442"
8+
- "4443:4443"
89
- "4444:4444"
910
healthcheck:
1011
test: ["CMD", "/opt/bin/check-grid.sh"]
1112
interval: 15s
1213
timeout: 30s
1314
retries: 5
14-
1515
chrome:
16-
image: selenium/node-chrome:3.141.59-zirconium
17-
# Volume mounting is necessary to ensure the browser does not crash inside the docker container.
18-
# For more details see:
19-
# https://github.com/SeleniumHQ/docker-selenium#running-the-images
20-
# https://bugs.chromium.org/p/chromium/issues/detail?id=519952
21-
# https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10
16+
image: seleniarm/node-chromium:4.10.0-20230615
2217
volumes:
2318
- /dev/shm:/dev/shm
19+
shm_size: 2gb
2420
depends_on:
2521
- selenium-hub
2622
environment:
27-
- HUB_HOST=selenium-hub
28-
- HUB_PORT=4444
29-
23+
- SE_EVENT_BUS_HOST=selenium-hub
24+
- SE_EVENT_BUS_PUBLISH_PORT=4442
25+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
3026
firefox:
31-
image: selenium/node-firefox:3.141.59-zirconium
32-
# Volume mounting is necessary to ensure the browser does not crash inside the docker container.
33-
# For more details see:
34-
# https://github.com/SeleniumHQ/docker-selenium#running-the-images
35-
# https://bugs.chromium.org/p/chromium/issues/detail?id=519952
36-
# https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10
27+
image: seleniarm/node-firefox:4.10.0-20230615
3728
volumes:
3829
- /dev/shm:/dev/shm
30+
shm_size: 2gb
3931
depends_on:
4032
- selenium-hub
4133
environment:
42-
- HUB_HOST=selenium-hub
43-
- HUB_PORT=4444
34+
- SE_EVENT_BUS_HOST=selenium-hub
35+
- SE_EVENT_BUS_PUBLISH_PORT=4442
36+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ npm run test
208208
"wdio-lowlight": "terra wdio --disableSeleniumService=true --themes clinical-lowlight-theme"
209209
}
210210
```
211+
- 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:
212+
```sh
213+
docker compose -f <changed compose file name>.yml up
214+
```
211215
7. To terminate a dev container:
212216
- Use command line or Rancher/Docker Desktop OR
213217
- Using Visual Studio Code

0 commit comments

Comments
 (0)