Skip to content

Commit 6c5b425

Browse files
committed
update to templateflow-0.0.5.post1
1 parent a59dec1 commit 6c5b425

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

Dockerfile

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -150,33 +150,22 @@ RUN conda install -y python=3.7.1 \
150150
conda build purge-all; sync && \
151151
conda clean -tipsy && sync
152152

153-
# Precaching fonts, set 'Agg' as default backend for matplotlib
154-
RUN python -c "from matplotlib import font_manager" && \
155-
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
156-
RUN pip install --no-cache-dir "datalad==0.10.0"
157-
158153
# Unless otherwise specified each process should only use one thread - nipype
159154
# will handle parallelization
160155
ENV MKL_NUM_THREADS=1 \
161156
OMP_NUM_THREADS=1
162157

158+
# Precaching fonts, set 'Agg' as default backend for matplotlib
159+
RUN python -c "from matplotlib import font_manager" && \
160+
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
161+
163162
# 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');"
180169

181170
# Installing dev requirements (packages that are not in pypi)
182171
WORKDIR /src/

0 commit comments

Comments
 (0)