This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to use Dev Containers locally (#3744)
* Add ability to use Dev Container * wdio container setup * Add docker-compose-wdio for local selenium grid docker spin-up * Add documentation to use devcontainers in Readme * Add Docs on vscode devcontainers * Readme update * Readme updates to include docker prune commands * Update readme * Add docker scripts for WDIO tests --------- Co-authored-by: ns065186 <ns065186@cerner.net>
- Loading branch information
1 parent
fed9316
commit 657897b
Showing
6 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM docker.cernerrepos.net/ion/ion-node:5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "TerraCore", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "vscode", | ||
"shutdownAction": "stopCompose", | ||
"workspaceFolder": "/workspace", | ||
"postCreateCommand": "", | ||
"runServices": [ | ||
"vscode" | ||
], | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint", | ||
"james-yu.latex-workshop", | ||
"eamodio.gitlens", | ||
"shardulm94.trailing-spaces", | ||
"stkb.rewrap", | ||
"vscode-icons-team.vscode-icons", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} | ||
}, | ||
"forwardPorts": [8080] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: "3" | ||
|
||
services: | ||
selenium-hub: | ||
image: selenium/hub:3.141.59-zirconium | ||
container_name: selenium-hub | ||
ports: | ||
- "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 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- HUB_HOST=selenium-hub | ||
- HUB_PORT=4444 | ||
|
||
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 | ||
volumes: | ||
- /dev/shm:/dev/shm | ||
depends_on: | ||
- selenium-hub | ||
environment: | ||
- HUB_HOST=selenium-hub | ||
- HUB_PORT=4444 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "3" | ||
|
||
services: | ||
vscode: | ||
network_mode: host | ||
build: . | ||
volumes: | ||
- ../:/workspace | ||
# Docker socket to access Docker server | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# Git config | ||
- ~/.gitconfig:/root/.gitconfig | ||
entrypoint: /bin/sh -c "while sleep 1000; do :; done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters