# docker build --progress plain . # FAILS (default args are Ubuntu 22.04 and OpenVINO 2024.3.0) # Working combinations: # Ubuntu 20.04 and all OpenVINO 2024.x versions -> docker build --progress plain --build-arg UBUNTU_YEAR=20 --build-arg OPENVINO_VERSION= # Ubuntu 22.04 and OpenVINO 2024.0.0 -> docker build --progress plain --build-arg UBUNTU_YEAR=22 --build-arg OPENVINO_VERSION=2024.0.0 # Failing: # Ubuntu 22.04 and OpenVINO 2024.1.0 or newer -> docker build --progress plain --build-arg UBUNTU_YEAR=22 --build-arg OPENVINO_VERSION=2024.[1|2|3].0 # Ubuntu 24.04 and OpenVINO 2024.1.0 or newer -> docker build --progress plain --build-arg UBUNTU_YEAR=24 --build-arg OPENVINO_VERSION=2024.[1|2|3].0 ARG UBUNTU_YEAR=22 FROM ubuntu:${UBUNTU_YEAR}.04 ARG UBUNTU_YEAR ARG OPENVINO_VERSION=2024.3.0 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ wget sudo gnupg \ && rm -rf /var/lib/apt/lists/* RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ && sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ && env && echo "deb https://apt.repos.intel.com/openvino/2024 ubuntu${UBUNTU_YEAR} main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2024.list \ && rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB RUN apt-get update && apt-get install -y \ openvino-${OPENVINO_VERSION} \ && rm -rf /var/lib/apt/lists/* # print python version RUN python3 --version # output contents of python package RUN dpkg -L python3-openvino-${OPENVINO_VERSION} | head -n 21 # test functionality of python binding RUN python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py