Commit 7b7c8850 authored by Ukhu's avatar Ukhu
Browse files

Basic 2021.1.110

parent cee4dde8
......@@ -9,6 +9,7 @@ WORKDIR /
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
# Dependencies
ARG DEPENDENCIES="autoconf \
automake \
......@@ -46,15 +47,18 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# Openvino Version and copy from host
ARG openvinoTar=l_openvino_toolkit_p_2020.4.287
ENV INSTALL_DIR=/opt/intel/openvino
ARG openvinoTar=l_openvino_toolkit_p_2021.1.110
ENV INTEL_OPENVINO_DIR=/opt/intel/openvino_2021.1.110
ARG TEMP_DIR=/tmp/openvino_installer
WORKDIR ${TEMP_DIR}
COPY ./$openvinoTar.tgz $TEMP_DIR
# install product by installation script
ENV INTEL_OPENVINO_DIR /opt/intel/openvino
ENV TZ=Europe/Kiev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN tar -xzf ${TEMP_DIR}/*.tgz --strip 1
RUN sed -i 's/decline/accept/g' silent.cfg && \
${TEMP_DIR}/install.sh -s silent.cfg && \
......@@ -123,6 +127,7 @@ RUN apt-get update && \
WORKDIR /tmp
RUN ${PYTHON} -m pip install --no-cache-dir setuptools && \
pip3 install tensorflow==2.0.0b1 & \
find "${INTEL_OPENVINO_DIR}/" -type f -name "*requirements*.*" -path "*/${PYTHON}/*" -exec ${PYTHON} -m pip install --no-cache-dir -r "{}" \; && \
find "${INTEL_OPENVINO_DIR}/" -type f -name "*requirements*.*" -not -path "*/post_training_optimization_toolkit/*" -not -name "*windows.txt" -not -name "*ubuntu16.txt" -not -path "*/python3*/*" -not -path "*/python2*/*" -exec ${PYTHON} -m pip install --no-cache-dir -r "{}" \;
......@@ -139,11 +144,20 @@ RUN if [ -f requirements.txt ]; then \
# Post-installation cleanup and setting up OpenVINO environment variables
RUN if [ -f "${INTEL_OPENVINO_DIR}"/bin/setupvars.sh ]; then \
printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" >> /home/openvino/.bashrc; \
printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" >> /root/.bashrc; \
fi;
RUN find "${INTEL_OPENVINO_DIR}/" -name "*.*sh" -type f -exec dos2unix {} \;
RUN ${INTEL_OPENVINO_DIR}/deployment_tools/demo/demo_benchmark_app.sh
RUN ln -s ${INTEL_OPENVINO_DIR} /opt/intel/openvino
# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU
RUN useradd -ms /bin/bash -G video,users,sudo openvino && \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nopasswd && \
chown openvino -R /home/openvino
USER openvino
WORKDIR ${INTEL_OPENVINO_DIR}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment