Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having pre-initialised containers compile R Markdown before assigned to a user #538

Open
eturkes opened this issue Nov 14, 2024 · 1 comment

Comments

@eturkes
Copy link

eturkes commented Nov 14, 2024

Is it possible to do this? My containers pre-initialise fine but I can see that they only start to compile once launched by a user. The files take a long time to compile (it uses Shiny and I've looked into shiny_prerendered but it's incompatible with some components I'm using), so it'd be nice to have them compile as part of the pre-initialisation and when a user starts to use the container it's already ready to go.

@eturkes
Copy link
Author

eturkes commented Nov 25, 2024

Working through this I've realized it's probably way out of scope of ShinyProxy. I was able to manage a solution using CRIU and forking of R Markdown, Shiny, and Flexdashboard which was of course very hacky. It works outside of ShinyProxy through reverse SSH tunneling, as one normally does to access a remote Shiny instance without completely opening the ports.

But this solution hasn't been working with ShinyProxy. I can get the HTML and CSS loading but the Shiny elements fail to return. I suspect this has something to do with changing environment variables whenever ShinyProxy launches a new container.

I realize this is no longer a proper issue at this point and can probably be closed, but if anyone has insight on how to get ShinyProxy to produce instances with identical environment variables that would be helpful. Although this seems to defeat the purpose of ShinyProxy somewhat, I can see it working with user login, so I can prespec the environment for each user in the application.yml or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy