Commit 90b2dfbc authored by TigerLake's avatar TigerLake
Browse files

fixes

parent 7b7c8850
...@@ -127,7 +127,7 @@ RUN apt-get update && \ ...@@ -127,7 +127,7 @@ RUN apt-get update && \
WORKDIR /tmp WORKDIR /tmp
RUN ${PYTHON} -m pip install --no-cache-dir setuptools && \ RUN ${PYTHON} -m pip install --no-cache-dir setuptools && \
pip3 install tensorflow==2.0.0b1 & \ ${PYTHON} -m pip 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*.*" -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 "{}" \; 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 "{}" \;
...@@ -144,7 +144,6 @@ RUN if [ -f requirements.txt ]; then \ ...@@ -144,7 +144,6 @@ RUN if [ -f requirements.txt ]; then \
# Post-installation cleanup and setting up OpenVINO environment variables # Post-installation cleanup and setting up OpenVINO environment variables
RUN if [ -f "${INTEL_OPENVINO_DIR}"/bin/setupvars.sh ]; then \ 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; \ printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" >> /root/.bashrc; \
fi; fi;
RUN find "${INTEL_OPENVINO_DIR}/" -name "*.*sh" -type f -exec dos2unix {} \; RUN find "${INTEL_OPENVINO_DIR}/" -name "*.*sh" -type f -exec dos2unix {} \;
...@@ -153,11 +152,8 @@ RUN ${INTEL_OPENVINO_DIR}/deployment_tools/demo/demo_benchmark_app.sh ...@@ -153,11 +152,8 @@ RUN ${INTEL_OPENVINO_DIR}/deployment_tools/demo/demo_benchmark_app.sh
RUN ln -s ${INTEL_OPENVINO_DIR} /opt/intel/openvino 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 # Add video group
RUN useradd -ms /bin/bash -G video,users,sudo openvino && \ RUN usermod -aG video root
echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nopasswd && \
chown openvino -R /home/openvino
USER openvino
WORKDIR ${INTEL_OPENVINO_DIR} WORKDIR ${INTEL_OPENVINO_DIR}
......
# @(#) run with coherent naming # @(#) 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,7 @@ set -x ...@@ -6,6 +6,7 @@ set -x
docker run \ docker run \
-d \ -d \
-ti \ -ti \
--privileged \
--env="PS1=$myname> "\ --env="PS1=$myname> "\
--publish-all=true \ --publish-all=true \
--hostname=$myname \ --hostname=$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