egeria-docs
egeria-docs copied to clipboard
Dojo day 2 - Windows WSL2 - docs, performance, recommendations
Windows users need to use WSL2 for our Dojos, and explicitly day 2 where we are coding using IntelliJ
We currently reference WSL2, but it was clear in the dojo that more guidance on using Windows+WSL2 would be desirable. This should also extend more generally to our snippets relating to build, edit etc, and for the dojo, use of kafka and zookeeper
I tried with WSL2 after the meeting
- Windows 11
- Ubuntu 20.04
- Maven, java (adoptium - 17 in my case) already installed in Ubuntu ie everything to do a command line build
- WSL2
- egeria, egeria-dev-projects, egeria-samples already downloaded on Ubuntu
- Clean install of intelliJ (ultimate)
- Clicked ‘new project’ on wizard that popped up
- Navigated into the source tree under //$wsl
- Intelli/J seemed to auto-detect the right jdk etc
- Maven was picked up automatically (there is a setting for choosing jdk. and the wsl jdk is applied automatically by one of the tasks that runs after opening)
- Clicked option to skip gradle configuration (just choose one or another)
- Left IDE to sort itself out resolving dependencies
- All projects show green
- Terminal in intellij correctly opens up directly with the Ubuntu runtime
- The maven window also works fine, so I can, for example, build the top level project (with -Pquick -DskipFVT). (you will see some yellow warnings - these are just output by delombok cc: @Mandy Chessell )
- The platform launches fine. Everything in the Command line seen in the run window is Ubuntu-centric . No references to windows paths
We’ll need to have a slightly more controlled configuration with screenshots, and run through the entire session, capture version numbers etc, but at least with current sw there does seem a fairly smooth path - so far. I’ve also not progressed to running kafka etc.
It would be interesting to compare with other’s experiences. It’s possibly related to using a fairly current version of IntelliJ as this is a relatively new area of support — but the above is promising, and looks like a nice development environment.
https://www.jetbrains.com/help/idea/how-to-use-wsl-development-environment-in-product.html#create_project_for_wsl
If not using IntelliJ, remember to do all edits natively in WSL2, or use unix line endings if using a windows based editor.