4.1.5.1 WSL support
Windows Subsystem for Linux allows the development of OpenCRVS in Windows without having to run VirtualBox or other virtual machines. This page describes some common problems and solutions for them.
Last updated
Windows Subsystem for Linux allows the development of OpenCRVS in Windows without having to run VirtualBox or other virtual machines. This page describes some common problems and solutions for them.
Last updated
For installation of WSL 2 in Windows, refer to Microsoft's documentation.
Make sure you're using Visual Studio Code to develop and install the WSL extension for it. Do not install Docker within the WSL Linux distribution. Docker For Desktop will automatically do that for you.
Do not install Docker within WSL. Install Docker for Desktop and it will do the integration for you.
Run Powershell, and make sure that you're running the correct WSL version, and Ubuntu is set as the default distribution in WSL.
Make sure that Docker Desktop is using WSL 2 based engine in it's settings
Typically this is because Windows is reserving a specific port but the WSL Linux world doesn't pick that up. For example, if gateway fails to run, you can find in Windows Powershell what process is running in the port
Running all the databases and Node.js services OpenCRVS uses can demand quite a bit of memory. For WSL, we're suggesting at least 16GB of memory but the amount can vary between computers and WSL installations. It's also recommended you allow WSL use more memory by editing .wslconfig
You can do this by pressing Win
+R
and enter
Insert this content into the file and save. Don't go above the amount of memory visible in task manager (CTRL
+ Shift
+ ESC
)