Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions containers/ants.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,18 @@ FROM ants-base as ants-install

ARG ANTS_INSTALL_PATH
ARG ANTS_REVISION
ARG ANTS_AFFINE_SYN_REVISION

ENV ANTS_INSTALL_PATH=${ANTS_INSTALL_PATH:-/ants}
ENV ANTS_REVISION=${ANTS_REVISION:-v2.3.4}
ENV ANTS_AFFINE_SYN_REVISION=${ANTS_AFFINE_SYN_REVISION:-1.1}

ENV ANTSPATH=${ANTS_INSTALL_PATH}/bin/
ENV PATH=$PATH:$ANTSPATH

COPY --from=ants --link ${ANTS_INSTALL_PATH} ${ANTS_INSTALL_PATH}

RUN --mount=type=cache,sharing=locked,target=/var/cache/apt \
apt-get update && apt-get -y install \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
ADD https://raw.githubusercontent.com/CoBrALab/antsRegistration_affine_SyN/refs/tags/${ANTS_AFFINE_SYN_REVISION}/antsRegistration_affine_SyN.sh ${ANTSPATH}
RUN chmod +x ${ANTSPATH}/antsRegistration_affine_SyN.sh

WORKDIR /
RUN ( [ -f "VERSION" ] || touch VERSION ) && \
Expand Down
3 changes: 2 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ target "ants" {
args = {
ANTS_BUILD_NTHREADS = "6"
ANTS_REVISION = "${ants-revision}"
ANTS_AFFINE_SYN_REVISION = "${ants-affine-syn-revision}"
}
cache-from = [
"type=registry,ref=${dockerhub-user-pull}/build-cache:ants",
Expand Down Expand Up @@ -593,4 +594,4 @@ target "scilus-base-cache" {
"type=registry,ref=scilus/build-cache:ants",
"type=registry,ref=scilus/build-cache:cmake"
]
}
}
1 change: 1 addition & 0 deletions docker-bake.override.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dmriqcpy-revision="0.1.7"
scilpy-revision="2.2.0"

ants-revision="v2.6.2"
ants-affine-syn-revision="1.1"
cmake-revision="v3.21.6"
fsl-version="6.0.7.18.scilus.lean"
fsl-installer-version="3.14.0"
Expand Down