-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile-tda
81 lines (64 loc) · 2.18 KB
/
Dockerfile-tda
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
FROM ubuntu:16.04
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y \
curl \
make \
cmake \
g++ \
graphviz \
doxygen \
perl \
libboost-all-dev \
libeigen3-dev \
libgmp3-dev \
libmpfr-dev \
libtbb-dev \
locales \
libfreetype6-dev \
pkg-config \
software-properties-common
# Install python3.6
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y \
python3.6 \
python3.6-dev \
python3-pip \
python3-pytest \
python3-tk
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install \
numpy \
scikit-learn \
cython \
sphinx \
sphinxcontrib-bibtex \
matplotlib
# Install sklearn_tda
RUN apt-get install -y \
git-core
RUN git clone https://github.com/MathieuCarriere/sklearn_tda
WORKDIR sklearn_tda
# These changes maybe should be submitted to sklearn_tda
RUN sed -i "s|from vectors import|from .vectors import|g" sklearn_tda/code.py
RUN sed -i "s|from kernels import|from .kernels import|g" sklearn_tda/code.py
RUN sed -i "s|from hera_wasserstein import|from .hera_wasserstein import|g" sklearn_tda/code.py
RUN sed -i "s|from hera_bottleneck import|from .hera_bottleneck import|g" sklearn_tda/code.py
RUN python3.6 -m pip install .
# Install GCAL
WORKDIR /gcal
RUN curl -LO "https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.12/CGAL-4.12.tar.xz" \
&& tar xf CGAL-4.12.tar.xz && cd CGAL-4.12 \
&& cmake -DCGAL_HEADER_ONLY=ON -DCMAKE_BUILD_TYPE=Release . && make all install
# Install Gudhi
WORKDIR /gudhi
RUN curl -LO "https://gforge.inria.fr/frs/download.php/file/37579/2018-06-14-13-32-49_GUDHI_2.2.0.tar.gz" \
&& tar xf 2018-06-14-13-32-49_GUDHI_2.2.0.tar.gz && cd 2018-06-14-13-32-49_GUDHI_2.2.0 \
&& mkdir build && cd build && cmake -DPython_ADDITIONAL_VERSIONS=3 -DPYTHON_EXECUTABLE=/usr/bin/python3.6 ..
WORKDIR 2018-06-14-13-32-49_GUDHI_2.2.0/build
ENV GUDHIPATH /gudhi/2018-06-14-13-32-49_GUDHI_2.2.0/build/cython
ENV PYTHONPATH $GUDHIPATH:$PYTHONPATH
RUN make all test install
WORKDIR /openpose-action-recognition
COPY requirements.txt requirements.txt
RUN python3.6 -m pip install -r requirements.txt