Set up the development environment on Windows #16
Replies: 6 comments 1 reply
-
there should be more than two docker containers running - is the key cloak one running? |
Beta Was this translation helpful? Give feedback.
-
And, I think I have tracked down the blockage, I thought it might be down to resource issues so I set the following (case-sensitive) Windows environment variables, after which I managed to get a Polaris login screen ok by typing 'w' in the intellij console... QUARKUS.OIDC.DEVUI.WEB-CLIENT-TIMEOUT=10S and of course this one for the present JAVA_HOME=C:\Program Files\Java\jdk-17 |
Beta Was this translation helpful? Give feedback.
-
I'm curious as to why the timeouts need to be so long, but at least you've got it working. The next stage is to start up the API service at the same time, then you can log in and explore. |
Beta Was this translation helpful? Give feedback.
-
If anyone has any ideas about the following I’d love to hear from them, particularly if there are any notes somewhere for setting up a dev environment, minimum hardware specs, environment variables, running orders etc.. On a Windows machine in two separate command line windows I ran gradlew quarkusDev from the pst-gui and pst-api-service folders in that order. This gave me two pairs of containers in Docker… As far as I can tell pst-gui fires up ok and settles down to wait for input, but pst-api-service generates quite a large log, mainly db and sql warnings after which it too settles down and waits. I can share these logs with anyone who has the time. Once everything had settled down I typed ‘w’ in the pst-gui command line window and that fired up the browser page to let me login to Polaris which was fine although it then generated lots of Invalid realm messages in the pst-gui log. What do you think? |
Beta Was this translation helpful? Give feedback.
-
The invalid realm messages are curious, but otherwise I think that you might have everything running given that you can log in - we are still very much in a development phase, so that there will be errors and non-functioning parts even on the HEAD of the master branch. |
Beta Was this translation helpful? Give feedback.
-
I think many of the problems are down to underpowered hardware. Both my MacBook Air (Monterey) and my Windows 11 machine have only 8G of memory, though both have lots of free disk space. If I reboot and run up Docker straight away without doing anything else (particularly not starting IntelliJ) then I can get pst-gui running fine, though getting there does seem to be platform specific. On the Mac, from the project folder, typing quarkus dev works while ./gradlew quarkusDev definitely doesn't, but it's the other way round on Windows. Maybe that's another resource issue. |
Beta Was this translation helpful? Give feedback.
-
Mick has been trying to get this project running in developer mode on Windows. He has the following versions installed;
Launching Quarkus from the pst-gui directory (inside intellij) generates some errors. Two docker containers are running, pressing
d
brings up the gui dev-ui, andw
successfully launches the Polaris 'click to login' screen on a browser. However, clicking this link throws an internal server error with 'OIDC Server is not available'.Beta Was this translation helpful? Give feedback.
All reactions