diff --git a/neurodocker/interfaces/tests/test_miniconda.py b/neurodocker/interfaces/tests/test_miniconda.py index cf846662..3031cb16 100644 --- a/neurodocker/interfaces/tests/test_miniconda.py +++ b/neurodocker/interfaces/tests/test_miniconda.py @@ -11,6 +11,7 @@ def test_docker(self): 'instructions': [ ('base', 'centos:7'), ('user', 'neuro'), + ('workdir', '/home/neuro'), ( 'miniconda', { @@ -40,6 +41,7 @@ def test_singularity(self): 'instructions': [ ('base', 'docker://debian:stretch-slim'), ('user', 'neuro'), + ('workdir', '/home/neuro'), ( 'miniconda', { diff --git a/neurodocker/templates/miniconda.yaml b/neurodocker/templates/miniconda.yaml index 85578e7c..c162c439 100644 --- a/neurodocker/templates/miniconda.yaml +++ b/neurodocker/templates/miniconda.yaml @@ -35,9 +35,9 @@ generic: conda install -y {{ miniconda.conda_opts|default("-q") }} --name {{ miniconda.env_name }} \ {%- for pkg in miniconda.conda_install %} {% if not loop.last -%} - '{{ pkg }}' \ + "{{ pkg }}" \ {%- else -%} - '{{ pkg }}' + "{{ pkg }}" {%- endif -%} {% endfor %} sync && conda clean --all && sync @@ -47,9 +47,9 @@ generic: pip install --no-cache-dir {{ miniconda.pip_opts }} \ {%- for pkg in miniconda.pip_install %} {% if not loop.last -%} - '{{ pkg }}' \ + "{{ pkg }}" \ {%- else -%} - '{{ pkg }}' + "{{ pkg }}" {%- endif -%} {% endfor %}" rm -rf ~/.cache/pip/*