Skip to content

Commit

Permalink
Add devcontainer.json to ease local dev environment setup (#13638)
Browse files Browse the repository at this point in the history
* 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 <7973740+Trigtrig@users.noreply.github.com>
  • Loading branch information
Trigtrig and Trigtrig authored Mar 4, 2024
1 parent 5bc8952 commit c0711e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// https://containers.dev/implementors/json_reference/

{
"name": "selenium-devcontainer",
"build": {
"dockerfile": "../scripts/dev-image/Dockerfile"
},
"runArgs": ["--name", "selenium_devcontainer"]
}
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,19 @@ Rather than creating your own local dev environment, GitPod provides a ready to
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/SeleniumHQ/selenium)
#### Using Dev Container
As an alternative you can build a [Dev Container](https://containers.dev/) - basically a docker container -
suitable for building and testing Selenium using the devcontainer.json in the
[.devcontainer](.devcontainer/devcontainer.json) directory. Supporting IDEs like VS Code or IntelliJ IDEA
should point you to how such a container can be created.
#### Using Docker Image
You can also build a Docker image suitable
for building and testing Selenium using the Dockerfile in the
[dev image](scripts/dev-image/Dockerfile) directory.
## Building
Selenium is built using a common build tool called [Bazel](https://bazel.build/), to
Expand Down

0 comments on commit c0711e2

Please sign in to comment.