Skip to content

Commit 7d31143

Browse files
committed
⬆️ Upgrade ANTs to v2.3.4 (from 2.1.0)
1 parent 9b2eca0 commit 7d31143

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,6 @@ RUN mkdir /ants_template && \
150150
mv /tmp/MICCAI2012-Multi-Atlas-Challenge-Data /ants_template/oasis && \
151151
rm -rf /tmp/Oasis.zip /tmp/MICCAI2012-Multi-Atlas-Challenge-Data
152152

153-
# install ANTs
154-
ENV PATH=/usr/lib/ants:$PATH
155-
RUN apt-get install -y ants
156-
# RUN export ANTSPATH=/usr/lib/ants
157-
ENV ANTSPATH=/usr/lib/ants/
158-
159153
# install ICA-AROMA
160154
RUN mkdir -p /opt/ICA-AROMA
161155
RUN curl -sL https://github.com/rhr-pruim/ICA-AROMA/archive/v0.4.3-beta.tar.gz | tar -xzC /opt/ICA-AROMA --strip-components 1
@@ -216,8 +210,12 @@ RUN mkdir -p /ndmg_atlases/label && \
216210
COPY dev/docker_data/default_pipeline.yml /cpac_resources/default_pipeline.yml
217211
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
218212

219-
220213
COPY . /code
214+
# install ANTs
215+
RUN /code/dev/docker_data/install_ants.sh v2.3.4
216+
ENV ANTSPATH=/usr/lib/ants/bin/
217+
ENV PATH=${ANTSPATH}:$PATH
218+
221219
RUN pip install -e /code
222220

223221
COPY dev/docker_data /code/docker_data

dev/docker_data/install_ants.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ buildThreads=4
4141

4242
# Where to build, should be an empty directory
4343
buildDir=${workingDir}/build
44-
installDir=${workingDir}/install
44+
installDir=/usr/lib/ants
4545

46-
mkdir $buildDir $installDir
46+
mkdir -p $buildDir $installDir
4747

4848
cd $buildDir
4949

0 commit comments

Comments
 (0)