-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 1.59 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git build-essential ca-certificates curl tcsh rsync python3 python3-pip python3-setuptools && \
ln -s `which python3` /usr/bin/python && ln -s `which pip3` /usr/bin/pip
RUN curl -O https://afni.nimh.nih.gov/pub/dist/bin/linux_openmp_64/@update.afni.binaries && \
tcsh @update.afni.binaries -package linux_openmp_64 -bindir /opt/afni -prog_list \
3dReHo 3dBlurToFWHM 3dmaskdump 3dcalc 1d_tool.py
RUN mkdir -p /opt/afni/python && \
cd /opt/afni/python && \
git init && \
git remote add -f origin https://github.com/afni/afni.git && \
git config core.sparseCheckout true && \
echo "src/python_scripts" > .git/info/sparse-checkout && \
git pull origin master && \
pip install src/python_scripts
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libxext-dev libxpm-dev libxmu-dev libxt6 libxft2 libgsl-dev
RUN ln -svf /usr/lib/x86_64-linux-gnu/libgsl.so.23 /usr/lib/x86_64-linux-gnu/libgsl.so.0
RUN curl -LO http://ftp.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb && \
curl -LO http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb && \
apt-get install ./libxp6_1.0.2-2_amd64.deb ./libpng12-0_1.2.54-1ubuntu1_amd64.deb && \
rm ./libxp6_1.0.2-2_amd64.deb ./libpng12-0_1.2.54-1ubuntu1_amd64.deb
# Run the command for validation
RUN /opt/afni/3dReHo
RUN /opt/afni/3dBlurToFWHM
RUN /opt/afni/3dmaskdump
RUN /opt/afni/1d_tool.py
RUN /opt/afni/3dcalc
RUN mkdir /scratch
WORKDIR /scratch