|
| 1 | +# Dockerfiles with [Intel® Distribution of OpenVINO™ toolkit](https://github.com/openvinotoolkit/openvino) |
| 2 | + |
| 3 | +This repository folder contains Dockerfiles to build an docker image with the Intel® Distribution of OpenVINO™ toolkit. |
| 4 | +You can use Docker CI framework to build an image, please follow [Get Started with DockerHub CI for Intel® Distribution of OpenVINO™ toolkit](../get-started.md). |
| 5 | + |
| 6 | +1. [Supported Operating Systems for Docker image](#supported-operating-systems-for-docker-image) |
| 7 | +2. [Supported devices and distributions](#supported-devices-and-distributions) |
| 8 | +3. [Where to get OpenVINO package](#where-to-get-openvino-package) |
| 9 | +4. [How to build](#how-to-build) |
| 10 | +5. [Prebuilt images](#prebuilt-images) |
| 11 | +6. [How to run a container](#how-to-run-a-container) |
| 12 | + |
| 13 | +## Supported Operating Systems for Docker image |
| 14 | + |
| 15 | + - `ubuntu18` folder (Ubuntu* 18.04 LTS) |
| 16 | + - `ubuntu20` folder (Ubuntu* 20.04 LTS) |
| 17 | + - `rhel8` folder (RHEL* 8) |
| 18 | + - `winserver2019` folder (Windows* Server Core base OS LTSC 2019) |
| 19 | + - `windows20h2` folder (Windows* OS 20H2) |
| 20 | + |
| 21 | +*Note*: `dl-workbench` folder contains Dockerfiles for OpenVINO™ Deep Learning Workbench. |
| 22 | + |
| 23 | +## Supported devices and distributions |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + **Devices:** |
| 28 | + - CPU |
| 29 | + - GPU |
| 30 | + - VPU (NCS2) |
| 31 | + - HDDL (VPU HDDL) (_Prerequisite_: run HDDL daemon on the host machine, follow the [configuration guide for HDDL device](../install_guide_vpu_hddl.md)) |
| 32 | + |
| 33 | + OpenVINO documentation for [supported devices](https://docs.openvino.ai/latest/openvino_docs_IE_DG_supported_plugins_Supported_Devices.html). |
| 34 | + |
| 35 | + **Distributions:** |
| 36 | + |
| 37 | + - **runtime**: IE core, nGraph, plugins |
| 38 | + - **dev**: IE core, nGraph, plugins, samples, Python dev tools: Model Optimizer, Post training Optimization tool, Accuracy checker, Open Model Zoo tools (downloader, converter), OpenCV |
| 39 | + - **base** (only for CPU): IE core, nGraph |
| 40 | + |
| 41 | +You can generate Dockerfile with your settings, please follow the [DockerHub CI documentation](../get-started.md). |
| 42 | + * _runtime_ and _dev_ distributions are based on archive package of OpenVINO product. You can just remove unnecessary parts. |
| 43 | + * _base_ distribution is created by [OpenVINO™ Deployment Manager](https://docs.openvino.ai/latest/openvino_docs_install_guides_deployment_manager_tool.html). |
| 44 | + |
| 45 | +## Where to get OpenVINO package |
| 46 | + |
| 47 | +You can get OpenVINO distribution packages (runtime, dev) directly from [public storage](https://storage.openvinotoolkit.org/repositories/openvino/packages/). |
| 48 | +For example: |
| 49 | +* take 2022.2 > linux > ubuntu20 `l_openvino_toolkit_ubuntu20_2022.2.0.7713.af16ea1d79a_x86_64.tgz` package. |
| 50 | + |
| 51 | +## How to build |
| 52 | + |
| 53 | +**Note:** Please use Docker CI framework release version corresponding to the version of OpenVINO™ Toolkit that you need to build. |
| 54 | + |
| 55 | +* Base image with CPU only: |
| 56 | + |
| 57 | +You can use Docker CI framework to build an image, please follow [Get Started with DockerHub CI for Intel® Distribution of OpenVINO™ toolkit](../get-started.md). |
| 58 | + |
| 59 | +```bash |
| 60 | +python3 docker_openvino.py build --file "dockerfiles/ubuntu18/openvino_c_base_2022.2.0.dockerfile" -os ubuntu18 -dist base -p 2022.2.0 |
| 61 | +``` |
| 62 | + |
| 63 | +---------------- |
| 64 | + |
| 65 | +* Dev/runtime image: |
| 66 | + |
| 67 | +You can use Docker CI framework to build an image, please follow [Get Started with DockerHub CI for Intel® Distribution of OpenVINO™ toolkit](../get-started.md). |
| 68 | + |
| 69 | +```bash |
| 70 | +python3 docker_openvino.py build --file "dockerfiles/ubuntu18/openvino_cgvh_dev_2022.2.0.dockerfile" -os ubuntu18 -dist dev -p 2022.2.0 |
| 71 | +``` |
| 72 | +For runtime distribution, please set appropriate `-dist` and `--file` options. |
| 73 | + |
| 74 | +Or via Docker Engine directly, but you need specify `package_url` argument (see [Where to get OpenVINO package section](#where-to-get-openvino-package)): |
| 75 | +```bash |
| 76 | +docker build --build-arg package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/linux/l_openvino_toolkit_ubuntu18_2022.2.0.7713.af16ea1d79a_x86_64.tgz \ |
| 77 | +-t ubuntu18_dev:2022.2.0 -f dockerfiles/ubuntu18/openvino_cgvh_dev_2022.2.0.dockerfile . |
| 78 | +``` |
| 79 | +---------------- |
| 80 | + |
| 81 | +* Custom image with CPU, iGPU, VPU support |
| 82 | +You can use Dockerfiles from the `build_custom` folders to build a custom version of OpenVINO™ from source code for development. To learn more, follow: |
| 83 | + * [Build custom Intel® Distribution of OpenVINO™ toolkit Docker image on Ubuntu 18](ubuntu18/build_custom/README.md) |
| 84 | + * [Build custom Intel® Distribution of OpenVINO™ toolkit Docker image on Ubuntu 20](ubuntu20/build_custom/README.md) |
| 85 | + |
| 86 | +## Prebuilt images |
| 87 | + |
| 88 | +Prebuilt images are available on: |
| 89 | +- [Docker Hub](https://hub.docker.com/u/openvino) |
| 90 | +- [Red Hat* Quay.io](https://quay.io/organization/openvino) |
| 91 | +- [Red Hat* Ecosystem Catalog (runtime image)](https://catalog.redhat.com/software/containers/intel/openvino-runtime/606ff4d7ecb5241699188fb3) |
| 92 | +- [Red Hat* Ecosystem Catalog (development image)](https://catalog.redhat.com/software/containers/intel/openvino-dev/613a450dc9bc35f21dc4a1f7) |
| 93 | +- [Azure* Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/intel_corporation.openvino) |
| 94 | + |
| 95 | + |
| 96 | +## How to run a container |
| 97 | + |
| 98 | +Please follow [Run a container](../get-started.md#run-a-container) section in DockerHub CI getting started guide. |
| 99 | + |
| 100 | +## Documentation |
| 101 | + |
| 102 | +* [Install Intel® Distribution of OpenVINO™ toolkit for Linux* from a Docker* Image](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_docker_linux.html) |
| 103 | +* [Install Intel® Distribution of OpenVINO™ toolkit for Windows* from Docker* Image](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_docker_windows.html) |
| 104 | +* [Official Dockerfile reference](https://docs.docker.com/engine/reference/builder/) |
| 105 | + |
| 106 | +--- |
| 107 | +\* Other names and brands may be claimed as the property of others. |
0 commit comments