Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
3846edf9
Commit
3846edf9
authored
Nov 23, 2019
by
GONZALES ZUNIGA Juan Diego
Browse files
Rework to build form github
parent
715b8c61
Changes
16
Hide whitespace changes
Inline
Side-by-side
benchmark/buildcmd
View file @
3846edf9
# @(#) run with coherent naming
docker build --tag=local/dockervino:benchmark
_R3
. #| tee openvinobuild.log
docker build --tag=local/dockervino:benchmark . #| tee openvinobuild.log
benchmark/runcmd
View file @
3846edf9
#!/bin/bash
myimage
=
local
/dockervino:benchmark
_R3
myimage
=
local
/dockervino:benchmark
myname
=
benchmark
###### Settings ########
...
...
debug/buildcmd
View file @
3846edf9
# @(#) run with coherent naming
docker build --tag=local/dockervino:debug
_R3
. #| tee openvinobuild.log
docker build --tag=local/dockervino:debug . #| tee openvinobuild.log
debug/runcmd
View file @
3846edf9
#!/bin/bash
myimage
=
local
/dockervino:debug
_R3
myimage
=
local
/dockervino:debug
myname
=
debug
#################################
...
...
demo/Dockerfile
View file @
3846edf9
FROM
local/dockervino:phase2_R3 as phase2
FROM
local/dockervino:phase3_R3 as phase3
FROM
local/dockervino:phase3 as phase3
FROM
scratch
COPY
--from=phase2 / /
COPY
--from=phase3 /root/openvino_models/ir /root/openvino_models/ir
COPY
--from=phase3 / /
COPY
./entrypoint.sh /
CMD
["/bin/bash"]
demo/buildcmd
View file @
3846edf9
# @(#) run with coherent naming
docker build --tag=local/dockervino:demo
_R3
. #| tee openvinobuild.log
docker build --tag=local/dockervino:demo . #| tee openvinobuild.log
demo/runcmd
View file @
3846edf9
#!/bin/bash
myimage
=
local
/dockervino:demo
_R3
myimage
=
local
/dockervino:demo
myname
=
dockervinodemo
#################################
...
...
phase1/Dockerfile
View file @
3846edf9
...
...
@@ -39,13 +39,8 @@ RUN tar xf $openvinoTar.tgz && cd $openvinoTar && \
# installing openVINO dependencies
RUN
bash
$INSTALL_DIR
/install_dependencies/install_openvino_dependencies.sh
# build Inference Engine Samples
# RUN $INSTALL_DIR/deployment_tools/inference_engine/samples/build_samples.sh
# RUN $INSTALL_DIR/deployment_tools/inference_engine/demos/build_demos.sh
# install model_optimizer requisites needs tf 1.15 for kontron
RUN
sed
-i
's/>=1.2.0/==1.5.0/g'
$INSTALL_DIR
/deployment_tools/model_optimizer/requirements.txt
#RUN sed -i 's/>=1.2.0/==1.5.0/g' $INSTALL_DIR/deployment_tools/model_optimizer/requirements_tf.txt
RUN
$INSTALL_DIR
/deployment_tools/model_optimizer/install_prerequisites/install_prerequisites.sh
# init openvino env
...
...
phase1/buildcmd
View file @
3846edf9
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase1
_R3
. #| tee openvinobuild.log
docker build --tag=local/dockervino:phase1 . #| tee openvinobuild.log
phase1/runcmd
View file @
3846edf9
#!/bin/bash
myimage
=
local
/dockervino:phase1
_R3
myimage
=
local
/dockervino:phase1
myname
=
dockervinoph1
set
-x
...
...
phase2/Dockerfile
View file @
3846edf9
# Docker image after installation
# Downloads model ssd300 and creates yolov3
FROM
local/dockervino:phase1
_R3
FROM
local/dockervino:phase1
MAINTAINER
jdg:juan-diego.gonzales-zuniga@kontron.com
ARG
INSTALL_DIR=/opt/intel/openvino
ARG
downloader=$INSTALL_DIR/deployment_tools/tools/model_downloader/downloader.py
...
...
phase2/buildcmd
View file @
3846edf9
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase2
_R3
. #| tee openvinobuild.log
docker build --tag=local/dockervino:phase2 . #| tee openvinobuild.log
phase2/runcmd
View file @
3846edf9
#!/bin/bash
myimage
=
local
/dockervino:phase2
_R3
myimage
=
local
/dockervino:phase2
myname
=
dockervinoph2
set
-x
...
...
phase3/Dockerfile
View file @
3846edf9
# Compilation of examples for openVino
# Co
mpilation demo_squeezenet_download_conver_run and security_barrier_camera
# Co
py phase1, copy ir models from phase2, compile examples
FROM
local/dockervino:phase2_R3 as build
FROM
local/dockervino:phase1 as phase1
FROM
local/dockervino:phase2 as phase2
FROM
scratch
MAINTAINER
jdg:juan-diego.gonzales-zuniga@kontron.com
COPY
--from=phase1 / /
COPY
--from=phase2 /root/openvino_models/ir /root/openvino_models/ir
ARG
INSTALL_DIR=/opt/intel/openvino
WORKDIR
$INSTALL_DIR/deployment_tools
RUN
rm
-rf
open_model_zoo
...
...
@@ -12,4 +17,6 @@ RUN git clone https://github.com/Ukhupacha/open_model_zoo.git
RUN
$INSTALL_DIR
/deployment_tools/inference_engine/samples/build_samples.sh
# build demo samples
RUN
$INSTALL_DIR
/deployment_tools/inference_engine/demos/build_demos.sh
# clean
RUN
apt autoremove
-y
&&
rm
-rf
/var/lib/apt/lists/
*
CMD
["/bin/bash"]
phase3/buildcmd
View file @
3846edf9
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase3
_R3
. #| tee openvinobuild.log
docker build --tag=local/dockervino:phase3 . #| tee openvinobuild.log
phase3/runcmd
View file @
3846edf9
#!/bin/bash
myimage
=
local
/dockervino:phase3
_R3
myimage
=
local
/dockervino:phase3
myname
=
dockervinoph3
set
-x
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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