Commit 3846edf9 authored by GONZALES ZUNIGA Juan Diego's avatar GONZALES ZUNIGA Juan Diego
Browse files

Rework to build form github

parent 715b8c61
# @(#) run with coherent naming
docker build --tag=local/dockervino:benchmark_R3 . #| tee openvinobuild.log
docker build --tag=local/dockervino:benchmark . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:benchmark_R3
myimage=local/dockervino:benchmark
myname=benchmark
###### Settings ########
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:debug_R3 . #| tee openvinobuild.log
docker build --tag=local/dockervino:debug . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:debug_R3
myimage=local/dockervino:debug
myname=debug
#################################
......
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"]
# @(#) run with coherent naming
docker build --tag=local/dockervino:demo_R3 . #| tee openvinobuild.log
docker build --tag=local/dockervino:demo . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:demo_R3
myimage=local/dockervino:demo
myname=dockervinodemo
#################################
......
......@@ -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
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase1_R3 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase1 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:phase1_R3
myimage=local/dockervino:phase1
myname=dockervinoph1
set -x
......
# 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
......
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase2_R3 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase2 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:phase2_R3
myimage=local/dockervino:phase2
myname=dockervinoph2
set -x
......
# Compilation of examples for openVino
# Compilation demo_squeezenet_download_conver_run and security_barrier_camera
# Copy 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"]
# @(#) run with coherent naming
docker build --tag=local/dockervino:phase3_R3 . #| tee openvinobuild.log
docker build --tag=local/dockervino:phase3 . #| tee openvinobuild.log
#!/bin/bash
myimage=local/dockervino:phase3_R3
myimage=local/dockervino:phase3
myname=dockervinoph3
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