Skip to content

Commit 5d7a6d3

Browse files
authored
Install c3d through conda (#3382)
The entire package (14MB) is smaller than the statically linked c3d_affine_tool (116MB).
2 parents f0addef + 74a5298 commit 5d7a6d3

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ RUN mkdir /opt/workbench && \
8686
rm -rf /opt/workbench/libs_linux64_software_opengl /opt/workbench/plugins_linux64 && \
8787
strip --remove-section=.note.ABI-tag /opt/workbench/libs_linux64/libQt5Core.so.5
8888

89-
# Convert3d 1.4.0
90-
FROM downloader AS c3d
91-
RUN mkdir /opt/convert3d && \
92-
curl -fsSL --retry 5 https://sourceforge.net/projects/c3d/files/c3d/Experimental/c3d-1.4.0-Linux-gcc64.tar.gz/download \
93-
| tar -xz -C /opt/convert3d --strip-components 1
94-
9589
# Micromamba
9690
FROM downloader AS micromamba
9791

@@ -181,7 +175,6 @@ RUN apt-get update -qq \
181175
COPY --from=freesurfer /opt/freesurfer /opt/freesurfer
182176
COPY --from=afni /opt/afni-latest /opt/afni-latest
183177
COPY --from=workbench /opt/workbench /opt/workbench
184-
COPY --from=c3d /opt/convert3d/bin/c3d_affine_tool /usr/bin/c3d_affine_tool
185178

186179
# Simulate SetUpFreeSurfer.sh
187180
ENV OS="Linux" \

env.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ dependencies:
2727
- pandoc=3.1
2828
# Workflow dependencies: ANTs
2929
- ants=2.5
30+
# Workflow dependencies: Convert3d
31+
- convert3d=1.4
3032
# Workflow dependencies: FSL (versions pinned in 6.0.7.13)
3133
- fsl-bet2=2111.8
3234
- fsl-flirt=2111.2

0 commit comments

Comments
 (0)