Hello,
i'm trying to use a docker image containing VEP, and mount a cache which is located in my UKB project. As far as I understand though, you can't use mnt/project/ to mount a directory, only a single file. Is there a method other than dxfuse, or some way to mount an entire directory (i.e. mnt/project/vep_data/Cache...)?
I might be wrong, but from my experience, docker should enable taking a folder as an input to be mounted. I found the following doc page which is showing example on how to provide dxfuse mounted dir to docker run command.
thanks so much, i managed to get it working using that code snippet! I mounted the whole project folder to the VM using that link, then mounted the cache to my docker image using the following line:
docker run -v $FUSE_MOUNT/$DX_PROJECT_CONTEXT_ID/vep_data:/opt/vep/.vep
hope that's helpful to anyone else having the same confusion :)
Comments
2 comments
I might be wrong, but from my experience, docker should enable taking a folder as an input to be mounted. I found the following doc page which is showing example on how to provide dxfuse mounted dir to docker run command.
https://documentation.dnanexus.com/getting-started/developer-tutorials/web-app-let-tutorials/running-rstudio-shiny-server-and-apps#method-3-mount-your-project-as-a-folder
I have not tested that on my side, but it might be a good starting point for testing.
thanks so much, i managed to get it working using that code snippet! I mounted the whole project folder to the VM using that link, then mounted the cache to my docker image using the following line:
docker run -v $FUSE_MOUNT/$DX_PROJECT_CONTEXT_ID/vep_data:/opt/vep/.vep
hope that's helpful to anyone else having the same confusion :)
Please sign in to leave a comment.