Skip to content

Commit

Permalink
[fix/feat] fix ANTs installation
Browse files Browse the repository at this point in the history
The ANTs installation would fail with a 403 not found error because the
archive is no longer available on Dropbox. I re-created the archive from
an old iCVMapp3r image and migrated it to the AICONs Lab HuggingFace
account as a dataset. I changed/improved the cmds in the Dockerfile
accordingly and also fixed deprecated syntaxt to set env vars elsewhere
in the Dockerfile.
  • Loading branch information
jono3030 committed Oct 3, 2024
1 parent 8ec6bb9 commit 1d9337a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y git wget build-essential g++ gcc cmake
RUN wget https://downloads.sourceforge.net/project/c3d/c3d/Nightly/c3d-nightly-Linux-x86_64.tar.gz && \
tar -xzvf c3d-nightly-Linux-x86_64.tar.gz && mv c3d-1.1.0-Linux-x86_64 /opt/c3d && \
rm c3d-nightly-Linux-x86_64.tar.gz
ENV PATH /opt/c3d/bin:${PATH}
ENV PATH=/opt/c3d/bin:${PATH}

# Install FSL
RUN apt-get update && apt-get install -y fsl
Expand All @@ -33,10 +33,11 @@ ENV FSLDIR="/usr/share/fsl/5.0" \
ENV PATH="/usr/lib/fsl/5.0:${PATH}"

# Install ANTs
ENV ANTSPATH /opt/ANTs
RUN mkdir -p /opt/ANTs && \
curl -sSL "https://dl.dropbox.com/s/2f4sui1z6lcgyek/ANTs-Linux-centos5_x86_64-v2.2.0-0740f91.tar.gz" \
| tar -xzC $ANTSPATH --strip-components 1
ENV ANTSPATH="/opt/ANTs"
ENV ANTSTAR="/opt/ants.tar.gz"
RUN mkdir -p "${ANTSPATH}" && \
wget -q --show-progress -O "${ANTSTAR}" https://huggingface.co/datasets/AICONSlab/icvmapper/resolve/dev/software/ANTs/ANTs-Linux-centos5_x86_64-v2.2.0-0740f91.tar.gz && \
tar -xzvf "${ANTSTAR}" -C "${ANTSPATH}" --strip-components 1
ENV PATH=${ANTSPATH}:${PATH}

# Install all needed packages based on pip installation
Expand Down Expand Up @@ -86,4 +87,4 @@ RUN set -x \
libxinerama-dev

# Run icvmapper when the container launches
ENTRYPOINT /bin/bash
ENTRYPOINT ["/bin/bash"]

0 comments on commit 1d9337a

Please sign in to comment.