forked from PennBBL/fiberfox-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (59 loc) · 2.43 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
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
FROM ubuntu:xenial-20190122
COPY neurodebian.gpg /root/.neurodebian.gpg
# Prepare environment
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
bzip2 \
ca-certificates \
xvfb \
cython3 \
build-essential \
autoconf \
libtool \
wget \
zip \
unzip \
pkg-config && \
curl -sSL http://neuro.debian.net/lists/xenial.us-ca.full >> /etc/apt/sources.list.d/neurodebian.sources.list && \
apt-key add /root/.neurodebian.gpg && \
(apt-key adv --refresh-keys --keyserver hkp://ha.pool.sks-keyservers.net 0xA5D32F012649A5A9 || true) && \
apt-get update
# Download fiberfox
RUN mkdir /fiberfox \
&& cd /fiberfox \
&& wget -nv ftp://ftp.dkfz-heidelberg.de/outgoing/MitkDiffusion/2019-01-25/MITK-Diffusion_Ubuntu-16.04-xenial_2018.09.99_2019-01-25_d7b3fd4d9e65.tar.gz \
&& tar xvfz MITK-Diffusion_Ubuntu-16.04-xenial_2018.09.99_2019-01-25_d7b3fd4d9e65.tar.gz \
&& rm MITK-Diffusion_Ubuntu-16.04-xenial_2018.09.99_2019-01-25_d7b3fd4d9e65.tar.gz
# Download the test data
RUN mkdir /ismrm \
&& cd /ismrm \
&& wget -nv 'http://tractometer.org/downloads/downloads/ismrm_challenge_2015/ISMRM_2015_Tracto_challenge_ground_truth_dwi_v2.zip' \
&& unzip ISMRM_2015_Tracto_challenge_ground_truth_dwi_v2.zip \
&& rm ISMRM_2015_Tracto_challenge_ground_truth_dwi_v2.zip \
&& wget -nv 'http://tractometer.org/downloads/downloads/ismrm_challenge_2015/FilesForSimulation_v1.zip' \
&& unzip FilesForSimulation_v1.zip \
&& rm FilesForSimulation_v1.zip
RUN apt-get install -y \
libx11-xcb-dev \
libfontconfig1-dev \
libxi-dev \
libdbus-1-3 \
libjpeg8 \
mesa-utils \
libnss3 \
libffi-dev \
libglib2.0-dev \
libxcomposite-dev \
libtiff5-dev \
libgtk2.0-dev \
libgtk2.0 \
libtiff5 \
libxtst6 \
libxtst-dev
ENV LD_LIBRARY_PATH="/fiberfox/MITK-Diffusion-2018.09.99-linux64/bin":"/fiberfox/MITK-Diffusion-2018.09.99-linux64/bin/plugins":$LD_LIBRARY_PATH \
QT_QPA_PLATFORM_PLUGIN_PATH=/fiberfox/MITK-Diffusion-2018.09.99-linux64/bin
COPY run_fiberfox.sh /usr/local/bin/docker-entrypoint.sh
RUN ln -s /usr/local/bin/docker-entrypoint.sh / \
&& mkdir /out
ENTRYPOINT ["docker-entrypoint.sh"]