Commit b7966865 authored by Ukhu's avatar Ukhu
Browse files

Network host and INSTALL_DIR changed

parent cee4dde8
# @(#) run with coherent naming
docker build --tag=local/dockervino:benchmark . #| tee openvinobuild.log
docker build --tag=local/dockervino:benchmark --network=host . #| tee openvinobuild.log
# @(#) run with coherent naming
docker build --tag=local/dockervino:debug . #| tee openvinobuild.log
docker build --tag=local/dockervino:debug --network=host . #| tee openvinobuild.log
......@@ -47,14 +47,12 @@ RUN apt-get update && \
# Openvino Version and copy from host
ARG openvinoTar=l_openvino_toolkit_p_2020.4.287
ENV INSTALL_DIR=/opt/intel/openvino
ENV INTEL_OPENVINO_DIR=/opt/intel/openvino
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
RUN tar -xzf ${TEMP_DIR}/*.tgz --strip 1
RUN sed -i 's/decline/accept/g' silent.cfg && \
${TEMP_DIR}/install.sh -s silent.cfg && \
......@@ -144,7 +142,7 @@ RUN if [ -f "${INTEL_OPENVINO_DIR}"/bin/setupvars.sh ]; then \
RUN find "${INTEL_OPENVINO_DIR}/" -name "*.*sh" -type f -exec dos2unix {} \;
RUN ${INTEL_OPENVINO_DIR}/deployment_tools/demo/demo_benchmark_app.sh
RUN usermod -aG video root
WORKDIR ${INTEL_OPENVINO_DIR}
CMD ["/bin/bash"]
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase1 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase1 --network=host . #| tee openvinobuild.log
......@@ -6,6 +6,8 @@ set -x
docker run \
-d \
-ti \
--privileged \
--net=host \
--env="PS1=$myname> "\
--publish-all=true \
--hostname=$myname \
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase2 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase2 --network=host . #| tee openvinobuild.log
......@@ -6,6 +6,7 @@ set -x
docker run \
-d \
-ti \
--privileged \
--net=host \
--env="DISPLAY" \
--env="PS1=$myname> "\
......
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