@@ -65,14 +65,13 @@ conflict {{ name }}
65
65
{% if aliases %}{% for alias in aliases %}{% if alias != name %}conflict {{ alias.name }}{% endif %}
66
66
{% endfor %}{% endif %}
67
67
68
- # singularity environment variables to bind the paths and set shell
69
- {% if bindpaths %}setenv SINGULARITY_BINDPATH {{ bindpaths }}{% endif %}
68
+ # singularity environment variable to set shell
70
69
setenv SINGULARITY_SHELL {{ singularity_shell }}
71
70
72
71
# interactive shell to any container, plus exec for aliases
73
- set shellCmd " singularity \$ {SINGULARITY_OPTS} shell \$ {SINGULARITY_COMMAND_OPTS} -s {{ singularity_shell }} {% if features.gpu %}{{ features.gpu }} {% endif %}{% if features.home %}-B {{ features.home | replace(" $" , " \$ " ) }} --home {{ features.home | replace(" $" , " \$ " ) }} {% endif %}{% if features.x11 %}-B {{ features.x11 | replace(" $" , " \$ " ) }} {% endif %}{% if envfile %}-B {{ module_dir }}/{{ envfile }}:/.singularity.d/env/{{ envfile }}{% endif %} ${containerPath} "
74
- set execCmd " singularity \$ {SINGULARITY_OPTS} exec \$ {SINGULARITY_COMMAND_OPTS} {% if features.gpu %}{{ features.gpu }} {% endif %}{% if features.home %}-B {{ features.home | replace(" $" , " \$ " ) }} --home {{ features.home | replace(" $" , " \$ " ) }} {% endif %}{% if features.x11 %}-B {{ features.x11 | replace(" $" , " \$ " ) }} {% endif %}{% if envfile %}-B {{ module_dir }}/{{ envfile }}:/.singularity.d/env/{{ envfile }}{% endif %} "
75
- set runCmd " singularity \$ {SINGULARITY_OPTS} run \$ {SINGULARITY_COMMAND_OPTS} {% if features.gpu %}{{ features.gpu }} {% endif %}{% if features.home %}-B {{ features.home | replace(" $" , " \$ " ) }} --home {{ features.home | replace(" $" , " \$ " ) }} {% endif %}{% if features.x11 %}-B {{ features.x11 | replace(" $" , " \$ " ) }} {% endif %}{% if envfile %}-B {{ module_dir }}/{{ envfile }}:/.singularity.d/env/{{ envfile }}{% endif %} ${containerPath} "
72
+ set shellCmd " singularity \$ {SINGULARITY_OPTS} shell \$ {SINGULARITY_COMMAND_OPTS} -s {{ singularity_shell }} {% if features.gpu %}{{ features.gpu }} {% endif %}{% if features.home %}-B {{ features.home | replace(" $" , " \$ " ) }} --home {{ features.home | replace(" $" , " \$ " ) }} {% endif %}{% if features.x11 %}-B {{ features.x11 | replace(" $" , " \$ " ) }} {% endif %}{% if envfile %}-B {{ module_dir }}/{{ envfile }}:/.singularity.d/env/{{ envfile }}{% endif %} {% if bindpaths %}-B {{ bindpaths }}{% endif %} ${containerPath} "
73
+ set execCmd " singularity \$ {SINGULARITY_OPTS} exec \$ {SINGULARITY_COMMAND_OPTS} {% if features.gpu %}{{ features.gpu }} {% endif %}{% if features.home %}-B {{ features.home | replace(" $" , " \$ " ) }} --home {{ features.home | replace(" $" , " \$ " ) }} {% endif %}{% if features.x11 %}-B {{ features.x11 | replace(" $" , " \$ " ) }} {% endif %}{% if envfile %}-B {{ module_dir }}/{{ envfile }}:/.singularity.d/env/{{ envfile }}{% endif %} {% if bindpaths %}-B {{ bindpaths }}{% endif %} "
74
+ set runCmd " singularity \$ {SINGULARITY_OPTS} run \$ {SINGULARITY_COMMAND_OPTS} {% if features.gpu %}{{ features.gpu }} {% endif %}{% if features.home %}-B {{ features.home | replace(" $" , " \$ " ) }} --home {{ features.home | replace(" $" , " \$ " ) }} {% endif %}{% if features.x11 %}-B {{ features.x11 | replace(" $" , " \$ " ) }} {% endif %}{% if envfile %}-B {{ module_dir }}/{{ envfile }}:/.singularity.d/env/{{ envfile }}{% endif %} {% if bindpaths %}-B {{ bindpaths }}{% endif %} ${containerPath} "
76
75
set inspectCmd " singularity \$ {SINGULARITY_OPTS} inspect \$ {SINGULARITY_COMMAND_OPTS} "
77
76
78
77
# set_shell_function takes bashStr and cshStr
0 commit comments