-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_registration
100 lines (86 loc) · 2.46 KB
/
Dockerfile_registration
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
FROM ubuntu:xenial
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential=12.1ubuntu2 \
emacs \
git \
inkscape \
jed \
libsm6 \
libxext-dev \
libxrender1 \
lmodern \
netcat \
unzip \
nano \
curl \
wget \
gfortran \
cmake \
bsdtar \
rsync \
imagemagick \
gnuplot-x11 \
libopenblas-base \
python3-dev \
python3-pip \
ttf-dejavu \
wget \
jq \
vim && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# install the notebook package
RUN pip3 install --no-cache --upgrade pip && \
pip3 install --no-cache setuptools && \
pip3 install --no-cache notebook
#install neurodebian
RUN wget -O- http://neuro.debian.net/lists/xenial.us-tn.full | tee /etc/apt/sources.list.d/neurodebian.sources.list
RUN apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
#install fsl
RUN apt-get update && apt-get install -y fsl python-numpy
ENV FSLDIR=/usr/share/fsl/5.0
ENV PATH=$PATH:$FSLDIR/bin
ENV LD_LIBRARY_PATH=/usr/lib/fsl/5.0:/usr/share/fsl/5.0/bin
#simulate . ${FSLDIR}/etc/fslconf/fsl.sh
ENV FSLBROWSER=/etc/alternatives/x-www-browser
ENV FSLCLUSTER_MAILOPTS=n
ENV FSLLOCKDIR=
ENV FSLMACHINELIST=
ENV FSLMULTIFILEQUIT=TRUE
ENV FSLOUTPUTTYPE=NIFTI_GZ
ENV FSLREMOTECALL=
ENV FSLTCLSH=/usr/bin/tclsh
ENV FSLWISH=/usr/bin/wish
ENV POSSUMDIR=/usr/share/fsl/5.0
#make it work under singularity
RUN ldconfig && mkdir -p /N/u /N/home /N/dc2 /N/soft
#https://wiki.ubuntu.com/DashAsBinSh
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt remove cmake;\
pip3 install cmake --upgrade
RUN apt-get install zlib1g-dev
# create user with a home directory
ARG NB_USER
ARG NB_UID
ENV USER ${NB_USER}
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
WORKDIR $HOME
USER ${USER}
RUN cd $HOME;\
pwd;\
git clone https://github.com/cookpa/antsInstallExample.git;\
cd antsInstallExample;\
chmod +777 installANTs.sh;\
./installANTs.sh
RUN cd $HOME;\
echo 'export ANTSPATH=/home/jovyan/antsInstallExample/install/bin/' >> ~/.bashrc ; \
echo 'PATH=${ANTSPATH}:$PATH' >> ~/.bashrc ;\
git clone https://github.com/rrsg2020/analysis ;\
cd analysis;\
chmod +777 register_t1maps_nist.sh