Skip to content

Commit cf360a3

Browse files
authored
chore(build): Install Workbench CLI via conda (#3410)
I got connectome-workbench onto conda-forge: https://github.com/conda-forge/connectome-workbench-split-feedstock It has a connectome-workbench-cli package that excludes the GUI, and now this is one fewer things to have special in the Dockerfile.
2 parents 152a80d + a0d44bf commit cf360a3

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Dockerfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ RUN mkdir -p /opt/afni-latest \
7777
-name "3dAutomask" -or \
7878
-name "3dvolreg" \) -delete
7979

80-
# Connectome Workbench 1.5.0
81-
FROM downloader AS workbench
82-
RUN mkdir /opt/workbench && \
83-
curl -sSLO https://www.humanconnectome.org/storage/app/media/workbench/workbench-linux64-v1.5.0.zip && \
84-
unzip workbench-linux64-v1.5.0.zip -d /opt && \
85-
rm workbench-linux64-v1.5.0.zip && \
86-
rm -rf /opt/workbench/libs_linux64_software_opengl /opt/workbench/plugins_linux64 && \
87-
strip --remove-section=.note.ABI-tag /opt/workbench/libs_linux64/libQt5Core.so.5
88-
8980
# Micromamba
9081
FROM downloader AS micromamba
9182

@@ -174,7 +165,6 @@ RUN apt-get update -qq \
174165
# Install files from stages
175166
COPY --from=freesurfer /opt/freesurfer /opt/freesurfer
176167
COPY --from=afni /opt/afni-latest /opt/afni-latest
177-
COPY --from=workbench /opt/workbench /opt/workbench
178168

179169
# Simulate SetUpFreeSurfer.sh
180170
ENV OS="Linux" \
@@ -198,10 +188,6 @@ ENV PATH="/opt/afni-latest:$PATH" \
198188
AFNI_IMSAVE_WARNINGS="NO" \
199189
AFNI_PLUGINPATH="/opt/afni-latest"
200190

201-
# Workbench config
202-
ENV PATH="/opt/workbench/bin_linux64:$PATH" \
203-
LD_LIBRARY_PATH="/opt/workbench/lib_linux64:$LD_LIBRARY_PATH"
204-
205191
# Create a shared $HOME directory
206192
RUN useradd -m -s /bin/bash -G users fmriprep
207193
WORKDIR /home/fmriprep

env.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ dependencies:
2929
- ants=2.5
3030
# Workflow dependencies: Convert3d
3131
- convert3d=1.4
32+
# Workflow dependencies: Connectome Workbench
33+
- connectome-workbench-cli=2.0
3234
# Workflow dependencies: FSL (versions pinned in 6.0.7.13)
3335
- fsl-bet2=2111.8
3436
- fsl-flirt=2111.2

0 commit comments

Comments
 (0)