-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1916 from FCP-INDI/upgrade/python
⬆️ Upgrade dependencies for 1.8.6
- Loading branch information
Showing
109 changed files
with
34,408 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
!.github/scripts | ||
bids-examples | ||
.circleci | ||
cpac_runs | ||
.env* | ||
.git | ||
.github | ||
!.github/scripts | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
FROM ghcr.io/fcp-indi/c-pac/ubuntu:python3.10-bionic-non-free as AFNI | ||
USER root | ||
|
||
# install AFNI | ||
COPY dev/docker_data/required_afni_pkgs.txt /opt/required_afni_pkgs.txt | ||
COPY dev/docker_data/checksum/AFNI.23.0.07.sha384 /tmp/AFNI.23.0.07.sha384 | ||
RUN if [ -f /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 ]; then \ | ||
ln -svf /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/x86_64-linux-gnu/libGL.so.1; \ | ||
fi \ | ||
&& libs_path=/usr/lib/x86_64-linux-gnu \ | ||
&& if [ -f $libs_path/libgsl.so.23 ]; then \ | ||
ln -svf $libs_path/libgsl.so.23 $libs_path/libgsl.so.19 \ | ||
&& ln -svf $libs_path/libgsl.so.23 $libs_path/libgsl.so.0; \ | ||
elif [ -f $libs_path/libgsl.so.23.0.0 ]; then \ | ||
ln -svf $libs_path/libgsl.so.23.0.0 $libs_path/libgsl.so.19 \ | ||
&& ln -svf $libs_path/libgsl.so.23.0.0 $libs_path/libgsl.so.0; \ | ||
elif [ -f $libs_path/libgsl.so ]; then \ | ||
ln -svf $libs_path/libgsl.so $libs_path/libgsl.so.0; \ | ||
fi \ | ||
&& LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH \ | ||
&& export LD_LIBRARY_PATH \ | ||
&& apt-get update && apt-get install -y libglw1-mesa-dev \ | ||
&& AFNI_VERSION="23.0.07" \ | ||
&& curl -LOJ https://github.com/afni/afni/archive/AFNI_${AFNI_VERSION}.tar.gz \ | ||
&& sha384sum --check /tmp/AFNI.23.0.07.sha384 \ | ||
&& mkdir /opt/afni \ | ||
&& tar -xvf afni-AFNI_${AFNI_VERSION}.tar.gz -C /opt/afni --strip-components 1 \ | ||
&& rm -rf afni-AFNI_${AFNI_VERSION}.tar.gz \ | ||
&& cd /opt/afni/src \ | ||
&& sed '/^INSTALLDIR =/c INSTALLDIR = /opt/afni' Makefile.linux_ubuntu_16_64 > Makefile \ | ||
&& make vastness && make cleanest \ | ||
&& cd /opt/afni \ | ||
# filter down to required packages | ||
ls > full_ls \ | ||
&& sed 's/linux_openmp_64\///g' /opt/required_afni_pkgs.txt | sort > required_ls \ | ||
&& comm -2 -3 full_ls required_ls | xargs rm -rf full_ls required_ls \ | ||
&& apt-get remove -y libglw1-mesa-dev \ | ||
&& ldconfig | ||
|
||
# set up AFNI | ||
ENV PATH=/opt/afni:$PATH | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
|
||
# Link libraries for Singularity images | ||
RUN ldconfig | ||
|
||
RUN apt-get clean \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
FROM scratch | ||
LABEL org.opencontainers.image.description "NOT INTENDED FOR USE OTHER THAN AS A STAGE IMAGE IN A MULTI-STAGE BUILD \ | ||
AFNI 21.1.00 (Domitian) stage" | ||
LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC | ||
COPY --from=AFNI /lib/x86_64-linux-gnu/ld* /lib/x86_64-linux-gnu/ | ||
COPY --from=AFNI /lib/x86_64-linux-gnu/lib*so* /lib/x86_64-linux-gnu/ | ||
COPY --from=AFNI /lib64/ld* /lib64/ | ||
COPY --from=AFNI /opt/afni/ /opt/afni/ | ||
COPY --from=AFNI /usr/lib/x86_64-linux-gnu/lib*so* /usr/lib/x86_64-linux-gnu/ |
21 changes: 21 additions & 0 deletions
21
.github/Dockerfiles/ANTs.2.4.3.Python3.10-bionic.Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM ghcr.io/fcp-indi/c-pac/ubuntu:python3.10-bionic-non-free as ANTs | ||
|
||
USER root | ||
COPY dev/docker_data/checksum/ANTs.2.4.3.sha384 /tmp/checksum.sha384 | ||
RUN curl -sL https://github.com/ANTsX/ANTs/releases/download/v2.4.3/ants-2.4.3-ubuntu-18.04-X64-gcc.zip -o /tmp/ANTs.zip \ | ||
&& curl -sL https://s3-eu-west-1.amazonaws.com/pfigshare-u-files/3133832/Oasis.zip -o /tmp/Oasis.zip \ | ||
&& sha384sum --check /tmp/checksum.sha384 \ | ||
&& unzip /tmp/ANTs.zip -d /tmp \ | ||
&& mkdir /usr/lib/ants \ | ||
&& mv /tmp/ants-2.4.3/* /usr/lib/ants \ | ||
&& mkdir /ants_template \ | ||
&& unzip /tmp/Oasis.zip -d /tmp \ | ||
&& mv /tmp/MICCAI2012-Multi-Atlas-Challenge-Data /ants_template/oasis | ||
|
||
# Only keep what we need | ||
FROM scratch | ||
LABEL org.opencontainers.image.description "NOT INTENDED FOR USE OTHER THAN AS A STAGE IMAGE IN A MULTI-STAGE BUILD \ | ||
ANTs 2.4.3 stage" | ||
LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC | ||
COPY --from=ANTs /usr/lib/ants/ /usr/lib/ants/ | ||
COPY --from=ANTs /ants_template/ /ants_template/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
FROM ghcr.io/fcp-indi/c-pac:latest-bionic | ||
FROM ghcr.io/fcp-indi/c-pac/stage-base:lite-v1.8.6.dev1 | ||
LABEL org.opencontainers.image.description "Full C-PAC image without FreeSurfer" | ||
LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC | ||
USER root | ||
|
||
# install C-PAC | ||
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml | ||
COPY . /code | ||
RUN pip install -e /code | ||
# set up runscript | ||
COPY dev/docker_data /code/docker_data | ||
RUN rm -Rf /code/docker_data/Dockerfiles && \ | ||
mv /code/docker_data/* /code && \ | ||
rm -Rf /code/docker_data && \ | ||
chmod +x /code/run.py && \ | ||
rm -Rf /code/run-with-freesurfer.sh | ||
ENTRYPOINT ["/code/run.py"] | ||
|
||
# remove FreeSurfer, link libraries & clean up | ||
RUN rm -rf /usr/lib/freesurfer/ /code/run-with-freesurfer.sh /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ | ||
ln -svf /usr/lib/x86_64-linux-gnu/libgsl.so.23 /usr/lib/x86_64-linux-gnu/libgsl.so.0 && ldconfig && \ | ||
chmod 777 $(ls / | grep -v sys | grep -v proc) | ||
# link libraries & clean up | ||
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& ldconfig \ | ||
&& chmod 777 / \ | ||
&& chmod 777 $(ls / | grep -v sys | grep -v proc) | ||
|
||
# set user | ||
# USER c-pac_user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.