Running dev environment on Windows WSL

@oyierphil - oh no! I’m sorry you’re still having problems : (

I have a spare windows machine and I was able to get the CHT running locally by using the CHT Docker Helper Script:

  1. Ensuring I have WSL 2 installed and running

  2. Install Docker Desktop

  3. Make sure Docker Destkop is running and in compose v2.0. The script failed on non-obvious ways when Docker Desktop was not running after a reboot - hence me checking “Start when you login”. As well, it would not work unless compose v2 was checked:

  4. Launch a WSL command line with Start Menu → wsl

  5. cd into your clone of the CHT Core Repo cht-core/scripts/docker-helper

  6. create your env file per the steps in “First Run”

  7. Run the helper script and enjoy a local dev environment!

    ]

1 Like