This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
/
Dockerfile
65 lines (57 loc) · 1.92 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
# Dockerfile for an Ubuntu environment for ELL for Continuous Integration
FROM continuumio/miniconda3:latest
RUN apt-get update \
&& apt-get install -y \
build-essential \
curl \
gcc \
git \
libedit-dev \
zlibc \
zlib1g \
zlib1g-dev \
libopenblas-dev \
doxygen \
unzip \
&& apt-get clean all
# LLVM
RUN echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main >> /etc/apt/sources.list
RUN echo deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main >> /etc/apt/sources.list
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
RUN apt-get update \
&& apt-get install -y \
llvm-8 \
&& apt-get clean all
# SWIG
RUN curl -O --location http://prdownloads.sourceforge.net/swig/swig-4.0.0.tar.gz \
&& tar zxvf swig-4.0.0.tar.gz \
&& cd swig-4.0.0 \
&& ./configure --without-pcre \
&& make \
&& make install
# OpenCV
RUN apt-get update \
&& apt-get install -y \
libgl1-mesa-glx
RUN export PATH="/opt/conda/bin:${PATH}" \
&& conda install --yes --quiet -c conda-forge opencv
# CNTK
RUN /bin/bash -c "source activate base" \
&& pip install --upgrade pip \
&& pip install --no-cache-dir --ignore-installed \
cntk
# OpenMPI
RUN curl -o openmpi-1.10.3.tar.gz -L https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.3.tar.gz \
&& tar zxvf openmpi-1.10.3.tar.gz \
&& cd openmpi-1.10.3 \
&& ./configure --prefix=/usr/local/mpi \
&& make -j all \
&& make install
# LD path to libpython3.6m.so
RUN echo /opt/conda/lib >> /etc/ld.so.conf.d/conda.conf && \
ldconfig
# cmake
RUN curl -o cmake-3.11.2-Linux-x86_64.sh -L https://cmake.org/files/v3.11/cmake-3.11.2-Linux-x86_64.sh \
&& chmod +x cmake-3.11.2-Linux-x86_64.sh \
&& ./cmake-3.11.2-Linux-x86_64.sh --skip-license \
&& ln -s /opt/cmake-3.11.2-Linux-x86_64/bin/* /usr/local/bin