Ask Your Question
4

What is the correct way to format the file paths, allowing a script outside a singularity image to access scripts located within that image?

asked 2023-07-08 19:39:21 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-08 20:04:02 +0000

lalupa gravatar image

The correct way to format file paths to allow access to scripts located within a Singularity image from a script outside the image is to use the Singularity URI format. This format is as follows:

singularity://<path_to_file_within_image>

For example, if you want to access a script called "myscript.sh" located in the root directory of your Singularity image "myimage.sif", you would use the following path:

singularity:///myscript.sh

This format specifies that you are accessing a file within a Singularity image, and the triple forward slashes indicate that you are accessing the root directory of the image.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-08 19:39:21 +0000

Seen: 12 times

Last updated: Jul 08 '23