Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6c47c9ef authored by LEPAGE Gaetan's avatar LEPAGE Gaetan
Browse files

[1.0.8] --no-home option for singularity

parent 85d1fb59
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ class Singularity:
output_sif_name: str
bindings: dict[str, str]
bind_beegfs: bool
no_home: bool
@classmethod
def from_dict(
......@@ -106,7 +107,8 @@ class Singularity:
output_sif_name=args_dict.get('output_sif_name', 'container.sif'),
def_file_name=args_dict.get('def_file_name', 'container.def'),
bindings=args_dict.get('bindings', {}),
bind_beegfs=args_dict.get('bind_beegfs', False)
bind_beegfs=args_dict.get('bind_beegfs', False),
no_home=args_dict.get('no_home', False)
)
@dataclass
......
......@@ -96,6 +96,11 @@ singularity:
# Whether to bind beegfs. (It will be available as `/beegfs/` in the container).
bind_beegfs: false
# The HOMEDIR is mounted by default by singularity.
# If you want to disable this behavior, set the following option to true.
# Learn more: https://docs.sylabs.io/guides/3.1/user-guide/bind_paths_and_mounts.html#using-no-home-and-containall-flags
no_home: false
# Oarsub options (for more details on `oarsub`, please refer to
# https://oar.imag.fr/docs/latest/user/commands/oarsub.html).
......
......@@ -34,6 +34,9 @@ def get_binding_sub_command() -> list[str]:
else:
binding_sub_cmd += ['--bind', config.project_remote_path]
if config.singularity.no_home:
binding_sub_cmd.append('--no-home')
return binding_sub_cmd
......
......@@ -9,7 +9,7 @@ with open("README.md", "r") as f:
setup(
name='remi',
version='1.0.7',
version='1.0.8',
author="Gaétan Lepage",
author_email="gaetan.lepage@inria.fr",
description="Remote Inria: A CLI tool for remotely interacting with Inria computing resources.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment