Skip to content

Commit

Permalink
Support orab singularity container type (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Sep 21, 2023
1 parent 202c7d9 commit 12d8753
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sos/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,17 @@ def action_wrapper(*args, **kwargs):
"file",
"library",
"shub",
"orab",
):
raise ValueError(
f"singularity engine only allows docker, file, library, and shub container {cty} specified")
env.logger.warning(
f"Container type {cty} might not be supported.")
elif engine is not None and engine != "local":
raise ValueError(f"Only docker and singularity container engines are supported: {engine} specified")
else:
# engine is none, need to be refered
if cty == "docker":
engine = "docker"
elif cty in ("file", "shub", "library"):
elif cty in ("file", "shub", "library", "oras"):
engine = "singularity"
elif cty == "local":
engine = "local"
Expand Down

0 comments on commit 12d8753

Please sign in to comment.