Skip to content

Commit 995dafb

Browse files
committed
FIX: source command needs --run-bash
1 parent ee16a45 commit 995dafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_dockerfile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ docker run --rm kaczmarj/neurodocker:v0.3.2 generate \
1717
nilearn datalad[full] nipy duecredit" \
1818
env_name="neuro" \
1919
activate=True \
20-
--run "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
20+
--run-bash "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
2121
--user=root \
2222
--run 'mkdir /data && chmod 777 /data && chmod a+s /data' \
2323
--run 'mkdir /output && chmod 777 /output && chmod a+s /output' \
2424
--user=neuro \
25-
--run 'source activate neuro && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && cd ds000114 && datalad update -r && datalad get -r sub-01/ses-test/anat sub-01/ses-test/func/*fingerfootlips*' \
25+
--run-bash 'source activate neuro && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && cd ds000114 && datalad update -r && datalad get -r sub-01/ses-test/anat sub-01/ses-test/func/*fingerfootlips*' \
2626
--run 'curl -L https://files.osf.io/v1/resources/fvuh8/providers/osfstorage/580705089ad5a101f17944a9 -o /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c.tar.gz && tar xf /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c.tar.gz -C /data/ds000114/derivatives/fmriprep/. && rm /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c.tar.gz && find /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c -type f -not -name ?mm_T1.nii.gz -not -name ?mm_brainmask.nii.gz -not -name ?mm_tpm*.nii.gz -delete' \
2727
--copy . "/home/neuro/nipype_tutorial" \
2828
--run 'printf "[user]\n\tname = miykael\n\temail = [email protected]\n" > ~/.gitconfig' \

0 commit comments

Comments
 (0)