Skip to content

Make all modules export a variable with their image name #8

Description

@lgorenstein

Something it's very convenient to do a quick singularity shell or singularity exec with the container - which requires to know where the image is. Having the module define an environment variable would make this easier. Something along the lines of

pushenv("NGC_IMAGE", image)

would make it a lot easier to say singularity shell --nv $NGC_IMAGE (compared to a "which myprogram-followed-by-copy-pasting-of-the-container-path-from-the-alias").

Granted, this would get a little more complicated when image = uri (name will be different when singularity pulls), but it can be handled too, right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions