diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000000..bb8385b3f354a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,9 @@ +// https://containers.dev/implementors/json_reference/ + +{ + "name": "selenium-devcontainer", + "build": { + "dockerfile": "../scripts/dev-image/Dockerfile" + }, + "runArgs": ["--name", "selenium_devcontainer"] +} diff --git a/README.md b/README.md index 6327ca2cfc12d..87c452a024e98 100644 --- a/README.md +++ b/README.md @@ -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