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

Propagate singularity bind points from initial docker command? #67

Open
thomshaw92 opened this issue Nov 23, 2021 · 6 comments
Open

Propagate singularity bind points from initial docker command? #67

thomshaw92 opened this issue Nov 23, 2021 · 6 comments
Assignees
Labels
easy enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@thomshaw92
Copy link
Contributor

Trying to run a simg within neurodesktop but it seems the bind points from my initial Docker call (for an external drive) in Windows to neurodesktop don't propagate to singularity containers inside.
Would be a nice feature to add to a startup script (i.e., bind all external drives in Docker call (if user wants)- propogate these bindpoints to transparent singularity or wherever the code is now?)

@stebo85
Copy link
Contributor

stebo85 commented Nov 23, 2021 via email

@thomshaw92
Copy link
Contributor Author

thomshaw92 commented Nov 23, 2021

running

PS C:\Users\thoma> docker run --shm-size=1gb -it --privileged --name neurodesktop -v C:/neurodesktop-storage:/neurodesktop-storage -v E:/STIMMRI_DATA/:/STIMMRI -p 8080:8080 -h neurodesktop-20211028 vnmd/neurodesktop:20211028  

Then inside neurodesktop in the fMRIPrep container:

Singularity> ls /STIMMRI
ls: cannot access '/STIMMRI': No such file or directory

@stebo85
Copy link
Contributor

stebo85 commented Nov 25, 2021

Dear Tom,

can you try to mount the external drive to the mountpoint that we created for this use-case :/data ?

PS C:\Users\thoma> docker run --shm-size=1gb -it --privileged --name neurodesktop -v C:/neurodesktop-storage:/neurodesktop-storage -v E:/STIMMRI_DATA/:/data -p 8080:8080 -h neurodesktop-20211028 vnmd/neurodesktop:20211028

The problem is that we need to create the mountpoints at buildtime, so we cannot easily add these at runtime.

@thomshaw92
Copy link
Contributor Author

Ah yes that works... Does it cost us anything to automatically mount all drives and do this in an automatic way at startup? e.g., My external drives in E:/ and F:/ to /mnt/e and /mnt/f/ in neurodesktop?

@stebo85
Copy link
Contributor

stebo85 commented Nov 25, 2021

the problem is that the docker container doesn't know that E: and F: exists, so the startup script proposed in #64 needs to do this. It shouldn't be very difficult, but will need a bit of Powershell / bat magic by @thomshaw92

@stebo85 stebo85 added easy enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Nov 25, 2021
@stebo85
Copy link
Contributor

stebo85 commented Dec 18, 2021

Dear @thomshaw92 - did you get a chance to look at this already?

@stebo85 stebo85 moved this to Waiting on External Input in NeuroDesk Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Waiting on External Input
Development

No branches or pull requests

2 participants