@@ -148,35 +148,24 @@ RUN conda install -y python=3.7.1 \
148
148
# Precaching fonts, set 'Agg' as default backend for matplotlib
149
149
RUN python -c "from matplotlib import font_manager" && \
150
150
sed -i 's/\( backend *: \) .*$/\1 Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
151
+ RUN pip install "datalad==0.10.0" && \
152
+ rm -rf ~/.cache/pip
151
153
152
154
# Unless otherwise specified each process should only use one thread - nipype
153
155
# will handle parallelization
154
156
ENV MKL_NUM_THREADS=1 \
155
157
OMP_NUM_THREADS=1
156
158
157
159
# Precaching atlases
158
- WORKDIR /opt
160
+ RUN git config --global user.name "fMRIPrep User" && \
161
+ git config --global user.email
"[email protected] "
159
162
ENV TEMPLATEFLOW_HOME="/opt/templateflow"
160
- RUN pip install "datalad==0.10.0" && \
161
- rm -rf ~/.cache/pip
162
-
163
- RUN umask 000 && \
164
- datalad install -r https://github.com/templateflow/templateflow.git && \
165
- datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_T1w.nii.gz \
166
- $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_desc-brain_mask.nii.gz \
167
- $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-fMRIPrep_boldref.nii.gz \
168
- $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-DKT31_dseg.nii.gz \
169
- $TEMPLATEFLOW_HOME/tpl-MNI152Lin/*_T1w.nii.gz \
170
- $TEMPLATEFLOW_HOME/tpl-MNI152Lin/*_desc-brain_mask.nii.gz \
171
- $TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/*_T1w.nii.gz \
172
- $TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_desc-brain_mask.nii.gz \
173
- $TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_label-brain_probseg.nii.gz \
174
- $TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_desc-BrainCerebellumExtraction_mask.nii.gz
175
-
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] "
163
+ WORKDIR /opt
164
+ RUN datalad install -r https://github.com/templateflow/templateflow.git
165
+ RUN datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/* \
166
+ $TEMPLATEFLOW_HOME/tpl-MNI152Lin/* \
167
+ $TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/* \
168
+ $TEMPLATEFLOW_HOME/tpl-NKI/*
180
169
181
170
# Installing dev requirements (packages that are not in pypi)
182
171
WORKDIR /src/
0 commit comments