-
Hi all, Please forgive me if this has been asked and answered before but I couldn't find an answer I have a multi container docker configuration of which trame + paraview is the front end. I use docker compose to launch all the containers. Each of the other docker containers are communicating using http post and get. I used cookie cutter example to help build the trame docker app. It all works and I can login with one user using MSAL and store everything in azure specific to that one user. But I don't know how to handle multiple users in trame using MSAL. Each user should only see their data and and interactions with a 3D mesh / point cloud should not interfere with another user "session" So at a high level what is the best way to do this. I see mention of a multi user example using this example but I don't see what it is doing that is different to a normal trame app. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 17 replies
-
In the default docker setup, each process is ran under trame-user. After that it could be up to your python code in your trame app, to retrieve the proper user and only serve/load the "user data". But without more details on your app design and how you separate your user data, it is hard to provide relevant guidance. Feel free to reach out to Kitware for professional support. |
Beta Was this translation helpful? Give feedback.
-
Hi Seb, As always appreciate the reply. So I looked into this more and I better how the scripts work in the docker folder to create the launcher.json + server folder. To date I was not using these scripts as I was using an active development with hot reload but I was missing out on the launcher per tab session that comes with using these scripts which led me to ask the first question. But I see now that this functionality is available which is great. So my questions is - is it possible to have hot reload in a development environment but also use the launcher feature to create sessions per browser tab? Otherwise development will be very slow? I can't see an easy way to accomplish this. It looks like i may have to delete the server folder every time I want it to pick up on new changes made in either the python or vue components code in a cookie cutter trame project. I would then have to run the build_image.sh script again. that fine in a production environment but not development If this is complex I can reach out to them team in France Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Yes, you can make sure you add For the web part, you will need to re-run |
Beta Was this translation helpful? Give feedback.
-
Ahh super. Many thanks Seb One last one Can I use is it possible to use FROM kitware/trame:py3.10-glvnd as the base image. I need to also have paraview installed in this container but when I do use it can't find wslink in the venv like it can in FROM kitware/trame:py3.9. I'm going around in circles trying to get it to work!! |
Beta Was this translation helpful? Give feedback.
-
I am doing this in the dockerfile. but i am flexible on what version if it helps?
|
Beta Was this translation helpful? Give feedback.
Like I pointed earlier, you need to change that line in the step 4 to use the same image as your runtime.
Basically that
build_image.sh
file should look like