-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
89 lines (66 loc) · 2.68 KB
/
Dockerfile
File metadata and controls
89 lines (66 loc) · 2.68 KB
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
FROM ubuntu:latest
MAINTAINER David Meunier "david.meunier@univ-amu.fr"
RUN apt-get update
RUN apt-get install -y git python3-pip libpng-dev libfreetype6-dev libxft-dev libblas-dev liblapack-dev libatlas-base-dev gfortran libxml2-dev libxslt1-dev wget
#RUN apt-get install -y python3-tk
#RUN apt-get install libx11-6 libxext6 libxt6 # matlab
RUN pip3 install xvfbwrapper psutil numpy scipy matplotlib statsmodels pandas networkx==1.9
RUN pip3 install mock prov click funcsigs pydotplus pydot rdflib pbr nibabel packaging pytest nipype
RUN pip3 scikit-image
RUN mkdir -p /opt/packages/
#ENV DISPLAY :0
#
# ######### ephypype
# WORKDIR /opt/packages/
# RUN git clone https://github.com/davidmeunier79/ephypype.git
# WORKDIR /opt/packages/ephypype
# RUN python setup.py develop
################### Radatools
WORKDIR /opt/packages/
RUN wget https://webs-deim.urv.cat/~sergio.gomez/download.php?f=radatools-4.0-linux64.tar.gz
#https://webs-deim.urv.cat/~sergio.gomez/download.php?f=radatools-5.2-linux64.tar.gz
RUN tar -xvf download.php\?f\=radatools-4.0-linux64.tar.gz
ENV RADA_PATH=/opt/packages/radatools-4.0-linux64
ENV PATH=$PATH:$RADA_PATH/Network_Tools
ENV PATH=$PATH:$RADA_PATH/Network_Properties
ENV PATH=$PATH:$RADA_PATH/Communities_Detection
ENV PATH=$PATH:$RADA_PATH/Communities_Tools
################### NiftiReg
RUN apt-get install --yes --no-install-recommends \
ca-certificates cmake gcc g++ git make \
&& git clone https://github.com/KCL-BMEIS/niftyreg.git /tmp/niftyreg-src \
&& mkdir /tmp/niftyreg-build \
&& cd /tmp/niftyreg-build \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/niftyreg /tmp/niftyreg-src \
&& make \
&& make install
ENV PATH=/opt/niftyreg/bin:$PATH
# ########## nipype
# RUN mkdir -p /opt/packages/
#
# WORKDIR /opt/packages/
# RUN git clone https://github.com/davidmeunier79/nipype.git
#
# WORKDIR /opt/packages/nipype
# RUN python3 setup.py develop
#
########### graphpype
WORKDIR /opt/packages/
ADD https://api.github.com/repos/davidmeunier79/graphpype/git/refs/heads/Dockerhub_version_0.0.8 version.json
RUN git clone https://github.com/davidmeunier79/graphpype.git
WORKDIR /opt/packages/graphpype
RUN git checkout Dockerhub_version_0.0.8 # to be modified
RUN python3 setup.py develop
RUN echo $(which python) && \
echo $(which python3) && \
ln -s /usr/bin/python3 /usr/bin/python
RUN python -c "import sys; print(sys.version)"
RUN python -c "import graphpype; print(graphpype.__path__)"
RUN python -c "import graphpype; print(graphpype.__version__)"
################################################## Finishing
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf \
/tmp/hsperfdata* \
/var/*/apt/*/partial \
/var/log/apt/term*