OpenMS / streamlit-template

5 stars 6 forks source link

Check if server can be deployed on ibmidocker #5

Closed timosachsenberg closed 1 week ago

timosachsenberg commented 11 months ago

Axel and me created an initial template for streamlit deployment. I think we are at a point to test if someone can deploy it on ibmidocker

https://github.com/OpenMS/streamlit-template/pull/4

Steps necessary:

User story: User wants to make his App available.

This should allow to deploy multiple streamlit apps on ibmidocker. How we make it accessible through our proxy ibmiservice needs to be discussed with the IT.

timosachsenberg commented 11 months ago

I think @JeeH-K and @enetz would be great candidates for that because deploying their tools as web app would profit from that

timosachsenberg commented 11 months ago

Happy to explain the plan a bit more in detail once @enetz is back.

timosachsenberg commented 11 months ago

I updated #4 to be only Docker based. should make it much easier to build custom docker container for feature branches.

timosachsenberg commented 10 months ago

@enetz and @JeeH-K is it possible to display and browse spectra (e.g., by clicking on table rows of identifications / masses)? I think this would be another important visualization we would need.

JeeH-K commented 10 months ago

Hi Timo

@enetz and @JeeH-K is it possible to display and browse spectra (e.g., by clicking on table rows of identifications / masses)? I think this would be another important visualization we would need.

Yes, displaying and browsing spectra part is (partially) done in FLASHViewer right now. It has a scan table that interacts with deconvolved spectra. When a row in the scan table is clicked, a deconvolved spectrum and a mass table are drawn/updated.

timosachsenberg commented 10 months ago

let's move the web apps forward and meet after this sprint to discuss state/limitations.

poshul commented 9 months ago

How is this looking?

enetz commented 9 months ago

I have gotten access to ibmidocker from our IT admin just before my vacation. I should be able to set up a streamlit service, that is accessible from the local network, in the next few days. Making it public (accessible from outside our local network) will require asking the IT admin to set up proxies for each tool with its own port. Which we can do, when the tools are robust enough for external users.

poshul commented 9 months ago

Sounds good. Thanks!

timosachsenberg commented 9 months ago

If the apache is the proxy server, we can probably do this ourself? Would be good if we find a solution that doesn't require contacting an admin every time

enetz commented 8 months ago

This works now in general, one app is running on the local network.

Two points I will contact the admin about:

  1. Can we do the proxy setup ourselves
  2. Broader access to the ibmidocker machine for the OpenMS team:
    • give everyone access through their WSI accounts, or
    • make one collective OpenMS WSI account to manage apps? (This option might be less secure, since login info for this WSI account would have to be somewhat public within our core team)
timosachsenberg commented 8 months ago

ok that is nice. Thanks! Would be great if you could stay in contact with the admin and push that forward.

timosachsenberg commented 8 months ago

any update here?

timosachsenberg commented 8 months ago

please meet organize yourself as a "task force"

axelwalter commented 7 months ago

Deploying multiple OpenMS apps is now possible with the streamlit-deployment repository using docker-compose.

Anyone with access to the ibmidocker (needs WSI account) can manage the docker containers. Workspaces and user data are stored within docker volumes. I will host them there next week and we can test in the local network before asking to open ports.

One task left is to make sure user data gets cleaned up after a while with a cron job.

axelwalter commented 7 months ago

Workspaces without activity in the last seven days will be removed via a daily cron job.

Deployment and updating apps on ibmidocker works. Currently running the template app and UmetaFlow GUI.

axelwalter commented 7 months ago

A detailed tutorial how to host apps can be found here.

Template App and UmetaFlow are accessible as abi-services.

https://abi-services.cs.uni-tuebingen.de/streamlit-template/ https://abi-services.cs.uni-tuebingen.de/umetaflow/

timosachsenberg commented 6 months ago

This is mostly done. I would suggest polishing them, so we can have an official presentation. Things that come to my mind:

axelwalter commented 6 months ago