Scenario builder: Executable GloWPa command/service #4
Replies: 4 comments 6 replies
-
|
I've created a more lightweight docker image for only executing the model. You can pull it from docker-registry.wur.nl/glowpa/glowpa-r/glowpa-main:0.2.1 Currently it launches a R terminal when you create a container. In the R terminal you could try:
We can modify the startup command to invoke R command executing the model with a specific configuration file. Or we could use plumber again to launch model executions using API calls. Similar to K2P. What would work best in the current architecture? |
Beta Was this translation helpful? Give feedback.
-
|
I heard you cannot pull the image due to permission issues. Is that right? It seems public though. I can access the container from an incognito browser. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @nauta008, I can't, I am directed to a login page. Is it possible that you are signed-in by default with SSO? |
Beta Was this translation helpful? Give feedback.
-
|
@nauta008 I think we need to make sure that users can run the containerised model with data and configuration files from their local filesystem. At the same time, the model should write outputs in the local file system or "return" them through REST. For example, I made this docker-compose.yml: This maps some custom folders to the directories that could be read by GloWPa. So we configure GloWPa to only use those folders. On another note, how would someone invoke the model from outside the container, without opening a terminal? I think maybe the API is the only way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We discussed the possibility of turning the R package of GloWPa into a service, ideally without having users to install all necessary libraries themselves.
The above could be done by creating a Docker image, but it might also be challenging for people to install and configure Docker. Also, they would need to mount data into a volume, which might be difficult.
Another alternative could be that users actually install the model via the standard procedure. Then, as part of the Scenario builder, we can create a Python wrapper of the R model (eg. with rpy2) that orchestrates the way that the model is invoked. This of course is for more advanced users.
@nauta008 any thoughts/ideas are welcome.
Beta Was this translation helpful? Give feedback.
All reactions