@@ -41,6 +41,8 @@ RUN python -m build /src/fmriprep
4141
4242# Utilities for downloading packages
4343FROM ${BASE_IMAGE} as downloader
44+ # Bump the date to current to refresh curl/certificates/etc
45+ RUN echo "2023.07.20"
4446RUN apt-get update && \
4547 apt-get install -y --no-install-recommends \
4648 binutils \
@@ -59,7 +61,7 @@ RUN curl -sSL https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.3.2/frees
5961# AFNI
6062FROM downloader as afni
6163# Bump the date to current to update AFNI
62- RUN echo "2023.04.04 "
64+ RUN echo "2023.07.20 "
6365RUN mkdir -p /opt/afni-latest \
6466 && curl -fsSL --retry 5 https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz \
6567 | tar -xz -C /opt/afni-latest --strip-components 1 \
@@ -77,13 +79,6 @@ RUN mkdir -p /opt/afni-latest \
7779 -name "3dAutomask" -or \
7880 -name "3dvolreg" \) -delete
7981
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-
8782# Connectome Workbench 1.5.0
8883FROM downloader as workbench
8984RUN mkdir /opt/workbench && \
@@ -93,6 +88,12 @@ RUN mkdir /opt/workbench && \
9388 rm -rf /opt/workbench/libs_linux64_software_opengl /opt/workbench/plugins_linux64 && \
9489 strip --remove-section=.note.ABI-tag /opt/workbench/libs_linux64/libQt5Core.so.5
9590
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+
9697# Micromamba
9798FROM downloader as micromamba
9899WORKDIR /
@@ -172,8 +173,8 @@ RUN apt-get update -qq \
172173# Install files from stages
173174COPY --from=freesurfer /opt/freesurfer /opt/freesurfer
174175COPY --from=afni /opt/afni-latest /opt/afni-latest
175- COPY --from=ants /opt/ants-2.4.4 /opt/ants
176176COPY --from=workbench /opt/workbench /opt/workbench
177+ COPY --from=c3d /opt/convert3d/bin/c3d_affine_tool /usr/bin/c3d_affine_tool
177178
178179# Simulate SetUpFreeSurfer.sh
179180ENV OS="Linux" \
@@ -197,11 +198,6 @@ ENV PATH="/opt/afni-latest:$PATH" \
197198 AFNI_IMSAVE_WARNINGS="NO" \
198199 AFNI_PLUGINPATH="/opt/afni-latest"
199200
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-
205201# Workbench config
206202ENV PATH="/opt/workbench/bin_linux64:$PATH" \
207203 LD_LIBRARY_PATH="/opt/workbench/lib_linux64:$LD_LIBRARY_PATH"
0 commit comments