Skip to content

Commit 2d97757

Browse files
authored
Merge pull request #19 from poldracklab/enh/docker-afni
ENH: Add AFNI to docker image
2 parents 93393e7 + b836692 commit 2d97757

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ jobs:
8484
set -e
8585
if [[ "$success" = "0" ]]; then
8686
echo "Pulling from local registry"
87-
docker tag localhost:5000/ubuntu ubuntu:xenial-20191010
87+
docker tag localhost:5000/ubuntu ubuntu:xenial-20200114
8888
docker pull localhost:5000/nirodents
8989
docker tag localhost:5000/nirodents nirodents:latest
9090
else
9191
echo "Pulling from Docker Hub"
92-
docker pull ubuntu:xenial-20191010
93-
docker tag ubuntu:xenial-20191010 localhost:5000/ubuntu
92+
docker pull ubuntu:xenial-20200114
93+
docker tag ubuntu:xenial-20200114 localhost:5000/ubuntu
9494
docker push localhost:5000/ubuntu
9595
fi
9696

Dockerfile

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Use Ubuntu 16.04 LTS
2-
FROM ubuntu:xenial-20191010
2+
FROM ubuntu:xenial-20200114
33

44
# Pre-cache neurodebian key
55
COPY docker/files/neurodebian.gpg /usr/local/etc/.neurodebian.gpg
66

77
# Prepare environment
88
RUN apt-get update && \
99
apt-get install -y --no-install-recommends \
10-
curl \
10+
autoconf \
11+
build-essential \
1112
bzip2 \
1213
ca-certificates \
13-
xvfb \
14-
cython3 \
15-
build-essential \
16-
autoconf \
14+
curl \
15+
git \
1716
libtool \
17+
lsb-release \
1818
pkg-config \
19-
git && \
19+
xvfb && \
2020
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2121

2222
# Installing ANTs 2.3.0 (NeuroDocker build)
@@ -26,6 +26,24 @@ RUN mkdir -p $ANTSPATH && \
2626
| tar -xzC $ANTSPATH --strip-components 1
2727
ENV PATH=$ANTSPATH/bin:$PATH
2828

29+
# Pre-cache neurodebian key
30+
COPY docker/files/neurodebian.gpg /usr/local/etc/neurodebian.gpg
31+
# Installing Neurodebian packages (FSL, AFNI, git)
32+
RUN curl -sSL "http://neuro.debian.net/lists/$( lsb_release -c | cut -f2 ).us-ca.full" >> /etc/apt/sources.list.d/neurodebian.sources.list && \
33+
apt-key add /usr/local/etc/neurodebian.gpg && \
34+
(apt-key adv --refresh-keys --keyserver hkp://ha.pool.sks-keyservers.net 0xA5D32F012649A5A9 || true)
35+
36+
RUN apt-get update && \
37+
apt-get install -y --no-install-recommends \
38+
afni=16.2.07~dfsg.1-5~nd16.04+1 && \
39+
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
40+
41+
ENV AFNI_MODELPATH="/usr/lib/afni/models" \
42+
AFNI_IMSAVE_WARNINGS="NO" \
43+
AFNI_TTATLAS_DATASET="/usr/share/afni/atlases" \
44+
AFNI_PLUGINPATH="/usr/lib/afni/plugins"
45+
ENV PATH="/usr/lib/afni/bin:$PATH"
46+
2947
# Create a shared $HOME directory
3048
RUN useradd -m -s /bin/bash -G users nirodents
3149
WORKDIR /home/nirodents

0 commit comments

Comments
 (0)