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

fixes

parent 7b7c8850
......@@ -127,7 +127,7 @@ RUN apt-get update && \
WORKDIR /tmp
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*.*" -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 \
# 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 {} \;
......@@ -153,11 +152,8 @@ 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
# Add video group
RUN usermod -aG video root
WORKDIR ${INTEL_OPENVINO_DIR}
......
# @(#) 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
docker run \
-d \
-ti \
--privileged \
--env="PS1=$myname> "\
--publish-all=true \
--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