Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVINO 2023.3.0 (#63) #64

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 15 additions & 25 deletions tools/gen_openvino_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def dockerfile_for_linux(output_file):
# Build instructions:
# https://github.com/openvinotoolkit/openvino/wiki/BuildingForLinux

# The linux part is building from source, while the windows part is using
# pre-build archive.
# TODO: Unify build steps between linux and windows.

ARG OPENVINO_VERSION
ARG OPENVINO_BUILD_TYPE
WORKDIR /workspace
Expand Down Expand Up @@ -123,37 +127,23 @@ def dockerfile_for_windows(output_file):
df += """
SHELL ["cmd", "/S", "/C"]

# Build instructions:
# https://github.com/openvinotoolkit/openvino/wiki/BuildingForWindows
# Install instructions:
# https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_from_archive_windows.html

# The windows part is using pre-build archive, while the linux part is building
# from source.
# TODO: Unify build steps between windows and linux.

ARG OPENVINO_VERSION
ARG OPENVINO_BUILD_TYPE
WORKDIR /workspace

# When git cloning it is important that we include '-b' and branchname
# so that this command is re-run when the branch changes, otherwise it
# will be cached by docker and continue using an old clone/branch. We
# are relying on the use of a release branch that does not change once
# it is released (if a patch is needed for that release we expect
# there to be a new version).
RUN git clone -b %OPENVINO_VERSION% https://github.com/openvinotoolkit/openvino.git

WORKDIR /workspace/openvino
RUN git submodule update --init --recursive

WORKDIR /workspace/openvino/build
ARG VS_DEVCMD_BAT="call \BuildTools\VC\Auxiliary\Build\vcvars64.bat"
ARG CMAKE_BAT="cmake \
-DCMAKE_BUILD_TYPE=%OPENVINO_BUILD_TYPE% \
-DCMAKE_INSTALL_PREFIX=C:/workspace/install \
-DENABLE_TESTS=OFF \
.."
ARG CMAKE_BUILD_BAT="cmake --build . --config %OPENVINO_BUILD_TYPE% --target install --verbose -j8"
RUN powershell Set-Content 'build.bat' -value '%VS_DEVCMD_BAT%','%CMAKE_BAT%','%CMAKE_BUILD_BAT%'
RUN build.bat
WORKDIR /workspace
RUN curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/windows/w_openvino_toolkit_windows_2023.3.0.13775.ceeafaf64f3_x86_64.zip --output ov.zip
RUN tar -xf ov.zip
RUN ren w_openvino_toolkit_windows_2023.3.0.13775.ceeafaf64f3_x86_64 install

WORKDIR /opt/openvino
RUN xcopy /I /E \\workspace\\openvino\\licensing LICENSE.openvino
RUN xcopy /I /E \\workspace\\install\\docs\\licensing LICENSE.openvino
RUN mkdir include
RUN xcopy /I /E \\workspace\\install\\runtime\\include\\ie include
RUN xcopy /I /E \\workspace\\install\\runtime\\include\\ngraph include\\ngraph
Expand Down
Loading