@@ -15,15 +15,15 @@ proc ModulesHelp { } {
15
15
puts stderr " - {{ image }}"
16
16
puts stderr " Commands include:"
17
17
puts stderr " - {|module_name|}-run:"
18
- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container>"
18
+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if features.home %}-v {{ features.home }} {% endif %} -v . -w . <container>"
19
19
puts stderr " - {|module_name|}-shell:"
20
- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint {{ shell }} {% if envfile %} --env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container>"
20
+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint {{ shell }} {% if envfile %} --env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if features.home %}-v {{ features.home }} {% endif %} -v . -w . <container>"
21
21
puts stderr " - {|module_name|}-exec:"
22
- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint \"\" {% if envfile %} --env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v . -w . <container> $*"
22
+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} -u `id -u`:`id -g` --rm --entrypoint \"\" {% if envfile %} --env-file {{ module_dir }}/{{ envfile }} {% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if features.home %}-v {{ features.home }} {% endif %} -v . -w . <container> $*"
23
23
puts stderr " - {|module_name|}-inspect:"
24
24
puts stderr " {{ command }} inspect <container>"
25
25
{% if aliases %}{% for alias in aliases %} puts stderr " - {{ alias.name }}:"
26
- puts stderr " {{ command }} run -i{% if tty %}t{% endif %} --rm -u `id -u`:`id -g` --entrypoint {{ alias.entrypoint | replace(" $" , " \$ " ) }} {% if envfile %}--envfile {{ module_dir }}/{{ envfile }} {% endif %}{% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if alias.docker_options %}{{ alias.docker_options | replace(" $" , " \$ " ) }} {% endif %} -v . -w . <container> {{ alias.args | replace(" $" , " \$ " ) }}"
26
+ puts stderr " {{ command }} run -i{% if tty %}t{% endif %} --rm -u `id -u`:`id -g` --entrypoint {{ alias.entrypoint | replace(" $" , " \$ " ) }} {% if envfile %}--envfile {{ module_dir }}/{{ envfile }} {% endif %}{% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if features.home %}-v {{ features.home }} {% endif %}{% if alias.docker_options %}{{ alias.docker_options | replace(" $" , " \$ " ) }} {% endif %} -v . -w . <container> {{ alias.args | replace(" $" , " \$ " ) }}"
27
27
{% endfor %}{% endif %}
28
28
29
29
puts stderr " For each of the above, you can export:"
@@ -56,11 +56,11 @@ conflict {{ name }}
56
56
{% endfor %}{% endif %}
57
57
58
58
# interactive shell to any container, plus exec for aliases
59
- set shellCmd " {{ command }} \$ {PODMAN_OPTS} run \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm -i{% if tty %}t{% endif %} --entrypoint {{ shell }} {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v $workdir -w $workdir ${containerPath} "
59
+ set shellCmd " {{ command }} \$ {PODMAN_OPTS} run \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm -i{% if tty %}t{% endif %} --entrypoint {{ shell }} {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if features.home %}-v {{ features.home }} {% endif %} -v $workdir -w $workdir ${containerPath} "
60
60
61
61
# execCmd needs entrypoint to be the executor
62
62
set execCmd " {{ command }} \$ {PODMAN_OPTS} run -i{% if tty %}t{% endif %} \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm {% if envfile %} --env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }}{% endif %} -v $workdir -w $workdir "
63
- set runCmd " {{ command }} \$ {PODMAN_OPTS} run -i{% if tty %}t{% endif %} \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %} -v $workdir -w $workdir ${containerPath} "
63
+ set runCmd " {{ command }} \$ {PODMAN_OPTS} run -i{% if tty %}t{% endif %} \$ {PODMAN_COMMAND_OPTS} -u `id -u`:`id -g` --rm {% if envfile %}--env-file {{ module_dir }}/{{ envfile }}{% endif %} {% if bindpaths %}-v {{ bindpaths }} {% endif %}{% if features.home %}-v {{ features.home }} {% endif %} -v $workdir -w $workdir ${containerPath} "
64
64
set inspectCmd " {{ command }} \$ {PODMAN_OPTS} inspect ${containerPath} "
65
65
66
66
# set_shell_function takes bashStr and cshStr
0 commit comments