Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
remi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RobotLearn
RemI (Remote Inria)
remi
Commits
6c47c9ef
Commit
6c47c9ef
authored
2 years ago
by
LEPAGE Gaetan
Browse files
Options
Downloads
Patches
Plain Diff
[1.0.8] --no-home option for singularity
parent
85d1fb59
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
remi/config/__init__.py
+3
-1
3 additions, 1 deletion
remi/config/__init__.py
remi/config/defaults.py
+5
-0
5 additions, 0 deletions
remi/config/defaults.py
remi/remote_compute/singularity.py
+3
-0
3 additions, 0 deletions
remi/remote_compute/singularity.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
12 additions
and
2 deletions
remi/config/__init__.py
+
3
−
1
View file @
6c47c9ef
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
remi/config/defaults.py
+
5
−
0
View file @
6c47c9ef
...
...
@@ -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).
...
...
This diff is collapsed.
Click to expand it.
remi/remote_compute/singularity.py
+
3
−
0
View file @
6c47c9ef
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
6c47c9ef
...
...
@@ -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.
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment