* Add ENABLE_WHEEL=ON by default
* Adjust CMake options for GitHub checks
* Add ov_check_pip_package and ov_check_pip_packages CMake functions
* revert options
* skip empty lines
* formatting
* fix condition
* check for patchelf
* Add numpy dependency to condition
* Fix error:
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (gast 0.4.0 (c:\hostedtoolcache\windows\python\3.7.6\x64\lib\site-packages), Requirement.parse('gast==0.3.3; platform_system == "Windows"'), {'paddlepaddle'})
* set DENABLE_WHEEL=OFF for openvino-onnx docker
* Supported newer versions of shellcheck
* Don't use excluded sources
* Improved NCC process of clang search
* Fixes
* A lot of updates
* Fixes after 2 PRs merge
* Fixed build
* Fixes
* Relaxed cython version a bit
* Try non-pip cython as well
* Fixed MacOsX
* Disable pybind usage for MO tests as well
* Added descriptive warning messages
* Fixed compilation on Windows
* Support for cmake < 3.15
* FIxed Windows linkage
* Fixed review comments
Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
83 lines
2.0 KiB
Docker
83 lines
2.0 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
LABEL version=2021.03.30.1
|
|
|
|
# Build configuration arguments
|
|
ARG BUILD_TYPE=Release
|
|
|
|
ARG http_proxy
|
|
ARG https_proxy
|
|
ENV http_proxy ${http_proxy}
|
|
ENV https_proxy ${https_proxy}
|
|
|
|
ENV CI=true
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Install base dependencies
|
|
RUN apt-get update && apt-get install -y locales && apt-get clean autoclean && apt-get autoremove -y
|
|
|
|
# Set the locale to en_US.UTF-8
|
|
RUN locale-gen en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US:en
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
RUN apt-get update && apt-get -y --no-install-recommends install \
|
|
# OpenVINO dependencies
|
|
autoconf \
|
|
automake \
|
|
build-essential \
|
|
ninja-build \
|
|
cmake \
|
|
curl \
|
|
git \
|
|
libtool \
|
|
ocl-icd-opencl-dev \
|
|
pkg-config \
|
|
unzip \
|
|
libtbb-dev \
|
|
libpugixml-dev \
|
|
wget \
|
|
# Python dependencies
|
|
python3 \
|
|
python3-pip \
|
|
python3-dev \
|
|
python3-virtualenv \
|
|
cython3 \
|
|
tox \
|
|
# ONNX dependencies
|
|
git-lfs \
|
|
protobuf-compiler \
|
|
libprotobuf-dev && \
|
|
apt-get clean autoclean && \
|
|
apt-get autoremove -y
|
|
|
|
# Build OpenVINO
|
|
COPY . /openvino/
|
|
WORKDIR /openvino/build
|
|
RUN cmake .. \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
|
|
-DENABLE_INTEL_MYRIAD_COMMON=OFF \
|
|
-DENABLE_INTEL_GNA=OFF \
|
|
-DENABLE_CPPLINT=OFF \
|
|
-DENABLE_NCC_STYLE=OFF \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_INTEL_CPU=ON \
|
|
-DENABLE_INTEL_GPU=OFF \
|
|
-DENABLE_PROFILING_ITT=OFF \
|
|
-DENABLE_SAMPLES=OFF \
|
|
-DENABLE_OV_PADDLE_FRONTEND=OFF \
|
|
-DENABLE_OV_TF_FRONTEND=OFF \
|
|
-DENABLE_OPENVINO_DEBUG=OFF \
|
|
-DCMAKE_INSTALL_PREFIX=/openvino/dist
|
|
RUN ninja install
|
|
|
|
# Run tests via tox
|
|
WORKDIR /openvino/src/bindings/python
|
|
ENV OpenVINO_DIR=/openvino/dist/runtime/cmake
|
|
ENV LD_LIBRARY_PATH=/openvino/dist/runtime/lib:/openvino/dist/runtime/3rdparty/tbb/lib
|
|
ENV PYTHONPATH=/openvino/bin/intel64/${BUILD_TYPE}/python_api/python3.8:${PYTHONPATH}
|
|
CMD tox
|