Skip to content

⚡ Better handling of a local, not-specified-at-runtime Singularity image #6

Open
@shnizzedy

Description

@shnizzedy

Related problem

Right now, if --platform singularity is given without an image, cpac just pulls without even trying to find a local image.

else: # pragma: no cover
try:
self.image = Client.pull(
"shub://FCP-INDI/C-PAC",
pull_folder=pwd
)
except Exception:
try:
self.image = Client.pull(
f"docker://fcpindi/c-pac:latest",
pull_folder=pwd
)

Proposed feature

A configuration file that specifies the path to a default Singularity image seems like the most obvious solution.

Alternatives

  • A default path?
  • An environment variable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Hacktoberfesthttps://hacktoberfest.digitalocean.com/enhancementNew feature or request

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      ⚡ Better handling of a local, not-specified-at-runtime Singularity image · Issue #6 · FCP-INDI/cpac