Skip to content

Commit

Permalink
Merge pull request #788 from ratt-ru/pre-release
Browse files Browse the repository at this point in the history
remove `userns` and `contailall` tags
  • Loading branch information
Athanaseus authored Nov 1, 2023
2 parents f57399a + 90af2a9 commit b51b98f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import glob

PACKAGE_NAME = "stimela"
__version__ = "1.7.9"
__version__ = "1.7.11"
build_root = os.path.dirname(__file__)


Expand Down
10 changes: 4 additions & 6 deletions stimela/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ def pull(image, name, docker=True, directory=".", force=False):
if os.path.exists(image_path) and not force:
stimela.logger().info(f"Singularity image already exists at '{image_path}'. To replace it, please re-run with the 'force' option")
else:
utils.xrun(f"cd {directory} && {BINARY}", ["pull",
"--force" if force else "", "--name",
name, fp])

utils.xrun(f"cd {directory} && {BINARY}", ["pull",
"--force" if force else "", "--name",
name, fp])
return 0

class Container(object):
Expand Down Expand Up @@ -122,10 +121,9 @@ def run(self, *args, output_wrangler=None):
raise SystemExit from None

self.status = "running"
extras = "--userns" if BINARY_NAME == "singularity" else "--writable-tmpfs"
self._print("Starting container [{0:s}]. Timeout set to {1:d}. The container ID is printed below.".format(
self.name, self.time_out))
utils.xrun(f"{BINARY} run --workdir {self.execdir} --containall {extras}",
utils.xrun(f"{BINARY} run --workdir {self.execdir} --contain",
list(args) + [volumes, self.image, self.RUNSCRIPT],
log=self.logger, timeout=self.time_out, output_wrangler=output_wrangler,
env=self._env, logfile=self.logfile)
Expand Down

0 comments on commit b51b98f

Please sign in to comment.