Skip to content

Commit b30568c

Browse files
authored
Merge pull request #1501 from effigies/fix/template_flow_permissions
FIX: Set TemplateFlow directory world-writeable
2 parents 42eafa4 + f5d1723 commit b30568c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,8 @@ ENV TEMPLATEFLOW_HOME="/opt/templateflow"
160160
RUN pip install "datalad==0.10.0" && \
161161
rm -rf ~/.cache/pip
162162

163-
RUN git config --global user.name "First Last" && \
164-
git config --global user.email "[email protected]"
165-
166-
RUN datalad install -r https://github.com/templateflow/templateflow.git && \
163+
RUN umask 000 && \
164+
datalad install -r https://github.com/templateflow/templateflow.git && \
167165
datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_T1w.nii.gz \
168166
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_desc-brain_mask.nii.gz \
169167
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-fMRIPrep_boldref.nii.gz \
@@ -175,6 +173,11 @@ RUN datalad install -r https://github.com/templateflow/templateflow.git && \
175173
$TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_label-brain_probseg.nii.gz \
176174
$TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_desc-BrainCerebellumExtraction_mask.nii.gz
177175

176+
# Stop datalad complaining about user info when using templateflow on Singularity
177+
RUN cd $TEMPLATEFLOW_HOME && \
178+
git config user.name "fMRIPrep User" && \
179+
git config user.email "[email protected]"
180+
178181
# Installing dev requirements (packages that are not in pypi)
179182
WORKDIR /src/
180183
COPY requirements.txt requirements.txt

0 commit comments

Comments
 (0)