Skip to content

Commit bca40d1

Browse files
committed
[hotfix] brew comprehensive copy of templateflow in image
1 parent b30568c commit bca40d1

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
@@ -148,35 +148,24 @@ RUN conda install -y python=3.7.1 \
148148
# Precaching fonts, set 'Agg' as default backend for matplotlib
149149
RUN python -c "from matplotlib import font_manager" && \
150150
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
151+
RUN pip install "datalad==0.10.0" && \
152+
rm -rf ~/.cache/pip
151153

152154
# Unless otherwise specified each process should only use one thread - nipype
153155
# will handle parallelization
154156
ENV MKL_NUM_THREADS=1 \
155157
OMP_NUM_THREADS=1
156158

157159
# Precaching atlases
158-
WORKDIR /opt
160+
RUN git config --global user.name "fMRIPrep User" && \
161+
git config --global user.email "[email protected]"
159162
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/*
180169

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

0 commit comments

Comments
 (0)