Skip to content

Commit 6f26dd0

Browse files
committed
fix(Dockerfile): remove AROMA, improve TemplateFlow installation
1 parent c23b30b commit 6f26dd0

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ RUN npm install -g svgo
112112
# Installing bids-validator
113113
RUN npm install -g [email protected]
114114

115-
# Installing and setting up ICA_AROMA
116-
RUN mkdir -p /opt/ICA-AROMA && \
117-
curl -sSL "https://github.com/maartenmennes/ICA-AROMA/archive/v0.4.4-beta.tar.gz" \
118-
| tar -xzC /opt/ICA-AROMA --strip-components 1 && \
119-
chmod +x /opt/ICA-AROMA/ICA_AROMA.py
120-
121-
ENV PATH=/opt/ICA-AROMA:$PATH
122-
123115
# Installing and setting up miniconda
124116
RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh && \
125117
bash Miniconda3-4.5.11-Linux-x86_64.sh -b -p /usr/local/miniconda && \
@@ -162,9 +154,10 @@ RUN python -c "from matplotlib import font_manager" && \
162154
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
163155

164156
# Precaching atlases
165-
RUN pip install --no-cache-dir "templateflow>=0.4.0,<0.5.0a0" && \
157+
COPY setup.cfg fmriprep-setup.cfg
158+
RUN pip install --no-cache-dir "$( grep templateflow fmriprep-setup.cfg | xargs )" && \
166159
python -c "from templateflow import api as tfapi; \
167-
tfapi.get('MNI152NLin6Asym', atlas=None, extension=['.nii', '.nii.gz']); \
160+
tfapi.get('MNI152NLin6Asym', atlas=None, resolution=[1, 2], extension=['.nii', '.nii.gz']); \
168161
tfapi.get('MNI152NLin2009cAsym', atlas=None, extension=['.nii', '.nii.gz']); \
169162
tfapi.get('OASIS30ANTs', extension=['.nii', '.nii.gz']);" && \
170163
find $HOME/.cache/templateflow -type d -exec chmod go=u {} + && \

0 commit comments

Comments
 (0)