Skip to content

Commit 898cd88

Browse files
authored
Merge pull request #401 from effigies/docker/update-afni-install
MNT: Update AFNI installation on Docker
2 parents 8bb307d + 9e91e56 commit 898cd88

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

Dockerfile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,12 @@ RUN echo "Downloading Convert3D ..." \
147147
ENV C3DPATH="/opt/convert3d-1.0.0" \
148148
PATH="/opt/convert3d-1.0.0/bin:$PATH"
149149

150-
# Configure PPA for libpng12
150+
# Configure PPAs for libpng12 and libxp6
151151
RUN GNUPGHOME=/tmp gpg --keyserver hkps://keyserver.ubuntu.com --no-default-keyring --keyring /usr/share/keyrings/linuxuprising.gpg --recv 0xEA8CACC073C3DB2A \
152-
&& 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
153-
# AFNI latest (neurodocker build)
152+
&& GNUPGHOME=/tmp gpg --keyserver hkps://keyserver.ubuntu.com --no-default-keyring --keyring /usr/share/keyrings/zeehio.gpg --recv 0xA1301338A3A48C4A \
153+
&& 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 \
154+
&& 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
155+
# Dependencies for AFNI; requires a discontinued multiarch-support package from bionic (18.04)
154156
RUN apt-get update -qq \
155157
&& apt-get install -y -q --no-install-recommends \
156158
ed \
@@ -162,27 +164,23 @@ RUN apt-get update -qq \
162164
libjpeg62 \
163165
libpng12-0 \
164166
libxm4 \
167+
libxp6 \
165168
netpbm \
166169
tcsh \
167170
xfonts-base \
168171
xvfb \
169-
&& apt-get clean \
170-
&& rm -rf /var/lib/apt/lists/* \
171172
&& 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 \
172173
&& dpkg -i /tmp/multiarch.deb \
173174
&& rm /tmp/multiarch.deb \
174-
&& curl -sSL --retry 5 -o /tmp/libxp6.deb http://mirrors.kernel.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb \
175-
&& dpkg -i /tmp/libxp6.deb \
176-
&& rm /tmp/libxp6.deb \
177175
&& apt-get install -f \
178-
&& apt-get clean \
179-
&& rm -rf /var/lib/apt/lists/* \
176+
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
180177
&& gsl2_path="$(find / -name 'libgsl.so.19' || printf '')" \
181178
&& if [ -n "$gsl2_path" ]; then \
182179
ln -sfv "$gsl2_path" "$(dirname $gsl2_path)/libgsl.so.0"; \
183180
fi \
184-
&& ldconfig \
185-
&& echo "Downloading AFNI ..." \
181+
&& ldconfig
182+
# AFNI latest
183+
RUN echo "Downloading AFNI ..." \
186184
&& mkdir -p /opt/afni-latest \
187185
&& curl -fsSL --retry 5 https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz \
188186
| tar -xz -C /opt/afni-latest --strip-components 1 \

0 commit comments

Comments
 (0)