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

How to mount/bind global environment and location of temporary RScripts with singularity? #895

Open
ranasats opened this issue Jan 13, 2025 · 0 comments
Labels
pre-built images Related to pre-built images question

Comments

@ranasats
Copy link

ranasats commented Jan 13, 2025

Container image name

rocker/rstudio:4.4.2

Container image digest

sha256:48f3ed0bd738d40fd9908d60c8dda411d52d1f0deb57e18b5543c04604a33294

What operating system related to this question?

Linux

System information

  • Singularity version 3.7.4-1.sdl7
  • CentOS7

Question

Hi,

I'm writing a script to start a singularity instance of Rocker RStudio depending on what conda env is active. For each active env, I want the instance to have it's own temporary Global env and session. Right now, if I were to start 2 different singularity images, they both are using the same global env and temporary files (the same open Untitled.R files, same loaded dataframes, variables, etc). But they are using their corresponding version of R based on the conda env (using sessionInfo())

Currently, I am giving the following variables to my container:

--bind $RSTUDIO_TMP/$(whoami)_${current_env}_tmp:/tmp \
--bind $RSTUDIO_TMP/$(whoami)_${current_env}_run:/run \
--bind $RSTUDIO_TMP/$(whoami)_${current_env}_var-lib-rstudio-server:/var/lib/rstudio-server \
--bind $RSTUDIO_TMP/$(whoami)_${current_env}_local-share-rstudio:/home/rstudio/.local/share/rstudio \

Which directory am I missing which houses the location of temp files/temp RData?

Thank you!

@eitsupi eitsupi changed the title How to mount/bind global environment and location of temporary RScripts? How to mount/bind global environment and location of temporary RScripts with singularity? Jan 25, 2025
@eitsupi eitsupi added the pre-built images Related to pre-built images label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pre-built images Related to pre-built images question
Projects
None yet
Development

No branches or pull requests

2 participants