Commit 86ead756 authored by GONZALES ZUNIGA Juan Diego's avatar GONZALES ZUNIGA Juan Diego
Browse files

Initial commit

parents
# Debug Docker image after installation
# Execute demo_security_barrier_camera.sh
FROM local/openvino:phase2
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
RUN apt install -y x11-utils vim strace
WORKDIR /root/inference_engine_samples/intel64/Release
RUN python3 /opt/intel/computer_vision_sdk/deployment_tools/model_downloader/downloader.py --name ssd300 --output_dir /root/openvino_models/FP32
RUN python3 /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/mo.py --input_model /root/openvino_models/FP32/object_detection/common/ssd/300/caffe/ssd300.caffemodel --output_dir /root/openvino_models/ir/ssd300/FP32
COPY ./salsa.mp4 /root/
ENTRYPOINT /bin/sh
CMD /bin/sh
# @(#) run with coherent naming
docker build --tag=local/openvino:debug . #| tee openvinobuild.log
myimage=local/openvino:debug
myname=openvino
set -x
docker run \
-d \
-ti \
--net=host \
--env="DISPLAY" \
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--device=/dev/video0:/dev/video0 \
--cap-add SYS_PTRACE \
--env="PS1=$myname> "\
--publish-all=true \
--hostname=$myname \
--name $myname \
--cidfile=/tmp/monitcont.id \
$myimage /bin/bash
contid=$(cat /tmp/monitcont.id; rm -f /tmp/monitcont.id)
set +x
$debug docker logs $contid
$debug docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' $1 $contid
set +x
# Basic docker installation of openVino
# Replace openvinoTar with the openvinoversion
# The openvinoTar is erased after installation
FROM ubuntu:xenial
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
ARG openvinoTar=l_openvino_toolkit_p_2018.4.420
RUN mkdir -p /home/openvino
WORKDIR /home/openvino
RUN apt-get update
RUN apt-get install -y python3.5
COPY ./$openvinoTar.tgz /home/openvino
RUN tar -zxf $openvinoTar.tgz
WORKDIR $openvinoTar
RUN sed -i 's/sudo -E//g' ./install_cv_sdk_dependencies.sh
RUN sed -i 's/apt install -y/apt install -y cpio/g' ./install_cv_sdk_dependencies.sh
RUN ./install_cv_sdk_dependencies.sh
RUN sed -i 's/ACCEPT_EULA=decline/ACCEPT_EULA=accept/g' ./silent.cfg
RUN sed -i 's/#INTEL_SW_IMPROVEMENT_PROGRAM_CONSENT=no/INTEL_SW_IMPROVEMENT_PROGRAM_CONSENT=no/g' ./silent.cfg
RUN ./install.sh --silent silent.cfg
RUN sed -i 's/$(lsb_release -r -s)/"16.04"/g' /opt/intel/computer_vision_sdk/bin/setupvars.sh
RUN /opt/intel/computer_vision_sdk/bin/setupvars.sh
RUN echo "source /opt/intel/computer_vision_sdk/bin/setupvars.sh" >> /root/.bashrc
RUN sed -i 's/sudo -E//g' /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/install_prerequisites.sh
RUN /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites/install_prerequisites.sh
WORKDIR /home/openvino
RUN rm ./$openvinoTar.tgz
RUN rm -r $openvinoTar
ENTRYPOINT /bin/sh
CMD /bin/sh
# @(#) run with coherent naming
docker build --tag=local/openvino:phase1 . #| tee openvinobuild.log
myimage=local/openvino:phase1
myname=openvino
set -x
docker run \
-d \
-ti \
--env="PS1=$myname> "\
--publish-all=true \
--hostname=$myname \
--name $myname \
-v /tmp/.X11-unix/:/tmp/.X11-unix/:ro \
--cidfile=/tmp/monitcont.id \
$myimage /bin/bash
contid=$(cat /tmp/monitcont.id; rm -f /tmp/monitcont.id)
set +x
$debug docker logs $contid
$debug docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' $1 $contid
set +x
# Compilation of examples for openVino
# Compilation demo_squeezenet_download_conver_run
FROM local/openvino:phase1
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
WORKDIR /home/openvino
RUN sed -i 's/sudo -E//g' /opt/intel/computer_vision_sdk/deployment_tools/demo/demo_squeezenet_download_convert_run.sh
RUN sed -i 's/source "/"/g' /opt/intel/computer_vision_sdk/deployment_tools/demo/demo_squeezenet_download_convert_run.sh
RUN /opt/intel/computer_vision_sdk/deployment_tools/demo/demo_squeezenet_download_convert_run.sh
RUN sed -i 's/sudo -E//g' /opt/intel/computer_vision_sdk/deployment_tools/demo/demo_security_barrier_camera.sh
ENTRYPOINT /bin/sh
CMD /bin/sh
# @(#) run with coherent naming
docker build --tag=local/openvino:phase2 . #| tee openvinobuild.log
myimage=local/openvino:phase2
myname=openvino
set -x
docker run \
-d \
-ti \
--net=host \
--env="DISPLAY" \
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--cap-add SYS_PTRACE \
--env="PS1=$myname> "\
--publish-all=true \
--hostname=$myname \
--name $myname \
--cidfile=/tmp/monitcont.id \
$myimage /bin/bash
contid=$(cat /tmp/monitcont.id; rm -f /tmp/monitcont.id)
set +x
$debug docker logs $contid
$debug docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' $1 $contid
set +x
# Docker image after installation
# Execute video on demo_security_barrier_camera.sh
FROM local/openvino:phase2
MAINTAINER jdg:juan-diego.gonzales-zuniga@kontron.com
WORKDIR /opt/intel/computer_vision_sdk/deployment_tools/demo
ENTRYPOINT /bin/sh
CMD /bin/sh
# @(#) run with coherent naming
docker build --tag=local/openvino:phase3 . #| tee openvinobuild.log
myimage=local/openvino:phase3
myname=openvino
set -x
docker run \
-d \
-ti \
--net=host \
--env="DISPLAY" \
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--cap-add SYS_PTRACE \
--env="PS1=$myname> "\
--publish-all=true \
--hostname=$myname \
--name $myname \
--cidfile=/tmp/monitcont.id \
$myimage /bin/bash
contid=$(cat /tmp/monitcont.id; rm -f /tmp/monitcont.id)
set +x
$debug docker logs $contid
$debug docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> {{(index $conf 0).HostPort}} {{end}}' $1 $contid
set +x
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