@@ -51,7 +51,14 @@ RUN curl -sSL "https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_6
51
51
RUN GNUPGHOME=/tmp gpg --keyserver hkps://keyserver.ubuntu.com --no-default-keyring --keyring /usr/share/keyrings/linuxuprising.gpg --recv 0xEA8CACC073C3DB2A \
52
52
&& echo "deb [signed-by=/usr/share/keyrings/linuxuprising.gpg] https://ppa.launchpadcontent.net/linuxuprising/libpng12/ubuntu jammy main" > /etc/apt/sources.list.d/linuxuprising.list
53
53
54
- # # AFNI latest (neurodocker build)
54
+ # AFNI 2023.04.04
55
+ # Configure PPAs for libpng12 and libxp6
56
+ RUN GNUPGHOME=/tmp gpg --keyserver hkps://keyserver.ubuntu.com --no-default-keyring --keyring /usr/share/keyrings/linuxuprising.gpg --recv 0xEA8CACC073C3DB2A \
57
+ && GNUPGHOME=/tmp gpg --keyserver hkps://keyserver.ubuntu.com --no-default-keyring --keyring /usr/share/keyrings/zeehio.gpg --recv 0xA1301338A3A48C4A \
58
+ && echo "deb [signed-by=/usr/share/keyrings/linuxuprising.gpg] https://ppa.launchpadcontent.net/linuxuprising/libpng12/ubuntu jammy main" > /etc/apt/sources.list.d/linuxuprising.list \
59
+ && echo "deb [signed-by=/usr/share/keyrings/zeehio.gpg] https://ppa.launchpadcontent.net/zeehio/libxp/ubuntu jammy main" > /etc/apt/sources.list.d/zeehio.list
60
+
61
+ # Dependencies for AFNI; requires a discontinued multiarch-support package from bionic (18.04)
55
62
RUN apt-get update -qq \
56
63
&& apt-get install -y -q --no-install-recommends \
57
64
ed \
@@ -63,35 +70,31 @@ RUN apt-get update -qq \
63
70
libjpeg62 \
64
71
libpng12-0 \
65
72
libxm4 \
73
+ libxp6 \
66
74
netpbm \
67
75
tcsh \
68
76
xfonts-base \
69
77
xvfb \
70
- && apt-get clean \
71
- && rm -rf /var/lib/apt/lists/* \
72
78
&& curl -sSL --retry 5 -o /tmp/multiarch.deb http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.5_amd64.deb \
73
79
&& dpkg -i /tmp/multiarch.deb \
74
80
&& rm /tmp/multiarch.deb \
75
- && curl -sSL --retry 5 -o /tmp/libxp6.deb http://mirrors.kernel.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb \
76
- && dpkg -i /tmp/libxp6.deb \
77
- && rm /tmp/libxp6.deb \
78
81
&& apt-get install -f \
79
- && apt-get clean \
80
- && rm -rf /var/lib/apt/lists/* \
82
+ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
81
83
&& gsl2_path="$(find / -name 'libgsl.so.19' || printf '')" \
82
84
&& if [ -n "$gsl2_path" ]; then \
83
85
ln -sfv "$gsl2_path" "$(dirname $gsl2_path)/libgsl.so.0" ; \
84
86
fi \
85
- && ldconfig \
86
- && echo "Downloading AFNI ..." \
87
- && mkdir -p /opt/afni-latest \
87
+ && ldconfig
88
+
89
+ RUN mkdir -p /opt/afni-latest \
88
90
&& curl -fsSL --retry 5 https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz \
89
91
| tar -xz -C /opt/afni-latest --strip-components 1 \
90
92
--exclude "linux_openmp_64/*.gz" \
91
93
--exclude "linux_openmp_64/funstuff" \
92
94
--exclude "linux_openmp_64/shiny" \
93
95
--exclude "linux_openmp_64/afnipy" \
94
96
--exclude "linux_openmp_64/lib/RetroTS" \
97
+ --exclude "linux_openmp_64/lib_RetroTS" \
95
98
--exclude "linux_openmp_64/meica.libs" \
96
99
# Keep only what we use
97
100
&& find /opt/afni-latest -type f -not \( \
0 commit comments