This repo and its infrastructure tailored for VSCode/GitHub Codespaces Dev Container centric development experience in Docker to achieve better isolation of the environment as well as its cross-platform support out of the box. For instance, Visual Studio for Mac support stops at .NET 8, thus, we needed something else rather than native Visual Studios for Mac and Windows. We decided to give a shot to VSCode since we use it intensively in other stacks already.
- Install Docker Desktop (Windows, macOS) or Docker Engine (Linux)
Note: It seems like there is Docker Engine for Linux (https://docs.docker.com/desktop/setup/install/linux/ubuntu/).
- Install Visual Studio Code.
- Install Visual Studio Code Dev Containers Extension.
Open this repo's folder in VSCode/Codespaces, it might immediately propose you to re-open it in a Dev Container or you can click on Remote Explorer, find plus button and choose the Open Current Folder in Container option and wait when it is ready.
When your Dev Container is ready, the VS Code window will be re-opened. Open a new terminal in this Dev Container which will be executing the commands under this prepared Linux container where we already have all pre-installed and pre-configured development related dependencies.
To run Karate E2E tests execute the following script in Terminal:
java -jar /karate.jar .
To run Karate E2E tests using Docker Compose execute the following script in Terminal:
docker compose up --build --exit-code-from to-dos-api-dotnet-temp-karate-tests