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 7
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 Docker Dev containers locally (#303)
Co-authored-by: ns065186 <[email protected]>
- Loading branch information
1 parent
7f916ed
commit f245e26
Showing
6 changed files
with
138 additions
and
0 deletions.
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": "TerraGraphs", | ||
"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,14 @@ | ||
version: "3" | ||
|
||
services: | ||
vscode: | ||
network_mode: host | ||
build: . | ||
volumes: | ||
- ../:/workspace | ||
# Docker socket to access Docker server | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
environment: | ||
- WATCHPACK_POLLING=true | ||
- WDS_SOCKET_HOST=127.0.0.1 | ||
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