@@ -150,33 +150,22 @@ RUN conda install -y python=3.7.1 \
150
150
conda build purge-all; sync && \
151
151
conda clean -tipsy && sync
152
152
153
- # Precaching fonts, set 'Agg' as default backend for matplotlib
154
- RUN python -c "from matplotlib import font_manager" && \
155
- sed -i 's/\( backend *: \) .*$/\1 Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
156
- RUN pip install --no-cache-dir "datalad==0.10.0"
157
-
158
153
# Unless otherwise specified each process should only use one thread - nipype
159
154
# will handle parallelization
160
155
ENV MKL_NUM_THREADS=1 \
161
156
OMP_NUM_THREADS=1
162
157
158
+ # Precaching fonts, set 'Agg' as default backend for matplotlib
159
+ RUN python -c "from matplotlib import font_manager" && \
160
+ sed -i 's/\( backend *: \) .*$/\1 Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
161
+
163
162
# Precaching atlases
164
- WORKDIR /home/fmriprep/.cache
165
- RUN datalad install -r https://github.com/templateflow/templateflow.git
166
-
167
- WORKDIR /home/fmriprep/.cache/templateflow
168
- RUN git config user.name "fMRIPrep User" && \
169
- git config user.email
"[email protected] "
170
- RUN datalad get tpl-MNI152NLin2009cAsym/* \
171
- tpl-MNI152Lin/* \
172
- tpl-OASIS30ANTs/* \
173
- tpl-NKI/* && \
174
- rm -rf /home/fmriprep/.cache/datalad
175
- RUN git -C . config annex.merge-annex-branches false && \
176
- git -C tpl-MNI152NLin2009cAsym config annex.merge-annex-branches false && \
177
- git -C tpl-MNI152Lin config annex.merge-annex-branches false && \
178
- git -C tpl-OASIS30ANTs config annex.merge-annex-branches false && \
179
- git -C tpl-NKI config annex.merge-annex-branches false
163
+ RUN pip install --no-cache-dir "templateflow>=0.0.5.post1" && \
164
+ python -c "from templateflow import api as tfapi; \
165
+ tfapi.get('MNI152Lin'); \
166
+ tfapi.get('MNI152NLin2009cAsym'); \
167
+ tfapi.get('OASIS30ANTs'); \
168
+ tfapi.get('NKI');"
180
169
181
170
# Installing dev requirements (packages that are not in pypi)
182
171
WORKDIR /src/
0 commit comments