-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (53 loc) · 2.18 KB
/
Copy pathDockerfile
File metadata and controls
57 lines (53 loc) · 2.18 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
#https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_docker_linux.html
FROM ubuntu:18.04
USER root
WORKDIR /
RUN useradd -ms /bin/bash openvino && \
chown openvino -R /home/openvino
ARG INSTALL_DIR=/opt/intel/openvino
ARG DEPENDENCIES="autoconf \
automake \
build-essential \
cmake \
cpio \
curl \
gnupg2 \
libdrm2 \
libglib2.0-0 \
lsb-release \
libgtk-3-0 \
libtool \
python3-pip \
python3-dev \
sudo \
udev \
unzip"
RUN apt-get update && \
apt-get install -y --no-install-recommends ${DEPENDENCIES} && \
rm -rf /var/lib/apt/lists/*
#ARG DOWNLOAD_LINK=http://registrationcenter-download.intel.com/akdlm/irc_nas/13231/l_openvino_toolkit_p_2019.0.000.tgz
ENV pattern="COMPONENTS=DEFAULTS"
ENV replacement="COMPONENTS=intel-openvino-ie-sdk-ubuntu-bionic__x86_64; \
intel-openvino-ie-rt-cpu-ubuntu-bionic__x86_64; \
intel-openvino-ie-rt-gpu-ubuntu-bionic__x86_64; \
intel-openvino-ie-rt-vpu-ubuntu-bionic__x86_64; \
intel-openvino-ie-rt-hddl-ubuntu-bionic__x86_64; \
intel-openvino-model-optimizer__x86_64;intel-openvino-opencv-lib-ubuntu-bionic__x86_64"
COPY l_openvino_toolkit_p_2020.2.120.tgz /tmp
WORKDIR /tmp
RUN pip3 install setuptools wheel
RUN tar -xzf ./*.tgz && \
cd l_openvino_toolkit* && \
sed -i "s/$pattern/$replacement/" silent.cfg && \
sed -i 's/decline/accept/g' silent.cfg && \
./install.sh -s silent.cfg --install_dir $INSTALL_DIR && \
rm -rf /tmp/*
# install dependencies
WORKDIR $INSTALL_DIR/install_dependencies
RUN /bin/bash _install_all_dependencies.sh &&\
$INSTALL_DIR/deployment_tools/model_optimizer/install_prerequisites/install_prerequisites.sh
USER openvino
# Build Samples
RUN /bin/bash $INSTALL_DIR/inference_engine/samples/c/build_samples.sh && \
/bin/bash $INSTALL_DIR/inference_engine/samples/cpp/build_samples.sh
ENV INSTALLDIR /opt/intel/openvino