Skip to content

Commit c7b366b

Browse files
author
cneuromod_bot
committed
Merge remote-tracking branch 'upstream/master' into enh/gradunwarp
2 parents eff250b + e1c4bac commit c7b366b

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

.circleci/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _machine_defaults: &machine_defaults
44
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
55
SCRATCH: "/scratch"
66
machine:
7-
image: ubuntu-2204:current
7+
image: ubuntu-2204:2023.04.2
88
docker_layer_caching: true
99
working_directory: /tmp/src/fmriprep
1010
resource_class: large
@@ -192,6 +192,8 @@ jobs:
192192
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
193193
--build-arg VCS_REF=`git rev-parse --short HEAD` \
194194
--build-arg VERSION="${CIRCLE_TAG:-$THISVERSION}" .
195+
- run:
196+
command: docker images
195197
- run:
196198
name: Check Docker image
197199
command: |

Dockerfile

+10-14
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ RUN python -m build /src/fmriprep
4141

4242
# Utilities for downloading packages
4343
FROM ${BASE_IMAGE} as downloader
44+
# Bump the date to current to refresh curl/certificates/etc
45+
RUN echo "2023.07.20"
4446
RUN 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
6062
FROM downloader as afni
6163
# Bump the date to current to update AFNI
62-
RUN echo "2023.04.04"
64+
RUN echo "2023.07.20"
6365
RUN 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
8883
FROM downloader as workbench
8984
RUN 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
9798
FROM downloader as micromamba
9899
WORKDIR /
@@ -172,8 +173,8 @@ RUN apt-get update -qq \
172173
# Install files from stages
173174
COPY --from=freesurfer /opt/freesurfer /opt/freesurfer
174175
COPY --from=afni /opt/afni-latest /opt/afni-latest
175-
COPY --from=ants /opt/ants-2.4.4 /opt/ants
176176
COPY --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
179180
ENV 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
206202
ENV PATH="/opt/workbench/bin_linux64:$PATH" \
207203
LD_LIBRARY_PATH="/opt/workbench/lib_linux64:$LD_LIBRARY_PATH"

env.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ dependencies:
2323
# Utilities
2424
- graphviz=6.0
2525
- pandoc=3.1
26-
# Workflow dependencies: Convert3D
27-
- convert3d=1.3.0
28-
- libitk=5.2 # 5.3 fails with c3d
26+
# Workflow dependencies: ANTs
27+
- ants=2.4.4
2928
# Workflow dependencies: FSL (versions pinned in 6.0.6.2)
3029
- fsl-bet2=2111.0
3130
- fsl-flirt=2111.0

0 commit comments

Comments
 (0)