Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GONZALES ZUNIGA Juan Diego
dockervino
Commits
90b2dfbc
Commit
90b2dfbc
authored
Oct 08, 2020
by
TigerLake
Browse files
fixes
parent
7b7c8850
Changes
3
Hide whitespace changes
Inline
Side-by-side
phase1/Dockerfile
View file @
90b2dfbc
...
...
@@ -127,7 +127,7 @@ RUN apt-get update && \
WORKDIR
/tmp
RUN ${
PYTHON
}
-m
pip
install
--no-cache-dir
setuptools
&&
\
pip
3
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}
...
...
phase1/buildcmd
View file @
90b2dfbc
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase1 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase1
--network=host
. #| tee openvinobuild.log
phase1/runcmd
View file @
90b2dfbc
...
...
@@ -6,6 +6,7 @@ set -x
docker run
\
-d
\
-ti
\
--privileged
\
--env
=
"PS1=
$myname
> "
\
--publish-all
=
true
\
--hostname
=
$myname
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment