Skip to content

Commit

Permalink
[feat/fix] Merge pull request #62 from AICONSlab/rowanreader-patch-4
Browse files Browse the repository at this point in the history
Update README.md. New link now points to docker docs. Also fixed ANTs installation failing at Docker buildtime.
  • Loading branch information
jono3030 authored Oct 4, 2024
2 parents 2b765b7 + 0dd5d7a commit bb1579a
Show file tree
Hide file tree
Showing 2 changed files with 8 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"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ using MRI images from BrainLab.
It can deal with brains with lesions and extensive atrophy and extracts the brain in seconds.
It can use a T1-weighted image or a combination of T1, T2 and Flair scans as input.

We recommend using iCVMapp3r with the Docker or Singularity containers we provide, since support for local installs has been discontinued. See our doc: [installation instructions](https://icvmapp3r.readthedocs.io/en/latest/docker.html) for more information.
<p align="center">
<img src="docs/images/icvmapper_process.png" alt="icv pop-up window"/>
</p>
Expand Down

0 comments on commit bb1579a

Please sign in to comment.