Problem with using Docker for setting-up MONAI Label with OHIF #1423
-
Hi, This is the first time for me writing to the community so please inform me, if I can improve in some way.
Output: 2023-05-08 09:58:45,427 - USING:: version = False I can access Orthanc (http://127.0.0.1:8042/) and the MONAI Label server (http://127.0.0.1:8000/), but when I try to open the OHIF viewer (http://127.0.0.1:8000/ohif/) it says, that {"detail":"Resource NOT Found"} and in the terminal where I executed the start server command the following shows up: Additionally, I tried using MONAI Label with Anaconda and installing it with pip. This works out well and everything is working (also OHIF is reachable). So I guess the problem has to do with the Docker setup? After figuring out the basics my aim is to run the MONAI Label server in a virtual machine on the Google Cloud Platform (GCP), since I lack the processing power (no GPU). So I also checked [https://github.com//discussions/1102] to set up a docker compose file, but since I am rather new to Docker and don't have much experience in setting-up webservices, I am not quite sure on how to configure Nginx to redirect and show me the OHIF viewer. So also this option is at the moment not working for me. My question now is, if somebody knows what I am doing wrong here and would be so kind to help me out. Every hint is appreciated. Thank you very much in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
HI @philosGit , thanks for posting. I guess since you are running docker to use MONAI Label, the http:/0.0.0.0/#### or 127.0.0.1/#### is not the real host IP. If you can confirm you can open the APIs via the host address. You can check whether the file /opt/conda/lib/python3.8/site-packages/monailabel/endpoints/static/ohif/index.html exists. If no, I think the OHIF is not pre-build. You can build the OHIF you own following this papge, cd to the OHIF plugin folder and Can you double confirm, if the latest Docker doesn't pre-build the OHIF, we will investigate. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I can confirm some recent node (version) deprecation on the docker build causing the issue.. it shall be fixed soon.. |
Beta Was this translation helpful? Give feedback.
-
I am having a similar issue. I'd actually like to build either all of MONAI or just MONAI label with the OHIF integration in Docker using docker-compose.yml integrated with an Orthanc instance. What I currently have in docker-compose.yml for the MONAI label part is below. That seems to at least build and mostly work, except the ohif route gives a 404 error. It might be nice to include a Dockerfile so I could customize it a little and I would prefer to just install all of MONAI with Docker and then also setup MONAI Label within that, if that is possible. I know how to add an Orthanc Instance already. I am using host port 8001 because it is taken by another service.
|
Beta Was this translation helpful? Give feedback.
-
#1424 this will help to solve the problem. if you have monai docker and you are not looking build monaibel from source then
|
Beta Was this translation helpful? Give feedback.
-
Meanwhile @philosGit please pull the latest version for monailabel docker again (rm previous image).. this should solve your problem.. |
Beta Was this translation helpful? Give feedback.
Meanwhile @philosGit please pull the latest version for monailabel docker again (rm previous image).. this should solve your problem..