Skip to content

Commit c0711e2

Browse files
authored
Add devcontainer.json to ease local dev environment setup (#13638)
* Added devcontainer.json Added devcontainer.json * Moved file to devcontainer folder Moved devcontainer.json to devcontainer folder * Documented Dev Container setup in README Section 'Using Docker Image' rephrased to include Dev Container setup documentation * Added back the original section 'Using Docker Image' Dev Container section separated from Docker Image section --------- Co-authored-by: Trig <[email protected]>
1 parent 5bc8952 commit c0711e2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.devcontainer/devcontainer.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// https://containers.dev/implementors/json_reference/
2+
3+
{
4+
"name": "selenium-devcontainer",
5+
"build": {
6+
"dockerfile": "../scripts/dev-image/Dockerfile"
7+
},
8+
"runArgs": ["--name", "selenium_devcontainer"]
9+
}

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,19 @@ Rather than creating your own local dev environment, GitPod provides a ready to
101101
102102
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/SeleniumHQ/selenium)
103103
104+
#### Using Dev Container
105+
106+
As an alternative you can build a [Dev Container](https://containers.dev/) - basically a docker container -
107+
suitable for building and testing Selenium using the devcontainer.json in the
108+
[.devcontainer](.devcontainer/devcontainer.json) directory. Supporting IDEs like VS Code or IntelliJ IDEA
109+
should point you to how such a container can be created.
110+
104111
#### Using Docker Image
105112
106113
You can also build a Docker image suitable
107114
for building and testing Selenium using the Dockerfile in the
108115
[dev image](scripts/dev-image/Dockerfile) directory.
109116
110-
111117
## Building
112118
113119
Selenium is built using a common build tool called [Bazel](https://bazel.build/), to

0 commit comments

Comments
 (0)