@@ -41,6 +41,8 @@ RUN python -m build /src/fmriprep
41
41
42
42
# Utilities for downloading packages
43
43
FROM ${BASE_IMAGE} as downloader
44
+ # Bump the date to current to refresh curl/certificates/etc
45
+ RUN echo "2023.07.20"
44
46
RUN apt-get update && \
45
47
apt-get install -y --no-install-recommends \
46
48
binutils \
@@ -59,7 +61,7 @@ RUN curl -sSL https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.3.2/frees
59
61
# AFNI
60
62
FROM downloader as afni
61
63
# Bump the date to current to update AFNI
62
- RUN echo "2023.04.04 "
64
+ RUN echo "2023.07.20 "
63
65
RUN mkdir -p /opt/afni-latest \
64
66
&& curl -fsSL --retry 5 https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz \
65
67
| tar -xz -C /opt/afni-latest --strip-components 1 \
@@ -77,13 +79,6 @@ RUN mkdir -p /opt/afni-latest \
77
79
-name "3dAutomask" -or \
78
80
-name "3dvolreg" \) -delete
79
81
80
- # ANTs 2.4.4
81
- FROM downloader as ants
82
- RUN mkdir -p /opt && \
83
- curl -sSLO "https://github.com/ANTsX/ANTs/releases/download/v2.4.4/ants-2.4.4-ubuntu-22.04-X64-gcc.zip" && \
84
- unzip ants-2.4.4-ubuntu-22.04-X64-gcc.zip -d /opt && \
85
- rm ants-2.4.4-ubuntu-22.04-X64-gcc.zip
86
-
87
82
# Connectome Workbench 1.5.0
88
83
FROM downloader as workbench
89
84
RUN mkdir /opt/workbench && \
@@ -93,6 +88,12 @@ RUN mkdir /opt/workbench && \
93
88
rm -rf /opt/workbench/libs_linux64_software_opengl /opt/workbench/plugins_linux64 && \
94
89
strip --remove-section=.note.ABI-tag /opt/workbench/libs_linux64/libQt5Core.so.5
95
90
91
+ # Convert3d 1.4.0
92
+ FROM downloader as c3d
93
+ RUN mkdir /opt/convert3d && \
94
+ curl -fsSL --retry 5 https://sourceforge.net/projects/c3d/files/c3d/Experimental/c3d-1.4.0-Linux-gcc64.tar.gz/download \
95
+ | tar -xz -C /opt/convert3d --strip-components 1
96
+
96
97
# Micromamba
97
98
FROM downloader as micromamba
98
99
WORKDIR /
@@ -172,8 +173,8 @@ RUN apt-get update -qq \
172
173
# Install files from stages
173
174
COPY --from=freesurfer /opt/freesurfer /opt/freesurfer
174
175
COPY --from=afni /opt/afni-latest /opt/afni-latest
175
- COPY --from=ants /opt/ants-2.4.4 /opt/ants
176
176
COPY --from=workbench /opt/workbench /opt/workbench
177
+ COPY --from=c3d /opt/convert3d/bin/c3d_affine_tool /usr/bin/c3d_affine_tool
177
178
178
179
# Simulate SetUpFreeSurfer.sh
179
180
ENV OS="Linux" \
@@ -197,11 +198,6 @@ ENV PATH="/opt/afni-latest:$PATH" \
197
198
AFNI_IMSAVE_WARNINGS="NO" \
198
199
AFNI_PLUGINPATH="/opt/afni-latest"
199
200
200
- # ANTs config
201
- ENV ANTSPATH="/opt/ants" \
202
- PATH="/opt/ants/bin:$PATH" \
203
- LD_LIBRARY_PATH="/opt/ants/lib:$LD_LIBRARY_PATH"
204
-
205
201
# Workbench config
206
202
ENV PATH="/opt/workbench/bin_linux64:$PATH" \
207
203
LD_LIBRARY_PATH="/opt/workbench/lib_linux64:$LD_LIBRARY_PATH"
0 commit comments