diff --git a/README.md b/README.md index 6ef723d5..620d1487 100644 --- a/README.md +++ b/README.md @@ -1,78 +1,333 @@ -![Codestyle](https://github.com/openvinotoolkit/docker_ci/workflows/Codestyle%20checks/badge.svg?branch=master) -[![Images build check](https://github.com/openvinotoolkit/docker_ci/actions/workflows/images_build_check.yml/badge.svg?branch=master)](https://github.com/openvinotoolkit/docker_ci/actions/workflows/images_build_check.yml) +# Dockerfile templates for OpenVINO releases, for Ubuntu 20.04, Ubuntu 22.04 and RHEL 8 -# DockerHub CI for [Intel® Distribution of OpenVINO™ toolkit](https://github.com/openvinotoolkit/openvino) +## How to use, how to run -The Framework can generate a Dockerfile, build, test, and deploy an image with the Intel® Distribution of OpenVINO™ toolkit. -You can reuse available Dockerfiles, add your layer and customize the image of OpenVINO™ for your needs. +The tool does not require any non-standard Python packages, it only needs Python 3.10+ present -## Documentation +`configs/releases` directory contains configurations for all the supported releases. For example, if you want to build +`ubuntu20_dev:2024.3.0` image, then you should run this command: -* [Get Started with OpenVINO™ toolkit images](get-started.md) -* [Available Dockerfiles for OpenVINO™ toolkit](dockerfiles) -* [Generating the dockerfiles and building the images](docs/openvino_docker.md) -* [Working with OpenVINO containers](docs/containers.md) -* [Deployment with GPU accelerators](docs/accelerators.md) -* [Available Tutorials](docs/tutorials) +```bash +python3 image.py 2024.3.0/ubuntu20 --preset dev --build +``` +This will generate `Dockerfile`, build it and tag it `localhost/ubuntu20_dev:2024.3.0` -As [Docker\*](https://docs.docker.com/) is (mostly) just an isolation tool, the OpenVINO toolkit inside the container is the same as the OpenVINO toolkit installed natively on the host machine, -so the [OpenVINO documentation](https://docs.openvino.ai/) is fully applicable to containerized OpenVINO distribution. +If you add `--test` option, it will also run some tests associated with this image. -## Supported Operating Systems for Docker Base Image: +## Current support state - - Ubuntu 22.04 LTS - - Ubuntu 20.04 LTS - - RedHat UBI 8 +Os support: +* Ubuntu 20: ✅ +* Ubuntu 22: ✅ +* Ubuntu 24: ❌ (WIP) +* RHEL8: ❌ (WIP) -## Prebuilt images +OpenVINO releases support: +* before 2024.1.0 ❌ +* 2024.1.0 ❌(WIP) +* 2024.2.0 ✅ +* 2024.3.0 ✅ -Prebuilt images are available on: +Device support: +* x86-64 CPU ✅ +* aarch64 CPU ❌ +* armhf CPU ❌ +* Intel GPU ✅ +* Intel NPU ✅ -- [Docker Hub](https://hub.docker.com/u/openvino) -- [Red Hat* Quay.io](https://quay.io/organization/openvino) -- [Red Hat* Ecosystem Catalog (runtime image)](https://catalog.redhat.com/software/containers/intel/openvino-runtime/606ff4d7ecb5241699188fb3) -- [Red Hat* Ecosystem Catalog (development image)](https://catalog.redhat.com/software/containers/intel/openvino-dev/613a450dc9bc35f21dc4a1f7) -- [Azure* Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/intel_corporation.openvino) +Note that even though `Intel NPU` is said to be supported it doesn't mean that every configuration supports it, for example `Ubuntu 20` doesn't support running on `Intel NPU`, only `Ubuntu 22` (and above when applicable) support it. Similar situation exists for Arm CPUs with Intel hardware. -Note: OpenVINO development environment in a docker container is available also in [notebook repository](https://github.com/openvinotoolkit/openvino_notebooks). -It can be deployed in [OpenShift RedHat OpenData Science (RHODS)](https://github.com/openvinotoolkit/operator/blob/main/docs/notebook_in_rhods.md) +## How to work with it -## Licenses +To make it easier to test your changes, whatever they are, you might find it useful to install `pytest` package, as it makes checking all images specified in this repository as easy as running `pytest` command in the root directory. It will also let you select or deselect some tests with pytest's `-k` option. Examples: -The DockerHub CI framework for Intel® Distribution of OpenVINO™ toolkit is licensed under [Apache License Version 2.0](./LICENSE). -By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms. +This will only run dockerfile generation tests: +``` +pytest -v -k "generate" +``` -**LEGAL NOTICE: Your use of this software and any required dependent software (the "Software Package") is subject to the terms and conditions of the [software license agreements](https://software.intel.com/content/dam/develop/external/us/en/documents/intel-openvino-license-agreements.pdf) for the Software Package, which may also include notices, disclaimers, or license terms for third party or open source software included in or with the Software Package, and your use indicates your acceptance of all such terms. -Please refer to the "third-party-programs.txt" or other similarly-named text file included with the Software Package for additional details.** +This will run tests for all but "nightly" configs (to be precise: all the tests which names don't contain "nightly"): +``` +pytest -v -k "not nightly" +``` -Intel is committed to the respect of human rights and avoiding complicity in human rights abuses, a policy reflected in the [Intel Global Human Rights Principles](https://www.intel.com/content/www/us/en/policy/policy-human-rights.html). Accordingly, by accessing the Intel material on this platform you agree that you will not use the material in a product or application that causes or contributes to a violation of an internationally recognized human right. +### When new OpenVINO release -By downloading and using this container and the included software, you agree to the terms and conditions of the software license agreements located [here](https://software.intel.com/en-us/license/eula-for-intel-software-development-products). -Please, review content inside `/licensing` folder for more details. -As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses and potential fees for all software contained within. -We will have no indemnity or warranty coverage from suppliers. +1) Create a new release directory in `config/releases` called after the release version; +2) For each package build for specific os supported by this project, create a json file and use previous versions as a template. -Components: +### When new OS needs to be supported -- Ubuntu: https://hub.docker.com/_/ubuntu -- Red Hat: https://catalog.redhat.com/software/containers/ubi8/ubi/5c359854d70cc534b3a3784e -- Intel® Distribution of OpenVINO™ toolkit: https://software.intel.com/en-us/license/eula-for-intel-software-development-products +1) Create corresponding configs in the affected release directories +2) Create a base config for the new os -## Security guideline +Try to use the previous os version configs as a template if applicable. -See [SECURITY](./SECURITY.md) guide for details. +Note: some package versions are hard-coded or refer to a specific build, make sure those are also up-to-date for the new OS. -## How to Contribute +## How it works -See [CONTRIBUTING](./CONTRIBUTING.md) for details. Thank you! +### Config file structure -## Support +Configuration in this project is done with a chain of configs. Product configs are stored in `configs/releases` +directory, they inherit from base configs stored in `configs/base` which can also inherit from other base configs. +Config inheritance is defined with `_based_on` property, the config pointed at by `_based_on` will load first and then +the original config will merge with the base config. -Please report questions, issues and suggestions using: +Note: recursion is forbidden, that is, the dependency graph must have no cycles. -* [GitHub* Issues](https://github.com/openvinotoolkit/docker_ci/issues) -* The [`openvino`](https://stackoverflow.com/questions/tagged/openvino) tag on StackOverflow\* -* [Forum](https://software.intel.com/en-us/forums/computer-vision) +TODO: check for recursion, right now it will be infinitely loading if recursion appears. ---- -\* Other names and brands may be claimed as the property of others. +#### Merging rules (a.k.a. what if there are values for the same key in different configs) + +1) If either object is null (or if either is missing / is undefined) then the other is returned +2) If objects have different types then an error is returned +3) If objects are dictionaries then they are merged with this algorithm +4) otherwise the new object is returned instead of the old one (including lists!) + +TODO: ^^^ describe merging better ^^^ + +Note: lists are not merged, they replace each other + +This table shows a simplified example of how the files could be related to each other and how the merged +configuration would look like. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
common.jsonubuntu.jsonubuntu22.jsonreleases/…/ubuntu22.jsonresult (what will be read)
{{{{{
"_based_on": "common""_based_on": "ubuntu""_based_on": "ubuntu22"
"_template": "Dockerfile.j2""_template": "Dockerfile.j2"
"package": {"package": {
"url": "https://example.com""url": "https://example.com"
"version": "2024.3.0""version": "2024.3.0"
}}
"presets": {"presets": {
"runtime": ["preset_runtime", "device_gpu"]"runtime": ["preset_runtime", "device_gpu"]
}}
"base_image": "ubuntu:22.04""base_image": "ubuntu:22.04"
"components": {"components": {"components": {"components": {
"intel-level-zero-gpu": {"intel-level-zero-gpu": {
"requires": ["level-zero"]"requires": ["level-zero"]
"apt": ["https://..."]"apt": ["https://..."]
}}
"level-zero": {"level-zero": {
"apt": ["https://..."]"apt": ["https://..."]
}}
"base": {"base": {
"apt": ["curl", …]"apt": ["curl", …]
}}
"preset_runtime": {"preset_runtime": {
"requires": ["base"]"requires": ["base"]
}}
"device_gpu": {"device_gpu": {
"requires": ["intel-level-zero-gpu", ...]"requires": ["intel-level-zero-gpu", ...]
}}
}}}}}
}}}}}
diff --git a/configs/base/common.json b/configs/base/common.json new file mode 100644 index 00000000..d0db6dcb --- /dev/null +++ b/configs/base/common.json @@ -0,0 +1,80 @@ +{ + "components": { + "base": { + "requires": [ + "os_specific", + "package_specific" + ], + "tests": [ + "local_library_loadable.sh@libopenvino.so", + "local_library_loadable.sh@libopenvino_c.so" + ] + }, + "os_specific": {}, + "package_specific": {}, + "python": { + "tests": [ + "check_python_openvino.sh" + ] + }, + "device_cpu": { + "tests": [ + "local_library_loadable.sh@libopenvino_intel_cpu_plugin.so" + ] + }, + "device_gpu": { + "requires": [ + "level-zero", + "intel-level-zero-gpu", + "opencl-loader", + "intel-opencl-icd" + ], + "tests": [ + "local_library_loadable.sh@libopenvino_intel_gpu_plugin.so" + ] + }, + "device_npu": { + "requires": [ + "level-zero", + "intel-level-zero-npu" + ], + "tests": [ + "local_library_loadable.sh@libopenvino_intel_npu_plugin.so" + ] + }, + "openvino_dev": { + "requires": [ + "python", + "build_tools" + ], + "extras": "caffe,kaldi,mxnet,onnx,pytorch,tensorflow,tensorflow2", + "tests": [ + "check_omz_tools.sh@CPU", + "check_omz_tools.sh@GPU" + ] + }, + "preset_runtime": { + "requires": [ + "base", + "python", + "device_cpu", + "device_gpu", + "device_npu" + ] + }, + "preset_dev": { + "requires": [ + "preset_runtime", + "openvino_dev" + ] + } + }, + "presets": { + "runtime": [ + "preset_runtime" + ], + "dev": [ + "preset_dev" + ] + } +} \ No newline at end of file diff --git a/configs/base/rhel8.json b/configs/base/rhel8.json new file mode 100644 index 00000000..33e12e71 --- /dev/null +++ b/configs/base/rhel8.json @@ -0,0 +1,64 @@ +{ + "_based_on": "common", + "base_image": "registry.access.redhat.com/ubi8/ubi", + "os_id": "rhel8", + "components": { + "os_specific": { + "breaks": [ + "intel-level-zero-npu" + ] + }, + "build_tools": { + "rpm": [ + "gcc", + "gcc-c++", + "make", + "cmake", + "pkgconfig" + ] + }, + "python": { + "rpm": [ + "python39", + "python3-virtualenv", + "python3-pip" + ], + "command": "python3.9" + }, + "intel-opencl-icd": { + "rpm": [ + "https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm" + ], + "requires": [ + "compute-runtime" + ] + }, + "level-zero": { + "rpm": [ + "https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm" + ] + }, + "intel-level-zero-gpu": { + "rpm": [ + "https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm" + ], + "requires": [ + "compute-runtime", + "level-zero" + ] + }, + "compute-runtime": { + "rpm": [ + "https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm", + "https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm", + "https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm" + ] + }, + "opencl-loader": { + "rpm": [ + "https://vault.centos.org/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm" + ] + }, + "intel-level-zero-npu": {} + } +} \ No newline at end of file diff --git a/configs/base/ubuntu.json b/configs/base/ubuntu.json new file mode 100644 index 00000000..17fab7dc --- /dev/null +++ b/configs/base/ubuntu.json @@ -0,0 +1,35 @@ +{ + "_based_on": "common", + "components": { + "base": { + "apt": [ + "curl", + "tzdata", + "ca-certificates" + ] + }, + "python": { + "apt": [ + "python3", + "libpython3-dev", + "python3-pip", + "python3-venv" + ] + }, + "build_tools": { + "apt": [ + "g++", + "gcc", + "libc6-dev", + "make", + "cmake", + "pkgconf" + ] + }, + "opencl-loader": { + "apt": [ + "ocl-icd-libopencl1" + ] + } + } +} \ No newline at end of file diff --git a/configs/base/ubuntu18.json b/configs/base/ubuntu18.json new file mode 100644 index 00000000..28ea1994 --- /dev/null +++ b/configs/base/ubuntu18.json @@ -0,0 +1,62 @@ +{ + "_based_on": "ubuntu", + "base_image": "ubuntu:18.04", + "os_id": "ubuntu18", + "os_codename": "bionic", + "components": { + "os_specific": { + "requires": [ + "libtbb" + ], + "breaks": [ + "intel-level-zero-npu" + ] + }, + "libtbb": { + "apt": [ + "libtbb2" + ] + }, + "python": { + "apt": [ + "python3.8", + "libpython3.8-dev", + "python3-venv", + "python3.8-venv", + "python3-pip" + ], + "command": "python3.8" + }, + "intel-opencl-icd": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-opencl_21.38.21026_amd64.deb", + "https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-ocloc_21.38.21026_amd64.deb" + ], + "requires": [ + "compute-runtime" + ] + }, + "level-zero": { + "apt": [ + "https://github.com/oneapi-src/level-zero/releases/download/v1.9.9/level-zero_1.9.9+u18.04_amd64.deb" + ] + }, + "intel-level-zero-gpu": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-level-zero-gpu_1.2.21026_amd64.deb" + ], + "requires": [ + "compute-runtime", + "level-zero" + ] + }, + "compute-runtime": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-gmmlib_21.2.1_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8708/intel-igc-core_1.0.8708_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8708/intel-igc-opencl_1.0.8708_amd64.deb" + ] + }, + "intel-level-zero-npu": {} + } +} \ No newline at end of file diff --git a/configs/base/ubuntu20.json b/configs/base/ubuntu20.json new file mode 100644 index 00000000..840a12a0 --- /dev/null +++ b/configs/base/ubuntu20.json @@ -0,0 +1,50 @@ +{ + "_based_on": "ubuntu", + "base_image": "ubuntu:20.04", + "os_id": "ubuntu20", + "os_codename": "focal", + "components": { + "os_specific": { + "breaks": [ + "intel-level-zero-npu" + ] + }, + "intel-opencl-icd": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/22.37.24175/intel-opencl-icd_22.37.24175_amd64.deb" + ], + "requires": [ + "compute-runtime" + ] + }, + "level-zero": { + "apt": [ + "https://github.com/oneapi-src/level-zero/releases/download/v1.9.9/level-zero_1.9.9+u18.04_amd64.deb" + ] + }, + "intel-level-zero-gpu": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/22.37.24175/intel-level-zero-gpu_1.3.24175_amd64.deb" + ], + "requires": [ + "compute-runtime", + "level-zero" + ] + }, + "compute-runtime": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/22.37.24175/libigdgmm12_22.1.8_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.12037.1/intel-igc-core_1.0.12037.1_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.12037.1/intel-igc-opencl_1.0.12037.1_amd64.deb" + ] + }, + "intel-level-zero-npu": {}, + "python": { + "_comment": [ + "pinning this package helps speeding up installation", + "it keeps pip from trying multiple versions of different libraries" + ], + "pin_packages": ["typing_extensions~=4.12"] + } + } +} \ No newline at end of file diff --git a/configs/base/ubuntu22.json b/configs/base/ubuntu22.json new file mode 100644 index 00000000..eef3b607 --- /dev/null +++ b/configs/base/ubuntu22.json @@ -0,0 +1,43 @@ +{ + "_based_on": "ubuntu", + "base_image": "ubuntu:22.04", + "os_id": "ubuntu22", + "os_codename": "jammy", + "components": { + "intel-opencl-icd": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/24.22.29735.20/intel-opencl-icd_24.22.29735.20_amd64.deb" + ], + "requires": [ + "compute-runtime" + ] + }, + "level-zero": { + "apt": [ + "https://github.com/oneapi-src/level-zero/releases/download/v1.17.19/level-zero_1.17.19+u22.04_amd64.deb" + ] + }, + "intel-level-zero-gpu": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/24.22.29735.20/intel-level-zero-gpu_1.3.29735.20_amd64.deb" + ], + "requires": [ + "compute-runtime", + "level-zero" + ] + }, + "intel-level-zero-npu": { + "apt": [ + "https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-level-zero-npu_1.5.1.20240708-9842236399_ubuntu22.04_amd64.deb", + "https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-driver-compiler-npu_1.5.1.20240708-9842236399_ubuntu22.04_amd64.deb" + ] + }, + "compute-runtime": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/24.22.29735.20/libigdgmm12_22.3.19_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16900.23/intel-igc-core_1.0.16900.23_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16900.23/intel-igc-opencl_1.0.16900.23_amd64.deb" + ] + } + } +} \ No newline at end of file diff --git a/configs/base/ubuntu24.json b/configs/base/ubuntu24.json new file mode 100644 index 00000000..113e3e0f --- /dev/null +++ b/configs/base/ubuntu24.json @@ -0,0 +1,43 @@ +{ + "_based_on": "ubuntu", + "base_image": "ubuntu:24.04", + "os_id": "ubuntu24", + "os_codename": "noble", + "components": { + "intel-opencl-icd": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/24.22.29735.20/intel-opencl-icd_24.22.29735.20_amd64.deb" + ], + "requires": [ + "compute-runtime" + ] + }, + "level-zero": { + "apt": [ + "https://github.com/oneapi-src/level-zero/releases/download/v1.17.19/level-zero_1.17.19+u22.04_amd64.deb" + ] + }, + "intel-level-zero-gpu": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/24.22.29735.20/intel-level-zero-gpu_1.3.29735.20_amd64.deb" + ], + "requires": [ + "compute-runtime", + "level-zero" + ] + }, + "intel-level-zero-npu": { + "apt": [ + "https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-level-zero-npu_1.5.1.20240708-9842236399_ubuntu24.04_amd64.deb", + "https://github.com/intel/linux-npu-driver/releases/download/v1.5.1/intel-driver-compiler-npu_1.5.1.20240708-9842236399_ubuntu24.04_amd64.deb" + ] + }, + "compute-runtime": { + "apt": [ + "https://github.com/intel/compute-runtime/releases/download/24.22.29735.20/libigdgmm12_22.3.19_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16900.23/intel-igc-core_1.0.16900.23_amd64.deb", + "https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16900.23/intel-igc-opencl_1.0.16900.23_amd64.deb" + ] + } + } +} \ No newline at end of file diff --git a/configs/releases/2023.3/ubuntu18.json b/configs/releases/2023.3/ubuntu18.json new file mode 100644 index 00000000..ea3db4a5 --- /dev/null +++ b/configs/releases/2023.3/ubuntu18.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu18", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux/l_openvino_toolkit_ubuntu18_2023.3.0.13775.ceeafaf64f3_x86_64.tgz", + "version": "2023.3.0" + } +} diff --git a/configs/releases/2023.3/ubuntu20.json b/configs/releases/2023.3/ubuntu20.json new file mode 100644 index 00000000..953c023d --- /dev/null +++ b/configs/releases/2023.3/ubuntu20.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu20", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux/l_openvino_toolkit_ubuntu20_2023.3.0.13775.ceeafaf64f3_x86_64.tgz", + "version": "2023.3.0" + } +} diff --git a/configs/releases/2023.3/ubuntu22.json b/configs/releases/2023.3/ubuntu22.json new file mode 100644 index 00000000..804c6395 --- /dev/null +++ b/configs/releases/2023.3/ubuntu22.json @@ -0,0 +1,13 @@ +{ + "_based_on": "ubuntu22", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/linux/l_openvino_toolkit_ubuntu22_2023.3.0.13775.ceeafaf64f3_x86_64.tgz", + "version": "2023.3.0" + }, + "components": { + "package_specific": { + "breaks": ["device_npu"] + } + } +} diff --git a/configs/releases/2024.1/ubuntu20.json b/configs/releases/2024.1/ubuntu20.json new file mode 100644 index 00000000..5628bf79 --- /dev/null +++ b/configs/releases/2024.1/ubuntu20.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu20", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu20_2024.1.0.15008.f4afc983258_x86_64.tgz", + "version": "2024.1.0" + } +} diff --git a/configs/releases/2024.1/ubuntu22.json b/configs/releases/2024.1/ubuntu22.json new file mode 100644 index 00000000..b1db98be --- /dev/null +++ b/configs/releases/2024.1/ubuntu22.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu22", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu22_2024.1.0.15008.f4afc983258_x86_64.tgz", + "version": "2024.1.0" + } +} diff --git a/configs/releases/2024.2/ubuntu20.json b/configs/releases/2024.2/ubuntu20.json new file mode 100644 index 00000000..64e06f27 --- /dev/null +++ b/configs/releases/2024.2/ubuntu20.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu20", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_x86_64.tgz", + "version": "2024.2.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.2/ubuntu22.json b/configs/releases/2024.2/ubuntu22.json new file mode 100644 index 00000000..57b84b52 --- /dev/null +++ b/configs/releases/2024.2/ubuntu22.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu22", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu22_2024.2.0.15519.5c0f38f83f6_x86_64.tgz", + "version": "2024.2.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.3/rhel8.json b/configs/releases/2024.3/rhel8.json new file mode 100644 index 00000000..11838f27 --- /dev/null +++ b/configs/releases/2024.3/rhel8.json @@ -0,0 +1,8 @@ +{ + "_based_on": "rhel8", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/l_openvino_toolkit_rhel8_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz", + "version": "2024.3.0" + } +} diff --git a/configs/releases/2024.3/ubuntu20.json b/configs/releases/2024.3/ubuntu20.json new file mode 100644 index 00000000..569eaf9c --- /dev/null +++ b/configs/releases/2024.3/ubuntu20.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu20", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/l_openvino_toolkit_ubuntu20_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz", + "version": "2024.3.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.3/ubuntu22.json b/configs/releases/2024.3/ubuntu22.json new file mode 100644 index 00000000..4b8ff47a --- /dev/null +++ b/configs/releases/2024.3/ubuntu22.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu22", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/l_openvino_toolkit_ubuntu22_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz", + "version": "2024.3.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.3/ubuntu24.json b/configs/releases/2024.3/ubuntu24.json new file mode 100644 index 00000000..c45e7d45 --- /dev/null +++ b/configs/releases/2024.3/ubuntu24.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu24", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/l_openvino_toolkit_ubuntu24_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz", + "version": "2024.3.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.4/rhel8.json b/configs/releases/2024.4/rhel8.json new file mode 100644 index 00000000..1688311a --- /dev/null +++ b/configs/releases/2024.4/rhel8.json @@ -0,0 +1,8 @@ +{ + "_based_on": "rhel8", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.4/linux/l_openvino_toolkit_rhel8_2024.4.0.16579.c3152d32c9c_x86_64.tgz", + "version": "2024.4.0" + } +} diff --git a/configs/releases/2024.4/ubuntu20.json b/configs/releases/2024.4/ubuntu20.json new file mode 100644 index 00000000..ad4cf54e --- /dev/null +++ b/configs/releases/2024.4/ubuntu20.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu20", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.4/linux/l_openvino_toolkit_ubuntu20_2024.4.0.16579.c3152d32c9c_x86_64.tgz", + "version": "2024.4.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.4/ubuntu22.json b/configs/releases/2024.4/ubuntu22.json new file mode 100644 index 00000000..4dcb37cf --- /dev/null +++ b/configs/releases/2024.4/ubuntu22.json @@ -0,0 +1,8 @@ +{ + "_based_on": "ubuntu22", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.4/linux/l_openvino_toolkit_ubuntu22_2024.4.0.16579.c3152d32c9c_x86_64.tgz", + "version": "2024.4.0" + } +} \ No newline at end of file diff --git a/configs/releases/2024.4/ubuntu24.json b/configs/releases/2024.4/ubuntu24.json new file mode 100644 index 00000000..69392a52 --- /dev/null +++ b/configs/releases/2024.4/ubuntu24.json @@ -0,0 +1,7 @@ +{ + "_based_on": "ubuntu24", + "_template": "Dockerfile_default.j2", + "package": { + "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.4/linux/l_openvino_toolkit_ubuntu24_2024.4.0.16579.c3152d32c9c_x86_64.tgz" + } +} \ No newline at end of file diff --git a/docker_openvino.py b/docker_openvino.py old mode 100755 new mode 100644 index 80a1f381..886a3743 --- a/docker_openvino.py +++ b/docker_openvino.py @@ -1,464 +1,78 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Main script of this framework, putting all the logic together""" +from sys import stdout, executable as python + import argparse -import enum +import subprocess import json -import logging import os -import pathlib -import platform -import shutil -import sys -import time -import timeit -import typing - -import pytest -from docker.errors import APIError, ImageNotFound -from docker.models.images import Image -from requests.exceptions import ReadTimeout -from requests.packages.urllib3.exceptions import ReadTimeoutError - -from utils import logger -from utils.arg_parser import parse_args -from utils.builder import DockerImageBuilder -from utils.docker_api import DockerAPI -from utils.exceptions import FailedBuildError, FailedDeployError, FailedStepError, FailedTestError -from utils.render import DockerFileRender -from utils.utilities import (DEFAULT_DATA_CHUNK_SIZE, MAX_DEPLOY_RETRIES, - SLEEP_BETWEEN_RETRIES, download_file, - format_timedelta, get_system_proxy) - -__version__ = '0.1' -log = logging.getLogger('docker_ci') - - -@enum.unique -class ExitCode(enum.Enum): - """Enum that handles framework-specific exitcodes""" - success = 0 - failed = 10 - failed_build = 11 - failed_test = 12 - failed_deploy = 13 - failed_save = 14 - interrupted = 130 - wrong_args = 127 - - -class Launcher: - """Main class implementing high-end framework logic""" - - def __init__(self, product_name: str, arguments: argparse.Namespace, log_dir: pathlib.Path): - self.render: typing.Optional[DockerFileRender] = None - self.builder: typing.Optional[DockerImageBuilder] = None - self.product_name = product_name - self.args = arguments - self.image: typing.Optional[Image] = None - self.image_name = arguments.tags[0] - self.kwargs: typing.Dict[str, str] = {} - self.location = pathlib.Path(os.path.realpath(__file__)).parent - self.mount_root: pathlib.Path = self.location / 'tests' / 'tmp' / 'mount' - self.docker_api: typing.Optional[DockerAPI] = None - self.logdir = log_dir - - def save(self): - """Save Docker image as a local binary file""" - log.info(logger.LINE_DOUBLE) - log.info('Saving built Docker image...') - curr_time = timeit.default_timer() - share_root = pathlib.Path(self.args.nightly_save_path) - archive_name = '' - for tag in self.args.tags: - if not tag.endswith('latest'): - tag = tag.split('/')[-1] # remove registry from tag - archive_name = f'{tag.replace(":", "_")}.bin' - break - try: - if not self.image: - self.image = self.docker_api.client.images.get(self.args.tags[0]) - with open(str(pathlib.PurePosixPath(share_root / archive_name)), 'wb') as file: - for chunk in self.image.save(chunk_size=DEFAULT_DATA_CHUNK_SIZE): - if chunk: - file.write(chunk) - log.info(f'Save time: {format_timedelta(timeit.default_timer() - curr_time)}') - except (PermissionError, FileExistsError, FileNotFoundError, ReadTimeoutError, ReadTimeout) as file_err: - log.exception(f'Saving the image was failed due to file-related error: {file_err}') - return ExitCode.failed_save - except APIError as err: - log.exception(f'Saving the image was failed: {err}') - return ExitCode.failed_save - return ExitCode.success - - def set_docker_api(self): - """Setting up Docker Python API client""" - self.docker_api = DockerAPI() - - def setup_build_args(self): - """Setting up arguments passed to a template engine and `docker build` command""" - self.kwargs.update({ - 'product_name': self.product_name, - 'product_version': self.args.product_version, - 'package_url': self.args.package_url, - 'build_id': self.args.build_id, - 'year': self.args.year, - 'distribution': self.args.distribution, - 'rhel_platform': self.args.rhel_platform, - 'os': self.args.os, - 'OPENVINO_WHEELS_URL': self.args.wheels_url, - 'OPENVINO_WHEELS_VERSION': self.args.wheels_version, - }) - self.kwargs.update(get_system_proxy()) - - if self.args.build_arg: - for arg in self.args.build_arg: - self.kwargs.update({arg.split('=')[0]: arg.split('=')[-1]}) - - def generate_docker_file(self, save_in_logs=False): - """Generating dockerfile based on templates and CLI options""" - log.info('Preparing to generate the dockerfile...') - self.render = DockerFileRender(self.args.os) - if save_in_logs: - save_to_dir = self.logdir - else: - save_to_dir = pathlib.Path(self.location) / 'dockerfiles' / self.args.os - self.args.file = self.render.generate_dockerfile(self.args, save_to_dir, self.kwargs) - if 'hadolint' in self.args.linter_check: - log.info(logger.LINE_DOUBLE) - log.info('Running linter checks on the generated dockerfile...') - handolint_report = self.logdir / 'dockerfile_linter_hadolint.html' - curr_time = timeit.default_timer() - result = pytest.main(args=[f'{self.location / "tests" / "linters"}', '-k', 'hadolint', - '--dockerfile', str(self.args.file), - f'--junitxml={self.logdir / "hadolint.xml"}', - f'--html={handolint_report}', - '--self-contained-html', '--tb=short', '--color=yes']) - log.info(f'Linter Dockerfile check time: {format_timedelta(timeit.default_timer() - curr_time)}') - if result == pytest.ExitCode.OK: - log.info('Linter checks: PASSED') - else: - log.warning('Linter checks: FAILED') - log.info(f'Hadolint report location: {handolint_report}') - - def build(self): - """Building Docker image from dockerfile""" - log.info(logger.LINE_DOUBLE) - log.info('Preparing to build Docker image...') - tmp_folder, self.args.old_package_url = '', '' - - if self.args.source == 'local' and self.args.package_url.startswith(('http://', 'https://', 'ftp://')): - log.info('Downloading needed files...') - self.args.old_package_url = self.args.package_url - archive_name = self.args.old_package_url.split('/')[-1] - tmp_folder = self.location / 'tmp' - - download_file(self.args.package_url, tmp_folder / archive_name, parents_=True) - - self.args.package_url = (tmp_folder / archive_name).relative_to(self.location) - self.args.package_url = str(pathlib.PurePosixPath(self.args.package_url)) - log.info(f'Downloading {self.args.package_url} finished') - self.kwargs['package_url'] = self.args.package_url - - log.info('Building Docker image...') - self.args.file = pathlib.Path(self.args.file) - if self.args.file.is_absolute(): - self.args.file = pathlib.Path(self.args.file).relative_to(self.location) - self.builder = DockerImageBuilder() - curr_time = timeit.default_timer() - log.info(f"Build log location: {self.logdir / 'image_build.log'}") - self.image = self.builder.build_docker_image(dockerfile=self.args.file, - directory=str(self.location), - tag=self.image_name, - build_args=self.kwargs, - logfile=self.logdir / 'image_build.log', - no_cache=self.args.no_cache) - log.info(f'Build time: {format_timedelta(timeit.default_timer() - curr_time)}') - - if not self.image: - raise FailedBuildError(f'Error building Docker image {self.args.tags}') - log.info(f'Save image data in {self.args.image_json_path} file') - try: - if not self.args.image_json_path.parent.exists(): - self.args.image_json_path.parent.mkdir() - with self.args.image_json_path.open(mode='w', encoding='utf-8') as f: - json.dump({'image_name': self.image_name, - 'product_version': self.args.product_version, - 'wheels_version': self.args.wheels_version, - 'distribution': self.args.distribution, - 'os': self.args.os}, f, ensure_ascii=False, indent=4) - except Exception: - log.exception(f'Failed to save image data in {self.args.image_json_path} file') - - log.info(f'Docker image {self.args.tags} built successfully') - - if self.args.old_package_url: - self.args.package_url, self.args.old_package_url = self.args.old_package_url, self.args.package_url - self.kwargs['package_url'] = self.args.package_url - if tmp_folder and tmp_folder.exists(): - shutil.rmtree(tmp_folder, ignore_errors=True) - log.info('Build dependencies deleted') - - def dive_linter_check(self) -> typing.Union[int, ExitCode]: - """Checking the Docker image size optimality using the Dive tool (https://github.com/wagoodman/dive)""" - log.info(logger.LINE_DOUBLE) - log.info('Running dive checks on the docker image...') - log.info('This may take some time for big image...') - dive_report = self.logdir / 'image_linter_dive.html' - curr_time = timeit.default_timer() - result = pytest.main(args=[f'{self.location / "tests" / "linters"}', '-k', 'dive', '--image', - self.image_name, - f'--junitxml={self.logdir / "dive.xml"}', - f'--html={dive_report}', - '--self-contained-html', '--tb=short', '--color=yes']) - log.info(f'Linter check time: {format_timedelta(timeit.default_timer() - curr_time)}') - if result == pytest.ExitCode.OK: - log.info('Dive checks: PASSED') - else: - log.warning('Dive image checks: FAILED') - log.info(f'Dive report location: {dive_report}') - return result - - def sdl_check(self) -> typing.Union[int, ExitCode]: - """Checking the Docker image security - - Learn more: - * docker-bench-security (https://github.com/docker/docker-bench-security) - * Snyk (https://snyk.io/product/container-vulnerability-management/) - """ - log.info(logger.LINE_DOUBLE) - log.info('Running SDL checks on host and the image...') - sdl_report = str(self.logdir / 'sdl.html') - curr_time = timeit.default_timer() - sdl_check = ' or '.join(self.args.sdl_check) - dockerfile_args = [] - if self.args.file: - dockerfile_args.extend(['--dockerfile', str(self.args.file.absolute())]) - result = pytest.main(args=[f'{self.location / "tests" / "security"}', '-k', sdl_check, - '--image', self.image_name, - *dockerfile_args, - f'--junitxml={self.logdir / "sdl.xml"}', - f'--html={sdl_report}', - '--self-contained-html', '--tb=short', '--color=yes']) - log.info(f'Security checks time: {format_timedelta(timeit.default_timer() - curr_time)}') - if result == pytest.ExitCode.OK: - log.info('SDL checks: PASSED') - else: - log.warning('SDL checks: FAILED') - log.info(f'SDL report location: {sdl_report}') - return result +''' +This file is to provide limited support for older interface to run with old pipelines +''' - def test(self): - """Run pytest-based tests on the built Docker image""" - log.info(logger.LINE_DOUBLE) - log.info(f'Preparing to run tests on the Docker image {self.image_name}...') - result = pytest.ExitCode.OK - if self.args.sdl_check: - result_sdl = self.sdl_check() - if result_sdl != pytest.ExitCode.OK: - result = result_sdl - if 'dive' in self.args.linter_check: - result_dive = self.dive_linter_check() - if result_dive != pytest.ExitCode.OK: - result = result_dive - test_report = self.logdir / 'tests.html' - curr_time = timeit.default_timer() - params = [ # noqa - f'{self.location / "tests" / "functional"}', - '-k', self.args.test_expression, - '-m', self.args.test_mark_expression, - '--image', self.image_name, - '--distribution', self.args.distribution, - '--image_os', self.args.os, - '--product_version', self.args.product_version, - '--wheels_version', self.args.wheels_version, - '--mount_root', str(self.mount_root), - '--package_url', self.args.package_url, - '--wheels_url', getattr(self.args, 'wheels_url', ''), - '--registry', getattr(self.args, 'registry', ''), - f"--junitxml={self.logdir / 'tests.xml'}", - f'--html={test_report}', - '--self-contained-html', - '--tb=short', - '--color=yes', - ] - log.info(f'Params passed to pytest: {params}') - result_tests = pytest.main(params) - log.info(f'Testing time: {format_timedelta(timeit.default_timer() - curr_time)}') - log.info(f'Testing report location: {test_report}') - log.info(f'Testing detailed logs location: {test_report.parent}') - if result_tests != pytest.ExitCode.OK and result_tests != pytest.ExitCode.NO_TESTS_COLLECTED: - result = result_tests - if result == pytest.ExitCode.OK: - log.info('Tests: PASSED') - else: - raise FailedTestError('Tests: FAILED') +PROXY_ENV=["http_proxy", "https_proxy", "no_proxy"] +PROXY_ENV=map(lambda x: (x, os.environ.get(x)), PROXY_ENV) +PROXY_ENV=filter(lambda x: x[1], PROXY_ENV) +PROXY_ENV=list(PROXY_ENV) - def tag(self): - """Tag built Docker image""" - log.info(logger.LINE_DOUBLE) - log.info('Tagging built Docker image...') - try: - for tag in self.args.tags: - if self.args.registry not in self.image_name: - is_passed = self.docker_api.client.images.get(self.image_name).tag( - self.args.registry + '/' + tag) - if not is_passed: - raise FailedDeployError(f"Can't tag {self.image_name} image to {self.args.registry}/{tag}") - log.info(f'Image {self.image_name} successfully tagged as {self.args.registry}/{tag}') - except ImageNotFound: - raise FailedDeployError(f'Image not found: {self.image_name}') - except APIError as err: - raise FailedDeployError(f'Tagging failed: {err}') - def deploy(self): - """Push built Docker image to repo specified in CLI""" - log.info(logger.LINE_DOUBLE) - log.info('Publishing built Docker image...') +parser = argparse.ArgumentParser() +parser.add_argument("command") +parser.add_argument("--package_url", "--package-url") +parser.add_argument("--wheels_url", "--wheels-url") +parser.add_argument("-os", "--os") +parser.add_argument("--nightly", action="store_true") +parser.add_argument("--preset", "-dist", "--dist", help="Preset to use") +parser.add_argument("-r", "--remote-repo", + help="Remote repo with registry, i.e. 'openvino-registry.iotg.sclab.intel.com/openvino'") +parser.add_argument("--source", help="either unset or 'local'") +parser.add_argument("-j", "--image_json_path", help="JSON file to output Image info to") - for tag in self.args.tags: - log_name = f'deploy_{tag.replace("/", "_").replace(":", "_")}.log' - log_path_file = self.logdir / log_name - log.info(f'Image {tag} push log location: {log_path_file}') - logger.switch_to_custom(log_path_file) - curr_time = timeit.default_timer() +args = parser.parse_args() - attempt_number = 1 - while attempt_number <= MAX_DEPLOY_RETRIES: - log.info(f'Try deploy the image, attempt #{attempt_number}') - attempt_number += 1 - try: - if self.args.registry in tag: - log_generator = self.docker_api.client.images.push(tag, - stream=True, decode=True) - else: - log_generator = self.docker_api.client.images.push(self.args.registry + '/' + tag, - stream=True, decode=True) - for line in log_generator: - for key, value in line.items(): - if 'error' in key or 'errorDetail' in key: - raise FailedDeployError(f'{value}') - log.info(f'{value}') - break - except (APIError, ReadTimeoutError) as err: - log.warning( - f'Something went wrong during pushing the image, trying again after sleeping ' - f'{SLEEP_BETWEEN_RETRIES}s: \n\t {err}') - time.sleep(SLEEP_BETWEEN_RETRIES) - continue - else: - raise FailedDeployError(f'Push had failed after {MAX_DEPLOY_RETRIES} attempts') - logger.switch_to_summary() - log.info(f'Push time: {format_timedelta(timeit.default_timer() - curr_time)}') - log.info('Image successfully published') +assert args.command in ("all", "build") - def rmi(self): - """Remove Docker image from the host machine""" - image = self.docker_api.client.images.get(self.image_name) - self.docker_api.client.images.remove(image.short_id, force=True) +if args.command == "all": + assert args.remote_repo +if args.source: + assert args.source == "local" -if __name__ == '__main__': - started_time = timeit.default_timer() - exit_code = ExitCode.success - try: - product_name = 'Intel(R) Distribution of OpenVINO(TM) toolkit' - des = f'DockerHub CI framework for {product_name}' - args = parse_args(name=os.path.basename(__file__), description=des) - logdir: pathlib.Path = pathlib.Path(os.path.realpath(__file__), - ).parent / 'logs' / args.tags[0].replace('/', '_').replace(':', '_') - if not logdir.parent.exists(): - logdir.parent.mkdir() - logfile = logger.init_logger(logdir) - if hasattr(args, 'image_json_path') and not args.image_json_path: - args.image_json_path = logdir / 'image_data.json' - launcher = Launcher(product_name, args, logdir) +if args.image_json_path: + assert args.image_json_path == "image_data.json" - log.info(logger.LINE_DOUBLE) - log.info(f'{des} v{__version__}') - log.info(logger.LINE_DOUBLE) - log.info(f'Log: {logfile}') - log.info(f'Command: {" ".join(sys.argv)}') - log.info(f'Machine: {platform.node()}') - log.info(f'System: {platform.system().lower()}; {platform.release()}; {platform.machine()}') - log.info(f'Python: "{sys.executable}" {sys.version}') - log.info(logger.LINE_DOUBLE) - if args.mode == 'deploy': - launcher.set_docker_api() - launcher.tag() - if args.nightly_save_path: - exit_code = launcher.save() - launcher.deploy() +def log_run(command): + print(f"Running {command}") + stdout.flush() + subprocess.run(command).check_returncode() + stdout.flush() - if args.mode == 'gen_dockerfile': - launcher.setup_build_args() - launcher.generate_docker_file() - if args.mode == 'build': - launcher.set_docker_api() - launcher.setup_build_args() - if not args.file: - launcher.generate_docker_file(save_in_logs=True) - launcher.build() +# Generate Dockerfile +command = [ + python, "generate.py", + "--package-url", args.package_url, + "--preset", args.preset, + "-j" +] +if args.wheels_url: + command.extend(["--wheels-url", args.wheels_url]) +if args.os: + command.extend(["--os", args.os]) +log_run(command) - if args.mode == 'build_test': - launcher.set_docker_api() - launcher.setup_build_args() - if not args.file: - launcher.generate_docker_file(save_in_logs=True) - launcher.build() - launcher.test() +image_info = json.load(open("image_data.json")) +image_name = image_info["image_name"] - if args.mode == 'test': - launcher.test() +# Build Dockerfile +if args.command == "all": + log_run(["docker", "pull", image_info["base_image"]]) - if args.mode == 'all': - launcher.set_docker_api() - launcher.setup_build_args() - if not args.file: - launcher.generate_docker_file(save_in_logs=True) - launcher.build() - if not args.nightly: - launcher.test() - launcher.tag() - if args.nightly_save_path: - exit_code = launcher.save() - launcher.deploy() +build_args_proxy = [f"--build-arg={k}={v}" for k, v in PROXY_ENV] - except FailedStepError as error: - logger.switch_to_summary() - log.exception(error) # noqa G200 - exit_code = ExitCode.failed - except FailedBuildError as error: - logger.switch_to_summary() - log.exception(error) # noqa G200 - exit_code = ExitCode.failed_build - except FailedTestError as error: - logger.switch_to_summary() - log.exception(error) # noqa G200 - exit_code = ExitCode.failed_test - except FailedDeployError as error: - logger.switch_to_summary() - log.exception(error) # noqa G200 - exit_code = ExitCode.failed_deploy - except KeyboardInterrupt: - logger.switch_to_summary() - log.info(logger.LINE_SINGLE) - log.exception(f'{__file__} was interrupted') - log.info(logger.LINE_SINGLE) - exit_code = ExitCode.interrupted - except Exception: - logger.switch_to_summary() - log.info(logger.LINE_SINGLE) - log.exception('Something goes wrong **FAILED**') - log.info(logger.LINE_SINGLE) - exit_code = ExitCode.failed - log.info(logger.LINE_DOUBLE) - log.info(f'Total time elapsed: {format_timedelta(timeit.default_timer() - started_time)}') - log.info(f'Exit code: {exit_code.value}') +log_run(["docker", "build", ".", "-t", image_name, *build_args_proxy]) - sys.exit(exit_code.value) +if args.command == "all": + remote_name = f"{args.remote_repo}/{image_name}" + log_run(["docker", "tag", image_name, remote_name]) + log_run(["docker", "push", remote_name]) \ No newline at end of file diff --git a/dockerfiles/dl-workbench/README.md b/dockerfiles/dl-workbench/README.md deleted file mode 100644 index cf9bcd33..00000000 --- a/dockerfiles/dl-workbench/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# OpenVINO™ Deep Learning Workbench - -## Table of Contents - -- [Introduction](#introduction) -- [System Requirements](#requirements) -- [Install DL Workbench](#install) - - [Using Python wrapper](#wrapper) - - [Using plain Docker command](#docker) - - [DL Workbench Docker Image](#docker_image) -- [Useful Links](#links) - -## Introduction - -Deep Learning Workbench is an official OpenVINO™ graphical user interface designed to make the production of pre-trained deep learning models significantly easier. - -The DL Workbench is an official UI environment of the OpenVINO™ toolkit that enables you to: - -- Learn what neural networks are, how they work, and how to analyze their architectures and performance. -- Get familiar with the OpenVINO™ ecosystem and its main components without installing it on your system. -- Measure and interpret model performance. -- Analyze the quality of your model and visualize output. -- Optimize your model and prepare it for deployment on the target system. - -In the DL Workbench, you can use the following OpenVINO™ toolkit components: - -Component | Description -|:------------------:|:------------------| -| [Open Model Zoo](https://docs.openvino.ai/latest/omz_tools_downloader.html)| Get access to the collection of high-quality pre-trained deep learning [public](https://docs.openvino.ai/latest/omz_models_group_public.html) and [Intel-trained](https://docs.openvino.ai/latest/omz_models_group_intel.html) models trained to resolve a variety of different tasks. | -| [Model Optimizer](https://docs.openvino.ai/latest/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html) |Optimize and transform models trained in supported frameworks to the IR format.
Supported frameworks include TensorFlow\*, Caffe\*, Kaldi\*, MXNet\*, and ONNX\* format. -| [Benchmark Tool](https://docs.openvino.ai/latest/openvino_inference_engine_tools_benchmark_tool_README.html)| Estimate deep learning model inference performance on supported devices. -| [Accuracy Checker](https://docs.openvino.ai/latest/omz_tools_accuracy_checker.html) |Evaluate the accuracy of a model by collecting one or several metric values. -| [Post-Training Optimization Tool](https://docs.openvino.ai/latest/pot_README.html)|Optimize pre-trained models with lowering the precision of a model from floating-point precision(FP32 or FP16) to integer precision (INT8), without the need to retrain or fine-tune models. | - -## System Requirements - -The complete list of recommended requirements is available in the [documentation](https://docs.openvino.ai/latest/workbench_docs_Workbench_DG_Prerequisites.html). - -To successfully run the DL Workbench with Python Starter, install Python 3.6 or higher. - -Prerequisite | Linux* | Windows* | macOS* -:----- | :----- |:----- |:----- -Operating system|Ubuntu\* 18.04|Windows\* 10 | macOS\* 10.15 Catalina -Available RAM space| 8 GB\** | 8 GB\** | 8 GB\** -Available storage space| 10 GB + space for imported artifacts| 10 GB + space for imported artifacts| 10 GB + space for imported artifacts -Docker\*| Docker CE 18.06.1 | Docker Desktop 2.3.0.3|Docker CE 18.06.1 - -Windows\*, Linux\* and MacOS\* support CPU targets. GPU, Intel® Neural Compute Stick 2 and Intel® Vision Accelerator Design with Intel® Movidius™ VPUs are supported only for Linux\*. - -## Install DL Workbench - -### Install the DL Workbench Starter - -> LEGAL NOTICE: Your use of this software and any required dependent software (the “Software Package”) is subject to the terms and conditions of the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.html). - -This section describes how to start the DL Workbench using the Python wrapper, which -works on Linux OS\*, macOS\* and Windows\*. - -For additional details, such as prerequisites, security, and troubleshooting, see -[OpenVINO DL Workbench documentation](https://docs.openvino.ai/latest/workbench_docs_Workbench_DG_Introduction.html). - -#### Step 1. Set Up Python Virtual Environment - -To avoid dependency conflicts, use a virtual environment. Skip this step only if you do want to install all dependencies globally. - -Create virtual environment by executing the following commands in your terminal: - -* On Linux and MacOS: -``` -python3 -m pip install --user virtualenv -python3 -m venv venv -``` -* On Windows: -``` -py -m pip install --user virtualenv -py -m venv venv -``` -#### Step 2. Activate Virtual Environment - -* On Linux and MacOS: -``` -source venv/bin/activate -``` -* On Windows: -``` -venv\Scripts\activate -``` - -#### Step 3. Update PIP to the Latest Version -Run the command below: - -``` -python -m pip install --upgrade pip -``` -#### Step 4. Install the Python Wrapper -``` -pip install -U openvino-workbench -``` -#### Step 5. Verify the Installation - -To verify that the package is properly installed, run the command below: -``` -openvino-workbench --help -``` -You will see the help message for the starting package if installation finished successfully. - -#### Use the DL Workbench Starter - -To start the latest available version of the DL Workbench, execute the following command: - -``` -openvino-workbench --image openvino/workbench:latest -``` - -You can see the list of available arguments with the following command: -``` -openvino-workbench --help -``` - -Refer to the [documentation](https://docs.openvino.ai/latest/workbench_docs_Workbench_DG_Introduction.html) for additional information. - -### Use web-form to build a starting command - -This section describes how to start the DL Workbench using the plain Docker\* command, which -works on Linux OS\*, macOS\* and Windows\*. - -For additional details, such as prerequisites, security, and troubleshooting, see -[OpenVINO DL Workbench documentation](https://docs.openvino.ai/latest/workbench_docs_Workbench_DG_Introduction.html). - -#### Step 1. Navigate to the web-form website - -* Web-form is available here: https://openvinotoolkit.github.io/workbench_aux/ - -#### Step 2. Select the necessary capabilities - -* Go through the web-form interface and select the most suitable capabilities for you. - -#### Step 3. Start DL Workbench - -* Copy the resulting command and execute it in your terminal. - -# DL Workbench Docker Image - - Pre-built DL Workbench Docker image is available on [Docker Hub*](https://hub.docker.com/repository/docker/openvino/workbench). - -# Additional Resources -* [DL Workbench Repository](https://github.com/openvinotoolkit/workbench) -* [Release Notes](https://software.intel.com/content/www/us/en/develop/articles/openvino-relnotes.html) -* [Documentation](https://docs.openvino.ai/latest/workbench_docs_Workbench_DG_Introduction.html) -* [Feedback](https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/bd-p/distribution-openvino-toolkit) -* [Troubleshooting](https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/bd-p/distribution-openvino-toolkit) - ---- -\* Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/dl-workbench/third-party-programs-docker-workbench.txt b/dockerfiles/dl-workbench/third-party-programs-docker-workbench.txt deleted file mode 100644 index 0959d13c..00000000 --- a/dockerfiles/dl-workbench/third-party-programs-docker-workbench.txt +++ /dev/null @@ -1,1429 +0,0 @@ -DL Workbench Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. - ----------------------------------------------------------------------------------------------- -1. d3 - Copyright 2010-2017 Mike Bostock - All rights reserved. - - celery - Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. - Copyright (c) 2012-2014 GoPivotal, Inc. All rights reserved. - Copyright (c) 2009, 2010, 2011, 2012 Ask Solem, and individual contributors. All rights reserved. - - celery vine - Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. - - Flask - Copyright 2010 Pallets - - flask-restful - Copyright (c) 2013, Twilio, Inc. - All rights reserved. - - flask-sqlalchemy - Copyright 2010 Pallets - - IPython - Copyright (c) 2008-Present, IPython Development Team - Copyright (c) 2001-2007, Fernando Perez - Copyright (c) 2001, Janko Hauser - Copyright (c) 2001, Nathaniel Gray - All rights reserved. - - IPython ipykernel - Copyright (c) 2015, IPython Development Team - - Jupyter Interactive Notebook - Copyright (c) 2001-2015, IPython Development Team - Copyright (c) 2015-, Jupyter Development Team - All rights reserved. - - jupyter-widgets ipywidgets - Copyright (c) 2015 Project Jupyter Contributors - All rights reserved. - - jupyterlab - Copyright (c) 2015 Project Jupyter Contributors - All rights reserved. - - kombu - Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. - Copyright (c) 2012-2014 GoPivotal Inc & contributors. All rights reserved. - Copyright (c) 2009-2012, Ask Solem & contributors. All rights reserved. - - lxml - - NumPy - Copyright (c) 2005-2020, NumPy Developers. - All rights reserved. - - Project Jupyter jupyter - Copyright (c) 2017, Project Jupyter Contributors - All rights reserved. - - Project Jupyter nbformat - Copyright (c) 2001-2015, IPython Development Team - Copyright (c) 2015-, Jupyter Development Team - All rights reserved. - - psutil - Copyright (c) 2009, Jay Loden, Dave Daeschler, Giampaolo Rodola' - All rights reserved. - - scikit-image - Copyright (C) 2019, the scikit-image team - All rights reserved. - - SciPy - Copyright (c) 2001-2002 Enthought, Inc. 2003-2019, SciPy Developers. - All rights reserved. - - tlocke pg8000 - Copyright (c) 2007-2009, Mathieu Fenniak - All rights reserved. - - Werkzeug - Copyright 2007 Pallets - - amqp - Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. - Copyright (c) 2012-2014 GoPivotal, Inc. All rights reserved. - Copyright (c) 2009, 2010, 2011, 2012 Ask Solem, and individual contributors. All rights reserved. - Copyright (C) 2007-2008 Barry Pederson . All rights reserved. - - aniso8601 - Copyright (c) 2021, Brandon Nielsen - All rights reserved. - - billiard - Copyright (c) 2006-2008, R Oudkerk and Contributors - All rights reserved. - - click - Copyright 2014 Pallets - - cryptography - - idna - Copyright (c) 2013-2021, Kim Davies All rights reserved. - - itsdangerous - Copyright 2011 Pallets - - Jinja2 - Copyright 2007 Pallets - - Pallets markupsafe - Copyright 2010 Pallets - - packaging - - pycparser - Copyright (c) 2008-2020, Eli Bendersky - All rights reserved. - - backcall - Copyright (c) 2014, Thomas Kluyver - All rights reserved. - - ipython-genutils - Copyright (c) 2001-, IPython Development Team - - jupyter-client - Copyright (c) 2001-2015, IPython Development Team - Copyright (c) 2015-, Jupyter Development Team - - jupyter-console - Copyright (c) 2015-, Jupyter Development Team - - jupyter-core - Copyright (c) 2015-, Jupyter Development Team - - jupyterlab - Copyright (c) 2015-2021 Project Jupyter Contributors - All rights reserved. - - jupyterlab-execute-time - Copyright 2020 D. E. Shaw & Co., L.P. - All rights reserved. - - jupyterlab pygments - - jupyterlab-server - - mistune - Copyright (c) 2014, Hsiaoming Yang - - pandocfilters - Copyright (c) 2013, John MacFarlane - All rights reserved. - - python-prompt-toolkit - Copyright (c) 2014, Jonathan Slenders - All rights reserved. - - qtconsole - Copyright (c) 2017, Project Jupyter Contributors - All rights reserved. - - Send2Trash - Copyright (c) 2017, Virgil Dupras - All rights reserved. - - terminado - Copyright (c) 2014-, Jupyter development team - Copyright (c) 2014, Ramalingam Saravanan - All rights reserved. - - Python Testpath - Copyright (c) 2015, The Jupyter Development Team - All rights reserved. - - traitlets - Copyright (c) 2001-, IPython Development Team - - python-webencodings - Copyright (c) 2012 by Simon Sapin. - Some rights reserved. - - widgetsnbextension - Copyright the IPython development team - - pyzmq - Copyright (c) 2009-2012, Brian Granger, Min Ragan-Kelley - All rights reserved - - - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------------------- -2. ProtoBuf.js - Copyright (c) 2016, Daniel Wirtz All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -* Neither the name of its author, nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ---- - -Code generated by the command line utilities is owned by the owner -of the input file used when generating it. This code is not -standalone and requires a support library to be linked with it. This -support library is itself covered by the above license. ----------------------------------------------------------------------------------------------- -3. dcodeIO long.js - Copyright 2009 The Closure Library Authors. - Copyright 2020 Daniel Wirtz / The long.js Contributors. - - ReactiveX rxjs - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - Google Analytics analytics.js - - material-design-icons - - roboto - - cython - cython/cython - - Google Analytics gtag.js - - requests - - bcrypt - - cryptography - - importlib-metadata - - importlib-resources - - monotonic - - packaging - - PyNaCl - - python-editor - - async-generator - - bleach - - json5 - - prometheus-client - - tornado - - async-generator - - -License: -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and -You must cause any modified files to carry prominent notices stating that You changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. - -You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - ----------------------------------------------------------------------------------------------- -4. angulartics2 - Copyright (c) 2020 angulartics - - Chartjs chart.js - Copyright (c) 2018 Chart.js Contributors - - dagre - Copyright (c) 2012-2014 Chris Pettitt - - hammer.js - Copyright (C) 2011-2017 by Jorik Tangelder (Eight Media) - - marked - Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/) - - Lutzroeder netron - Copyright (c) Lutz Roeder - - FileSaver.js - Copyright 2016 Eli Grey - - SQLAlchemy - Copyright 2005-2020 SQLAlchemy authors and contributors - - angular angular - Copyright (c) 2010-2020 Google LLC - - socket.io-client - Copyright (c) 2014 Guillermo Rauch - - handlebars - Copyright (C) 2011-2019 by Yehuda Katz - - uuid - Copyright (c) 2010-2016 Robert Kieffer and other contributors - - Eventlet - Copyright (c) 2005-2006, Bob Ippolito - Copyright (c) 2007-2010, Linden Research, Inc. - Copyright (c) 2008-2010, Eventlet Contributors (see AUTHORS) - - Flask-Migrate - Copyright (c) 2013 Miguel Grinberg - - Flask-SocketIO - Copyright (c) 2014 Miguel Grinberg - - greenlet - Copyright (c) Armin Rigo, Christian Tismer and contributors - - Gunicorn - 2009-2018 (c) Benoît Chesneau - 2009-2015 (c) Paul J. Davis - - js-YAML - Copyright (C) 2011-2015 by Vitaly Puzrin - - jwt-decode - Copyright (c) 2015 Auth0, Inc. (http://auth0.com) - - Miguelgrinberg python-engineio - Copyright (c) 2015 Miguel Grinberg - - miguelgrinberg/python-socketio - Copyright (c) 2015 Miguel Grinberg - - monaco-editor - Copyright (c) 2016 - present Microsoft Corporation - - py-cpuinfo - Copyright (c) 2014-2021 Matthew Brennan Jones - - PyJWT - Copyright (c) 2015 José Padilla - - PyYAML - Copyright (c) 2017-2021 Ingy döt Net - Copyright (c) 2006-2016 Kirill Simonov - - socket.io-parser - Copyright (c) 2014 Guillermo Rauch - - flask-jwt-extended - Copyright (c) 2016 Landon - - virtualenv - Copyright (c) 2020-202x The virtualenv developers - - async-generator - - alembic - Copyright (C) 2009-2012 by Michael Bayer. - Alembic is a trademark of Michael Bayer. - - appdirs - Copyright (c) 2010 ActiveState Software Inc. - - cffi - Copyright (c) 2020 CFFI, Python's C Foreign Function Interface - - Mako Templates for Python - Copyright 2006-2020 the Mako authors and contributors - - PSF pytz - - scramp - Copyright (c) 2019 Tony Locke - - Jeff Quast wcwidth - Copyright (c) 2014 Jeff Quast - - urllib3 - Copyright (c) 2008-2020 Andrey Petrov and contributors - - zipp - Copyright Jason R. Coombs - - async-generator - Copyright (c) 2016 Nathaniel J. Smith and other contributors - - entrypoints - Copyright (c) 2015 Thomas Kluyver and contributors - - jedi - Copyright (c) <2013> - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------------------------- -5. ngrx/store - Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -This repository includes a file "debounceSync.ts" originially copied from -https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the -file header for details. - ----------------------------------------------------------------------------------------------- -6. lodash - Copyright JS Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. ----------------------------------------------------------------------------------------------- -7. Coco Dataset COCO API - Copyright (c) 2014, Piotr Dollar and Tsung-Yi Lin - All rights reserved. - - nginx - - nest-asyncio - Copyright (c) 2018-2020, Ewald de Wit - - Pygments - Copyright (c) 2006-2010 by the respective authors (see AUTHORS file). - All rights reserved. - - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The views and conclusions contained in the software and documentation are those -of the authors and should not be interpreted as representing official policies, -either expressed or implied, of the FreeBSD Project. ---------------------------------------------------------------------------------------------- -8. tslib - Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------------------------------- -9. paramiko - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - chardet - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! --------------------------------------------------------------------------------------------- -10. matplotlib - 1. This LICENSE AGREEMENT is between the Matplotlib Development Team -("MDT"), and the Individual or Organization ("Licensee") accessing and -otherwise using matplotlib software in source or binary form and its -associated documentation. - -2. Subject to the terms and conditions of this License Agreement, MDT -hereby grants Licensee a nonexclusive, royalty-free, world-wide license -to reproduce, analyze, test, perform and/or display publicly, prepare -derivative works, distribute, and otherwise use matplotlib -alone or in any derivative version, provided, however, that MDT's -License Agreement and MDT's notice of copyright, i.e., "Copyright (c) -2012- Matplotlib Development Team; All Rights Reserved" are retained in -matplotlib alone or in any derivative version prepared by -Licensee. - -3. In the event Licensee prepares a derivative work that is based on or -incorporates matplotlib or any part thereof, and wants to -make the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to matplotlib . - -4. MDT is making matplotlib available to Licensee on an "AS -IS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB -WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. - -5. MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB - FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR -LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING -MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF -THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between MDT and -Licensee. This License Agreement does not grant permission to use MDT -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using matplotlib , -Licensee agrees to be bound by the terms and conditions of this License -Agreement. - -License agreement for matplotlib versions prior to 1.3.0 -======================================================== - -1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the -Individual or Organization ("Licensee") accessing and otherwise using -matplotlib software in source or binary form and its associated -documentation. - -2. Subject to the terms and conditions of this License Agreement, JDH -hereby grants Licensee a nonexclusive, royalty-free, world-wide license -to reproduce, analyze, test, perform and/or display publicly, prepare -derivative works, distribute, and otherwise use matplotlib -alone or in any derivative version, provided, however, that JDH's -License Agreement and JDH's notice of copyright, i.e., "Copyright (c) -2002-2011 John D. Hunter; All Rights Reserved" are retained in -matplotlib alone or in any derivative version prepared by -Licensee. - -3. In the event Licensee prepares a derivative work that is based on or -incorporates matplotlib or any part thereof, and wants to -make the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to matplotlib. - -4. JDH is making matplotlib available to Licensee on an "AS -IS" basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB -WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. - -5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB - FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR -LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING -MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF -THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between JDH and -Licensee. This License Agreement does not grant permission to use JDH -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using matplotlib, -Licensee agrees to be bound by the terms and conditions of this License -Agreement. ------------------------------------------------------------------------------ -11. portalocker - - defusedxml - - parso - All contributions towards parso are MIT licensed. - -Some Python files have been taken from the standard library and are therefore -PSF licensed. Modifications on these files are dual licensed (both MIT and -PSF). These files are: - -- parso/pgen2/* -- parso/tokenize.py -- parso/token.py -- test/test_pgen2.py - -Also some test files under test/normalizer_issue_files have been copied from -https://github.com/PyCQA/pycodestyle (Expat License == MIT License). - - distlib - - typing-extensions - - - 1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 -Python Software Foundation; All Rights Reserved" are retained in Python alone or -in any derivative version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. ------------------------------------------------------------------------------- -12. nbclient -# Licensing terms - -This project is licensed under the terms of the Modified BSD License -(also known as New or Revised or 3-Clause BSD), as follows: - -- Copyright (c) 2020-, Jupyter Development Team - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this -list of conditions and the following disclaimer in the documentation and/or -other materials provided with the distribution. - -Neither the name of the Jupyter Development Team nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -## About the Jupyter Development Team - -The Jupyter Development Team is the set of all contributors to the Jupyter project. -This includes all of the Jupyter subprojects. - -The core team that coordinates development on GitHub can be found here: -https://github.com/jupyter/. - -## Our Copyright Policy - -Jupyter uses a shared copyright model. Each contributor maintains copyright -over their contributions to Jupyter. But, it is important to note that these -contributions are typically only changes to the repositories. Thus, the Jupyter -source code, in its entirety is not the copyright of any single person or -institution. Instead, it is the collective copyright of the entire Jupyter -Development Team. If individual contributors want to maintain a record of what -changes/contributions they have specific copyright on, they should indicate -their copyright in the commit message of the change, when they commit the -change to one of the Jupyter repositories. - -With this in mind, the following banner should be used in any source code file -to indicate the copyright and license terms: - - # Copyright (c) Jupyter Development Team. - # Distributed under the terms of the Modified BSD License. ------------------------------------------------------------------------- -13.dnspython - Copyright (C) Dnspython Contributors - Copyright (C) 2001-2017 Nominum, Inc. - Copyright (C) Google Inc. - - Pexpect - Pure Python Expect-like module - Copyright (c) 2013-2014, Pexpect development team - Copyright (c) 2012, Noah Spurrier - - ptyprocess - Copyright (c) 2013-2014, Pexpect development team - Copyright (c) 2012, Noah Spurrier - - -Permission to use, copy, modify, and/or distribute this software for -any purpose with or without fee is hereby granted, provided that the -above copyright notice and this permission notice appear in all -copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL -WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL -DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR -PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. --------------------------------------------------------------------------- - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/dl-workbench/workbench_cgvh_dev_2021.4.1.dockerfile b/dockerfiles/dl-workbench/workbench_cgvh_dev_2021.4.1.dockerfile deleted file mode 100644 index 98e4294c..00000000 --- a/dockerfiles/dl-workbench/workbench_cgvh_dev_2021.4.1.dockerfile +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright (C) 2019-2021 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM openvino/ubuntu18_dev_no_samples:2021.4.1 - -LABEL description="This is the OpenVINO™ Deep Learning Workbench image on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -ARG db_password -ARG rabbitmq_password -ARG PACKAGE_LINK - -ENV DEBIAN_FRONTEND noninteractive -ENV ACCURACY_CHECKER_LOG_LEVEL ERROR - -ENV RABBITMQ_PASSWORD $rabbitmq_password -ENV OPENVINO_WORKBENCH_ROOT ${INTEL_OPENVINO_DIR}/deployment_tools/tools/workbench -ENV OPENVINO_WORKBENCH_DATA_PATH ${OPENVINO_WORKBENCH_ROOT}/wb/data -ENV PYTHONPATH ${PYTHONPATH}:${OPENVINO_WORKBENCH_ROOT}:${OPENVINO_WORKBENCH_ROOT}/wb/main/console_tool_wrapper/winograd_tool/winograd_cli_tool:${INTEL_OPENVINO_DIR}/deployment_tools/tools/benchmark_tool:${OPENVINO_WORKBENCH_ROOT}/model_analyzer:${INTEL_OPENVINO_DIR}/deployment_tools/tools/benchmark_tool - -ENV PYTHON_VERSION 3.6 -ENV PYTHON python${PYTHON_VERSION} - -ENV USER_NAME workbench -ENV USER_ID 5665 -ENV GROUP_NAME ${USER_NAME} -ENV GROUP_ID ${USER_ID} - -ENV DB_PASSWORD $db_password -ENV DB_USER ${USER_NAME} -ENV DB_NAME workbench - -USER root - -RUN groupadd -g ${GROUP_ID} ${GROUP_NAME} -RUN useradd ${USER_NAME} -l -u ${USER_ID} -g ${GROUP_ID} -ms /bin/bash && \ - chown ${USER_NAME} -R /home/${USER_NAME} - -ENV WORKBENCH_PUBLIC_DIR /home/${USER_NAME}/.workbench -ENV WORKBENCH_POSTGRESQL_DATA_DIR ${WORKBENCH_PUBLIC_DIR}/postgresql_data_directory -ENV JUPYTER_BASE_DIR /home/${USER_NAME}/.jupyter -ENV JUPYTER_USER_SETTINGS_DIR ${JUPYTER_BASE_DIR}/lab/user-settings - -ENV DEPENDENCIES " \ - postgresql \ - rabbitmq-server \ - nginx \ - gettext-base \ - unzip \ - dpkg-dev \ -" - -RUN sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends ${DEPENDENCIES} && \ - apt-get source gettext-base && \ - apt-get remove -y dpkg-dev && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -RUN ${PYTHON} -m pip install pip==19.3.1 - -WORKDIR ${INTEL_OPENVINO_DIR}/deployment_tools/tools -RUN rm -rf ${OPENVINO_WORKBENCH_ROOT} -COPY --chown=workbench workbench ${OPENVINO_WORKBENCH_ROOT}/ - -# COPY JUPYTER TUTORIALS TO WORKBENCH PUBLIC ARTIFACTS DIRECTORY -COPY --chown=workbench workbench/tutorials ${WORKBENCH_PUBLIC_DIR}/tutorials - -# COPY JUPYTER USER SETTINGS -COPY --chown=workbench workbench/docker/jupyter_config/user-settings ${JUPYTER_USER_SETTINGS_DIR} - -# SET PERMISSIONS FOR DIRECTORIES -RUN find ${WORKBENCH_PUBLIC_DIR} -type d -exec chmod 777 {} \; - - -# SET OWNERSHIP FOR WORKBENCH PUBLIC ARTIFACTS DIRECTORY -RUN chown -R ${USER_NAME} ${WORKBENCH_PUBLIC_DIR} - -# SET UP DEPENDENCIES FOR SERVER -# hadolint ignore=SC2174 -RUN mkdir -m 777 -p ${OPENVINO_WORKBENCH_DATA_PATH} && chown -R ${USER_NAME} ${OPENVINO_WORKBENCH_ROOT} - -RUN ${PYTHON} -m pip install --no-cache-dir -r ${OPENVINO_WORKBENCH_ROOT}/requirements/requirements.txt && \ - ${PYTHON} -m pip install --no-cache-dir -r ${OPENVINO_WORKBENCH_ROOT}/requirements/requirements_jupyter.txt && \ - ${PYTHON} -m pip install --no-cache-dir -r ${OPENVINO_WORKBENCH_ROOT}/model_analyzer/requirements.txt - -RUN chown -R ${USER_NAME}:${GROUP_NAME} ${JUPYTER_BASE_DIR} - -RUN xargs -n 1 curl -O < ${OPENVINO_WORKBENCH_ROOT}/docker/docker_python_lgpl.txt - -# Add ${USER_NAME} user to groups nginx, postgres and rabbitmq for running -# services without sudo -RUN for g in $(id -nG postgres); do gpasswd -a "${USER_NAME}" "${g}"; done && \ - for g in $(id -nG rabbitmq); do gpasswd -a "${USER_NAME}" "${g}"; done && \ - gpasswd -a "${USER_NAME}" users && \ - gpasswd -a "${USER_NAME}" video && \ - gpasswd -a "${USER_NAME}" adm - -RUN touch /var/run/nginx.pid && \ - rm -rf /etc/nginx/sites-enabled/default && \ - cp ${OPENVINO_WORKBENCH_ROOT}/nginx/nginx.conf /etc/nginx/nginx.conf - -RUN chown -R ${USER_NAME} /var/lib/postgresql /var/run/postgresql \ - /var/lib/rabbitmq /var/log/rabbitmq /var/log/rabbitmq \ - /var/log/nginx /var/lib/nginx /var/run/nginx.pid /etc/nginx - - -USER workbench - -WORKDIR ${OPENVINO_WORKBENCH_ROOT} - -RUN python3.6 ${OPENVINO_WORKBENCH_ROOT}/wb/main/utils/bundle_creator/bundle_downloader.py \ - --link ${PACKAGE_LINK} \ - -os ubuntu18 ubuntu20 \ - --output-path ${OPENVINO_WORKBENCH_ROOT}/bundles \ - --targets cpu gpu hddl opencv python3.6 python3.7 python3.8 vpu - -ENTRYPOINT ["bash", "/opt/intel/openvino/deployment_tools/tools/workbench/docker/scripts/docker-entrypoint.sh"] diff --git a/dockerfiles/dl-workbench/workbench_cgvh_dev_2021.4.dockerfile b/dockerfiles/dl-workbench/workbench_cgvh_dev_2021.4.dockerfile deleted file mode 100644 index 82e471a2..00000000 --- a/dockerfiles/dl-workbench/workbench_cgvh_dev_2021.4.dockerfile +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright (C) 2019-2021 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM openvino/ubuntu18_dev_no_samples:2021.4_tgl - -LABEL description="This is the OpenVINO™ Deep Learning Workbench image on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -ARG db_password -ARG rabbitmq_password -ARG PACKAGE_LINK - -ENV DEBIAN_FRONTEND noninteractive -ENV ACCURACY_CHECKER_LOG_LEVEL ERROR - -ENV RABBITMQ_PASSWORD $rabbitmq_password -ENV OPENVINO_WORKBENCH_ROOT ${INTEL_OPENVINO_DIR}/deployment_tools/tools/workbench -ENV OPENVINO_WORKBENCH_DATA_PATH ${OPENVINO_WORKBENCH_ROOT}/wb/data -ENV PYTHONPATH ${PYTHONPATH}:${OPENVINO_WORKBENCH_ROOT}:${OPENVINO_WORKBENCH_ROOT}/wb/main/console_tool_wrapper/winograd_tool/winograd_cli_tool:${INTEL_OPENVINO_DIR}/deployment_tools/tools/benchmark_tool:${OPENVINO_WORKBENCH_ROOT}/model_analyzer:${INTEL_OPENVINO_DIR}/deployment_tools/tools/benchmark_tool - -ENV PYTHON_VERSION 3.6 -ENV PYTHON python${PYTHON_VERSION} - -ENV USER_NAME workbench -ENV USER_ID 5665 -ENV GROUP_NAME ${USER_NAME} -ENV GROUP_ID ${USER_ID} - -ENV DB_PASSWORD $db_password -ENV DB_USER ${USER_NAME} -ENV DB_NAME workbench - -USER root - -RUN groupadd -g ${GROUP_ID} ${GROUP_NAME} -RUN useradd ${USER_NAME} -l -u ${USER_ID} -g ${GROUP_ID} -ms /bin/bash && \ - chown ${USER_NAME} -R /home/${USER_NAME} - -ENV WORKBENCH_PUBLIC_DIR /home/${USER_NAME}/.workbench -ENV WORKBENCH_POSTGRESQL_DATA_DIR ${WORKBENCH_PUBLIC_DIR}/postgresql_data_directory -ENV JUPYTER_BASE_DIR /home/${USER_NAME}/.jupyter -ENV JUPYTER_USER_SETTINGS_DIR ${JUPYTER_BASE_DIR}/lab/user-settings - -ENV DEPENDENCIES " \ - postgresql \ - rabbitmq-server \ - nginx \ - gettext-base \ - unzip \ - dpkg-dev \ -" - -RUN sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends ${DEPENDENCIES} && \ - apt-get source gettext-base && \ - apt-get remove -y dpkg-dev && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -RUN ${PYTHON} -m pip install pip==19.3.1 - -WORKDIR ${INTEL_OPENVINO_DIR}/deployment_tools/tools -RUN rm -rf ${OPENVINO_WORKBENCH_ROOT} -COPY --chown=workbench workbench ${OPENVINO_WORKBENCH_ROOT}/ - -# COPY JUPYTER TUTORIALS TO WORKBENCH PUBLIC ARTIFACTS DIRECTORY -COPY --chown=workbench workbench/tutorials ${WORKBENCH_PUBLIC_DIR}/tutorials - -# COPY JUPYTER USER SETTINGS -COPY --chown=workbench workbench/docker/jupyter_config/user-settings ${JUPYTER_USER_SETTINGS_DIR} - -# SET PERMISSIONS FOR DIRECTORIES -RUN find ${WORKBENCH_PUBLIC_DIR} -type d -exec chmod 777 {} \; - - -# SET OWNERSHIP FOR WORKBENCH PUBLIC ARTIFACTS DIRECTORY -RUN chown -R ${USER_NAME} ${WORKBENCH_PUBLIC_DIR} - -# SET UP DEPENDENCIES FOR SERVER -# hadolint ignore=SC2174 -RUN mkdir -m 777 -p ${OPENVINO_WORKBENCH_DATA_PATH} && chown -R ${USER_NAME} ${OPENVINO_WORKBENCH_ROOT} - -RUN ${PYTHON} -m pip install --no-cache-dir -r ${OPENVINO_WORKBENCH_ROOT}/requirements/requirements.txt && \ - ${PYTHON} -m pip install --no-cache-dir -r ${OPENVINO_WORKBENCH_ROOT}/requirements/requirements_jupyter.txt && \ - ${PYTHON} -m pip install --no-cache-dir -r ${OPENVINO_WORKBENCH_ROOT}/model_analyzer/requirements.txt - -RUN chown -R ${USER_NAME}:${GROUP_NAME} ${JUPYTER_BASE_DIR} - -RUN xargs -n 1 curl -O < ${OPENVINO_WORKBENCH_ROOT}/docker/docker_python_lgpl.txt - -# Add ${USER_NAME} user to groups nginx, postgres and rabbitmq for running -# services without sudo -RUN for g in $(id -nG postgres); do gpasswd -a "${USER_NAME}" "${g}"; done && \ - for g in $(id -nG rabbitmq); do gpasswd -a "${USER_NAME}" "${g}"; done && \ - gpasswd -a "${USER_NAME}" users && \ - gpasswd -a "${USER_NAME}" video && \ - gpasswd -a "${USER_NAME}" adm - -RUN touch /var/run/nginx.pid && \ - rm -rf /etc/nginx/sites-enabled/default && \ - cp ${OPENVINO_WORKBENCH_ROOT}/nginx/nginx.conf /etc/nginx/nginx.conf - -RUN chown -R ${USER_NAME} /var/lib/postgresql /var/run/postgresql \ - /var/lib/rabbitmq /var/log/rabbitmq /var/log/rabbitmq \ - /var/log/nginx /var/lib/nginx /var/run/nginx.pid /etc/nginx - - -USER workbench - -WORKDIR ${OPENVINO_WORKBENCH_ROOT} - -RUN python3.6 ${OPENVINO_WORKBENCH_ROOT}/wb/main/utils/bundle_creator/bundle_downloader.py \ - --link ${PACKAGE_LINK} \ - -os ubuntu18 ubuntu20 \ - --output-path ${OPENVINO_WORKBENCH_ROOT}/bundles \ - --targets cpu gpu hddl opencv python3.6 python3.7 python3.8 vpu - -ENTRYPOINT ["bash", "/opt/intel/openvino/deployment_tools/tools/workbench/docker/scripts/docker-entrypoint.sh"] diff --git a/dockerfiles/rhel8/autobuild/README.md b/dockerfiles/rhel8/autobuild/README.md deleted file mode 100644 index 322c19ea..00000000 --- a/dockerfiles/rhel8/autobuild/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Build Intel® Distribution of OpenVINO™ toolkit Docker image using Red Hat® portal Build System - -This repository folder contains Dockerfiles with the Intel® Distribution of OpenVINO™ toolkit for automation building via Red Hat* portal Build System. - -## Prebuilt images - -Prebuilt images are available on [Red Hat* Quay.io](https://quay.io/organization/openvino) and [Red Hat* Ecosystem Catalog](https://catalog.redhat.com/software/containers/intel/openvino-runtime/606ff4d7ecb5241699188fb3) Registries. - ---- -\* Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/rhel8/autobuild/openvino_cg_runtime_2021.4.dockerfile b/dockerfiles/rhel8/autobuild/openvino_cg_runtime_2021.4.dockerfile deleted file mode 100644 index ff079236..00000000 --- a/dockerfiles/rhel8/autobuild/openvino_cg_runtime_2021.4.dockerfile +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright (C) 2019-2021 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8 - -LABEL name="rhel8_runtime" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2021.4" \ - release="2021.4" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/l_openvino_toolkit_runtime_rhel8_p_2021.4.582.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} - -# install product by copying archive content -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -RUN curl -OL ${package_url} && \ - tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+')" && \ - OV_YEAR="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${INTEL_OPENVINO_DIR}/deployment_tools/tools/workbench && rm -rf ${TEMP_DIR} - - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -ARG LGPL_DEPS="gcc-c++" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt" - -ARG INSTALL_SOURCES="no" - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN yum -y update && rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. Please use tag to pull the image with downloaded sources." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - -# setup Python -ENV PYTHON_VER python3.6 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# runtime package - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR /tmp - -RUN ${PYTHON_VER} -m pip install --no-cache-dir -r ${INTEL_OPENVINO_DIR}/python/${PYTHON_VER}/requirements.txt - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt - -# for CPU - -# for GPU -ARG INTEL_OPENCL=19.41.14441 - -RUN groupmod -g 44 video - -# hadolint ignore=DL3031, DL3033 -WORKDIR ${INTEL_OPENVINO_DIR}/install_dependencies -RUN ./install_NEO_OCL_driver.sh --no_numa -y -d ${INTEL_OPENCL} && \ - yum clean all && rm -rf /var/cache/yum && \ - yum remove -y epel-release - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - -RUN if [ -f "${INTEL_OPENVINO_DIR}"/bin/setupvars.sh ]; then \ - printf "\nexport TBB_DIR=\${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/external/tbb/cmake\n" >> ${INTEL_OPENVINO_DIR}/bin/setupvars.sh; \ - printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" >> /home/openvino/.bashrc; \ - printf "\nsource \${INTEL_OPENVINO_DIR}/bin/setupvars.sh\n" >> /root/.bashrc; \ - fi; - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openshift/README.md b/dockerfiles/rhel8/openshift/README.md deleted file mode 100644 index abce019a..00000000 --- a/dockerfiles/rhel8/openshift/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# Build Intel® Distribution of OpenVINO™ toolkit Docker image using Red Hat® OpenShift® Container Platform - -This repository folder contains Dockerfile to build an image with the Intel® Distribution of OpenVINO™ toolkit using Red Hat® OpenShift® Container Platform. - -## Prebuilt images - -Prebuilt images are available on [Red Hat* Quay.io](https://quay.io/organization/openvino) and [Red Hat* Ecosystem Catalog](https://catalog.redhat.com/software/containers/intel/openvino-runtime/606ff4d7ecb5241699188fb3) Registries. - -## Prerequisites - -You need Red Hat Enterprise Linux 8 host with installed [Openshift Container Platform 4](https://docs.openshift.com/container-platform/4.6/welcome/index.html). ->**Note**: -> You can use [Red Hat® CodeReady Containers](https://cloud.redhat.com/openshift/create/local) to create a minimal single node cluster for development and testing on a local PC. -> Read more [here](https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/1.23/). - -## How to build - -### Configure host -1. Create a new folder and place the following files in it: - * Dockerfile - * OpenVINO package (please read [Where to get OpenVINO package](../../README.md#where-to-get-openvino-package) section in the dockerfiles readme.) - * `rhsm.conf` (you can take it from `/etc/rhsm/` folder) - * `redhat-uep.pem` (you can take it from `/etc/rhsm/ca` folder) - * RedHat subscription certificate of your node (you can download it from Red Hat Customer Portal) - - -2. Create a build secret with your Red Hat® subscription certificate: -```shell -oc create secret generic entitlement --from-file=entitlement.pem=.pem --from-file=entitlement-key.pem=.pem -``` -3. Create build configmaps with Red Hat® subscription manager configuration: -```shell -oc create configmap rhsm-conf --from-file rhsm.conf -oc create configmap rhsm-ca --from-file redhat-uep.pem -``` -### Create build configuration -```shell - cat openvino_cg_openshift_runtime_2021.3.dockerfile | oc new-build --name --dockerfile='-' --build-secret entitlement \ - --build-config-map rhsm-conf:rhsm-conf --build-config-map rhsm-ca:rhsm-ca \ - --build-arg package_url= -``` - ->**Note**: -> Read specified RedHat documentation pages for more info: -> * [Using Red Hat subscriptions in builds](https://docs.openshift.com/container-platform/4.6/builds/running-entitled-builds.html) -> * [How to use entitled image builds to build DriverContainers with UBI on OpenShift](https://www.openshift.com/blog/how-to-use-entitled-image-builds-to-build-drivercontainers-with-ubi-on-openshift) -> * [How to use entitled image builds on Red Hat OpenShift Container Platform 4.x cluster ?](https://access.redhat.com/solutions/4908771) - -### Start build -```shell -oc start-build --from-file --no-cache=true --follow -``` ---- -\* Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/rhel8/openshift/openvino_cg_openshift_dev_2022.1.0.dockerfile b/dockerfiles/rhel8/openshift/openvino_cg_openshift_dev_2022.1.0.dockerfile deleted file mode 100644 index b966a33e..00000000 --- a/dockerfiles/rhel8/openshift/openvino_cg_openshift_dev_2022.1.0.dockerfile +++ /dev/null @@ -1,179 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.4 - -LABEL name="rhel8_dev" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2022.1.0" \ - release="2022.1.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" -# hadolint ignore=DL3002 -USER root - -COPY entitlement.pem /etc/pki/entitlement -COPY entitlement-key.pem /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca - -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - - -COPY ${package_url} ${TEMP_DIR}/ - - -# install product by copying archive content - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -WORKDIR ${TEMP_DIR} - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${INTEL_OPENVINO_DIR}/tools/workbench && rm -rf ${TEMP_DIR} - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - - -ARG LGPL_DEPS="gcc-c++ \ - glibc \ - libstdc++ \ - libgcc" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt" - -ARG INSTALL_SOURCES="no" - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rm /etc/rhsm-host && yum update -y --excludepkgs redhat-release && rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. Please use tag to pull the image with downloaded sources." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake - -# setup Python -ENV PYTHON_VER python3.6 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.1.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz --output chardet-4.0.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://github.com/openvinotoolkit/docker_ci/blob/releases/2022/1/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt && \ - curl -L https://github.com/openvinotoolkit/docker_ci/blob/releases/2022/1/dockerfiles/rhel8/third-party-programs-docker-dev.txt --output third-party-programs-docker-dev.txt - -# for CPU - -# for GPU -RUN groupmod -g 44 video - -# hadolint ignore=DL3031, DL3033 -WORKDIR ${INTEL_OPENVINO_DIR}/install_dependencies -RUN ./install_NEO_OCL_driver.sh --no_numa -y && \ - yum clean all && rm -rf /var/cache/yum && \ - yum remove -y epel-release - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp && rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openshift/openvino_cg_openshift_runtime_2022.1.0.dockerfile b/dockerfiles/rhel8/openshift/openvino_cg_openshift_runtime_2022.1.0.dockerfile deleted file mode 100644 index 47d20c37..00000000 --- a/dockerfiles/rhel8/openshift/openvino_cg_openshift_runtime_2022.1.0.dockerfile +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.4 - -LABEL name="rhel8_runtime" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2022.1.0" \ - release="2022.1.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" -# hadolint ignore=DL3002 -USER root - -COPY entitlement.pem /etc/pki/entitlement -COPY entitlement-key.pem /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca - -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - - -COPY ${package_url} ${TEMP_DIR}/ - - -# install product by copying archive content - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -WORKDIR ${TEMP_DIR} - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${INTEL_OPENVINO_DIR}/tools/workbench && rm -rf ${TEMP_DIR} - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - - -ARG LGPL_DEPS="gcc-c++" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt" - -ARG INSTALL_SOURCES="no" - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rm /etc/rhsm-host && yum update -y --excludepkgs redhat-release && rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. Please use tag to pull the image with downloaded sources." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake - -# setup Python -ENV PYTHON_VER python3.6 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.1.0 -ARG OPENVINO_WHEELS_URL -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/releases/2022/1/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt - -# for CPU - -# for GPU -RUN groupmod -g 44 video - -# hadolint ignore=DL3031, DL3033 -WORKDIR ${INTEL_OPENVINO_DIR}/install_dependencies -RUN ./install_NEO_OCL_driver.sh --no_numa -y && \ - yum clean all && rm -rf /var/cache/yum && \ - yum remove -y epel-release - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp && rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_dev_2024.0.0.dockerfile b/dockerfiles/rhel8/openvino_cg_dev_2024.0.0.dockerfile deleted file mode 100644 index b4e6b1e5..00000000 --- a/dockerfiles/rhel8/openvino_cg_dev_2024.0.0.dockerfile +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.9 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base as opencv -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - - -COPY ./entitlement /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca - - -RUN rm -f /etc/rhsm-host && subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms -RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && dnf clean all -RUN dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm && dnf clean all -# hadolint ignore=DL3033 -RUN yum install -y \ - gtk3-devel \ - gstreamer1-devel \ - gstreamer1-plugins-base-devel \ - ffmpeg-devel \ - libmfx-devel \ - cmake \ - git \ - python38-devel \ - python38-pip \ - gcc-c++ \ - gcc && yum clean all - -RUN rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" # 4.8 with a fix for building tests -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && cmake -P cmake_install.cmake && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8:8.9 AS ov_base - -LABEL name="rhel8_dev" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.0.0" \ - release="2024.0.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="gcc-c++ \ - glibc \ - libstdc++ \ - libgcc" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt -c=core -c=dev" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.0.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102,DL3033 -RUN yum install -y cmake git && yum clean all && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz --output chardet-4.0.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt && \ - curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-dev.txt --output third-party-programs-docker-dev.txt - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies needed by OV::RemoteTensor -RUN yum install -y \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/ocl-icd-devel-2.2.12-1.el8.x86_64.rpm \ - https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm && \ - yum clean all - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR "${INTEL_OPENVINO_DIR}"/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_dev_2024.1.0.dockerfile b/dockerfiles/rhel8/openvino_cg_dev_2024.1.0.dockerfile deleted file mode 100644 index 173fbd9a..00000000 --- a/dockerfiles/rhel8/openvino_cg_dev_2024.1.0.dockerfile +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.9 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base as opencv -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - - -COPY ./entitlement /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca - - -RUN rm -f /etc/rhsm-host && subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms -RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && dnf clean all -RUN dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm && dnf clean all -# hadolint ignore=DL3033 -RUN yum install -y \ - gtk3-devel \ - gstreamer1-devel \ - gstreamer1-plugins-base-devel \ - ffmpeg-devel \ - libmfx-devel \ - cmake \ - git \ - python38-devel \ - python38-pip \ - gcc-c++ \ - gcc && yum clean all - -RUN rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" # 4.8 with a fix for building tests -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && cmake -P cmake_install.cmake && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8:8.9 AS ov_base - -LABEL name="rhel8_dev" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.1.0" \ - release="2024.1.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="gcc-c++ \ - glibc \ - libstdc++ \ - libgcc" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt -c=core -c=dev" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.1.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102,DL3033 -RUN yum install -y cmake git && yum clean all && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz --output chardet-4.0.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt && \ - curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-dev.txt --output third-party-programs-docker-dev.txt - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies needed by OV::RemoteTensor -RUN yum install -y \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/ocl-icd-devel-2.2.12-1.el8.x86_64.rpm \ - https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm && \ - yum clean all - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR "${INTEL_OPENVINO_DIR}"/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_dev_2024.2.0.dockerfile b/dockerfiles/rhel8/openvino_cg_dev_2024.2.0.dockerfile deleted file mode 100644 index d4736138..00000000 --- a/dockerfiles/rhel8/openvino_cg_dev_2024.2.0.dockerfile +++ /dev/null @@ -1,360 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.9 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_rhel8_2024.2.0.15519.5c0f38f83f6_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base as opencv -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - - -COPY ./entitlement /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca - - -RUN rm -f /etc/rhsm-host && subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms -RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && dnf clean all -RUN dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm && dnf clean all -# hadolint ignore=DL3033 -RUN yum install -y \ - gtk3-devel \ - gstreamer1-devel \ - gstreamer1-plugins-base-devel \ - ffmpeg-devel \ - libmfx-devel \ - cmake \ - git \ - python38-devel \ - python38-pip \ - gcc-c++ \ - gcc && yum clean all - -RUN rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -# 4.8 with a fix for building tests -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && cmake -P cmake_install.cmake && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8:8.9 AS ov_base - -LABEL name="rhel8_dev" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.2.0" \ - release="2024.2.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="gcc-c++ \ - glibc \ - libstdc++ \ - libgcc" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt -c=core -c=dev" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.2.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102,DL3033 -RUN yum install -y cmake git && yum clean all && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz --output chardet-4.0.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt && \ - curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-dev.txt --output third-party-programs-docker-dev.txt - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies needed by OV::RemoteTensor -RUN yum install -y \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/ocl-icd-devel-2.2.12-1.el8.x86_64.rpm \ - https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm && \ - yum clean all - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR "${INTEL_OPENVINO_DIR}"/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_dev_2024.3.0.dockerfile b/dockerfiles/rhel8/openvino_cg_dev_2024.3.0.dockerfile deleted file mode 100644 index 60d003db..00000000 --- a/dockerfiles/rhel8/openvino_cg_dev_2024.3.0.dockerfile +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/l_openvino_toolkit_rhel8_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base as opencv -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - - -COPY ./entitlement /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca - - -RUN rm -f /etc/rhsm-host && subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms -RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && dnf clean all -RUN dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm && dnf clean all -# hadolint ignore=DL3033 -RUN yum install -y \ - gtk3-devel \ - gstreamer1-devel \ - gstreamer1-plugins-base-devel \ - ffmpeg-devel \ - libmfx-devel \ - cmake \ - git \ - python38-devel \ - python38-pip \ - gcc-c++ \ - gcc && yum clean all - -RUN rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && cmake -P cmake_install.cmake && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8 AS ov_base - -LABEL name="rhel8_dev" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.3.0" \ - release="2024.3.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="gcc-c++ \ - glibc \ - libstdc++ \ - libgcc" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt -c=core -c=dev" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.3.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102,DL3033 -RUN yum install -y cmake git && yum clean all && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz --output chardet-4.0.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt && \ - curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-dev.txt --output third-party-programs-docker-dev.txt - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies needed by OV::RemoteTensor -RUN yum install -y \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/ocl-icd-devel-2.2.12-1.el8.x86_64.rpm \ - https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm && \ - yum clean all - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR "${INTEL_OPENVINO_DIR}"/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_runtime_2024.0.0.dockerfile b/dockerfiles/rhel8/openvino_cg_runtime_2024.0.0.dockerfile deleted file mode 100644 index c0003734..00000000 --- a/dockerfiles/rhel8/openvino_cg_runtime_2024.0.0.dockerfile +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.9 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8:8.9 AS ov_base - -LABEL name="rhel8_runtime" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.0.0" \ - release="2024.0.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="bash" # no new packages -ARG INSTALL_PACKAGES="-c=python -c=core" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_runtime_2024.1.0.dockerfile b/dockerfiles/rhel8/openvino_cg_runtime_2024.1.0.dockerfile deleted file mode 100644 index ff8f6163..00000000 --- a/dockerfiles/rhel8/openvino_cg_runtime_2024.1.0.dockerfile +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.9 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8:8.9 AS ov_base - -LABEL name="rhel8_runtime" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.1.0" \ - release="2024.1.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="bash" # no new packages -ARG INSTALL_PACKAGES="-c=python -c=core" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_runtime_2024.2.0.dockerfile b/dockerfiles/rhel8/openvino_cg_runtime_2024.2.0.dockerfile deleted file mode 100644 index f5f45d06..00000000 --- a/dockerfiles/rhel8/openvino_cg_runtime_2024.2.0.dockerfile +++ /dev/null @@ -1,186 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8:8.9 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_rhel8_2024.2.0.15519.5c0f38f83f6_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8:8.9 AS ov_base - -LABEL name="rhel8_runtime" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.2.0" \ - release="2024.2.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -# no new packages -ARG LGPL_DEPS="bash" -ARG INSTALL_PACKAGES="-c=python -c=core" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/openvino_cg_runtime_2024.3.0.dockerfile b/dockerfiles/rhel8/openvino_cg_runtime_2024.3.0.dockerfile deleted file mode 100644 index 7b55eb89..00000000 --- a/dockerfiles/rhel8/openvino_cg_runtime_2024.3.0.dockerfile +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM registry.access.redhat.com/ubi8 AS base -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/l_openvino_toolkit_rhel8_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - - -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - - -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - - -# ----------------- -FROM registry.access.redhat.com/ubi8 AS ov_base - -LABEL name="rhel8_runtime" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="2024.3.0" \ - release="2024.3.0" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - - - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - - - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - - - -ARG LGPL_DEPS="bash" -ARG INSTALL_PACKAGES="-c=python -c=core" - -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - - -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf - - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt - -# for CPU - -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all - - -# Post-installation cleanup and setting up OpenVINO environment variables - -RUN rm -rf /tmp && mkdir /tmp - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/rhel8/third-party-programs-docker-dev.txt b/dockerfiles/rhel8/third-party-programs-docker-dev.txt deleted file mode 100644 index 8e94493a..00000000 --- a/dockerfiles/rhel8/third-party-programs-docker-dev.txt +++ /dev/null @@ -1,3248 +0,0 @@ -OpenVINO development Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. ------------------------------------------------------------------------------------------------------ -1. tensorflow - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------- -Files: third_party/compute_library/... - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - ------------------- -Files: ACKNOWLEDGEMENTS -LICENSE - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------- -Files: third_party/hexagon - -Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted (subject to the limitations in the -disclaimer below) provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of The Linux Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE -GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT -HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------------------- -2. mxnet - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ====================================================================================== - Apache MXNET (incubating) Subcomponents: - - The Apache MXNET (incubating) project contains subcomponents with separate - copyright notices and license terms. Your use of the source code for the - these subcomponents is subject to the terms and conditions of the following - licenses. If not stated otherwise, their copyright notices and license terms - are available at the path of the subcomponent. - - If a folder hierarchy is listed as subcomponent, separate listings of - further subcomponents (files or folder hierarchies) part of the hierarchy - take precedence. - - ======================================================================================= - Apache-2.0 license - ======================================================================================= - - 3rdparty/ctc_include - 3rdparty/dlpack - 3rdparty/dmlc-core - 3rdparty/mshadow - 3rdparty/tvm - 3rdparty/tvm/3rdparty/dmlc-core - 3rdparty/tvm/3rdparty/dlpack - 3rdparty/ps-lite - 3rdparty/onednn - 3rdparty/googletest/googlemock/scripts/generator - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark - 3rdparty/onednn/tests/benchdnn (Copy of the License available at top of current file) - src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file) - 3rdparty/onednn/doc/assets/mathjax (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/material-design-icons-3.0.1 (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/font/Roboto (Copy of the License available at top of current file) - 3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file) - - ======================================================================================= - MIT license - ======================================================================================= - - 3rdparty/miniz/miniz.c - 3rdparty/miniz/miniz.h - example/gluon/tree_lstm - 3rdparty/tvm/3rdparty/cma - 3rdparty/onnx-tensorrt - 3rdparty/onnx-tensorrt/third_party/onnx - docs/static_site/src/assets/js/clipboard.js - docs/python_docs/themes/mx-theme - 3rdparty/intgemm - 3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h - src/operator/nn/layer_norm.cc - - ======================================================================================= - 3-clause BSD license - ======================================================================================= - - 3rdparty/onednn/src/cpu/x64/xbyak - 3rdparty/onednn/tests/gtests/gtest - 3rdparty/onednn/cmake/FindOpenCL.cmake (Copy of the License available at licenses/BSD3-cmake) - 3rdparty/onednn/src/cpu/x64/jit_utils/jitprofiling/ - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/ctc_include/contrib/moderngpu - 3rdparty/nvidia_cub - 3rdparty/nvidia_cub/test/mersenne.h - 3rdparty/googletest/googlemock - 3rdparty/googletest/googletest - cmake/upstream/FindCUDAToolkit.cmake - cmake/upstream/select_compute_arch.cmake - src/operator/numpy/np_einsum_op-inl.h - src/operator/numpy/np_einsum_path_op-inl.h - src/operator/numpy/np_einsum_op.cc - src/operator/contrib/erfinv-inl.h - - ======================================================================================= - 2-clause BSD license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/concurrentqueue.h - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindEigen3.cmake (Copy of the License available at licenses/BSD2) - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/tvm/3rdparty/picojson/picojson.h - - ======================================================================================= - Apache-2.0 license + LLVM Exceptions - ======================================================================================= - - 3rdparty/openmp - - ======================================================================================= - Caffe Licensing Model - ======================================================================================= - - src/operator/nn/pool.h - src/operator/nn/pool.cuh - src/operator/nn/im2col.h - src/operator/nn/im2col.cuh - src/operator/contrib/nn/deformable_im2col.h - src/operator/contrib/nn/deformable_im2col.cuh - src/operator/contrib/nn/modulated_deformable_im2col.h - src/operator/contrib/nn/modulated_deformable_im2col.cuh - - ======================================================================================= - 2-clause BSD license + zlib license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/blockingconcurrentqueue.h - - ======================================================================================= - Apache-2.0 license + 3-clause BSD license - ======================================================================================= - - python/mxnet/contrib/onnx/mx2onnx/_op_translations.py - python/mxnet/contrib/onnx/mx2onnx/export_onnx.py - - ======================================================================================= - Apache-2.0 license + MIT License - ======================================================================================= - - src/serialization/cnpy.h (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - src/serialization/cnpy.cc (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) - - ======================================================================================= - Apache-2.0 license + Boost Software License, Version 1.0 - ======================================================================================= - - cmake/Modules/FindJeMalloc.cmake - - ======================================================================================= - Boost Software License, Version 1.0 - ======================================================================================= - - 3rdparty/intgemm/test/3rd_party/catch.hpp (Copy of the License available at licenses/BOOST1_0) - 3rdparty/onednn/src/common/primitive_hashing.hpp - - ======================================================================================= - LLVM Release License - ======================================================================================= - - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang - - ======================================================================================= - Unlicense - ======================================================================================= - - 3rdparty/tvm/3rdparty/rang - - ======================================================================================= - SIL Open Font License (OFL) - ======================================================================================= - - docs/python_docs/themes/mx-theme/mxtheme/static/webfonts/ (Copy of the License available at licenses/OFL1_1) --------------------------------------------------------------------------------------------------------------------- - -3. sentencepiece - - tokenizers - - tensorboard - Copyright 2017 The TensorFlow Authors. - All rights reserved. - - yacs - - onnx - - requests - - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- -4.cmake - -CMake - Cross Platform Makefile Generator -Copyright 2000-2021 Kitware, Inc. and Contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -* Neither the name of Kitware, Inc. nor the names of Contributors - may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------------------------------------------------------------------- - -The following individuals and institutions are among the Contributors: - -* Aaron C. Meadows -* Adriaan de Groot -* Aleksey Avdeev -* Alexander Neundorf -* Alexander Smorkalov -* Alexey Sokolov -* Alex Merry -* Alex Turbov -* Andreas Pakulat -* Andreas Schneider -* André Rigland Brodtkorb -* Axel Huebl, Helmholtz-Zentrum Dresden - Rossendorf -* Benjamin Eikel -* Bjoern Ricks -* Brad Hards -* Christopher Harvey -* Christoph Grüninger -* Clement Creusot -* Daniel Blezek -* Daniel Pfeifer -* Enrico Scholz -* Eran Ifrah -* Esben Mose Hansen, Ange Optimization ApS -* Geoffrey Viola -* Google Inc -* Gregor Jasny -* Helio Chissini de Castro -* Ilya Lavrenov -* Insight Software Consortium -* Jan Woetzel -* Julien Schueller -* Kelly Thompson -* Konstantin Podsvirov -* Laurent Montel -* Mario Bensi -* Martin Gräßlin -* Mathieu Malaterre -* Matthaeus G. Chajdas -* Matthias Kretz -* Matthias Maennich -* Michael Hirsch, Ph.D. -* Michael Stürmer -* Miguel A. Figueroa-Villanueva -* Mike Jackson -* Mike McQuaid -* Nicolas Bock -* Nicolas Despres -* Nikita Krupen'ko -* NVIDIA Corporation -* OpenGamma Ltd. -* Patrick Stotko -* Per Øyvind Karlsen -* Peter Collingbourne -* Petr Gotthard -* Philip Lowman -* Philippe Proulx -* Raffi Enficiaud, Max Planck Society -* Raumfeld -* Roger Leigh -* Rolf Eike Beer -* Roman Donchenko -* Roman Kharitonov -* Ruslan Baratov -* Sebastian Holtermann -* Stephen Kelly -* Sylvain Joubert -* The Qt Company Ltd. -* Thomas Sondergaard -* Tobias Hunger -* Todd Gamblin -* Tristan Carel -* University of Dundee -* Vadim Zhukov -* Will Dicharry - -See version control history for details of individual contributions. - -The above copyright and license notice applies to distributions of -CMake in source and binary form. Third-party software packages supplied -with CMake under compatible licenses provide their own copyright notices -documented in corresponding subdirectories or source files. - ------------------------------------------------------------------------------- - -CMake was initially developed by Kitware with the following sponsorship: - - * National Library of Medicine at the National Institutes of Health - as part of the Insight Segmentation and Registration Toolkit (ITK). - - * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel - Visualization Initiative. - - * National Alliance for Medical Image Computing (NAMIC) is funded by the - National Institutes of Health through the NIH Roadmap for Medical Research, - Grant U54 EB005149. - - * Kitware, Inc. -------------------------------------------------------------------------------------------- -5. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ---------------------------------------------------------------------------------------------- -6. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. ------------------------------------------------------------------------------------------------ -7. networkx - Copyright (C) 2004-2021, NetworkX Developers - Aric Hagberg - Dan Schult - Pieter Swart - All rights reserved. - - protobuf - Copyright (c) 2016, Daniel Wirtz All rights reserved. - - scikit-learn - Copyright (c) 2007-2021 The scikit-learn developers. - All rights reserved. - - shapely - Copyright (c) 2007, Sean C. Gillies - All rights reserved. - - scipy - Copyright (c) 2001-2002 Enthought, Inc. 2003-2019, SciPy Developers. - All rights reserved. - - torchvision - Copyright (c) Soumith Chintala 2016, - Copyright (c) Andrew Kane 2020-2021, - All rights reserved. - - pandas - Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team - All rights reserved. - Copyright (c) 2011-2021, Open source contributors. - - hyperopt - Copyright (c) 2013, James Bergstra - All rights reserved. - - mpmath - Copyright (c) 2005-2021 Fredrik Johansson and mpmath contributors - All rights reserved. - - numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - imagecodecs - Copyright (c) 2008-2022, Christoph Gohlke - All rights reserved. - - fastjsonschema - Copyright (c) 2018, Michal Horejsek - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------------------------------------------------------------------------- -8. scikit-image - -Copyright (C) 2019, the scikit-image team -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - 3. Neither the name of skimage nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:_check_version - - Copyright (c) 2013 The IPython Development Team - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:is_installed: - - Original Copyright (C) 2009-2011 Pierre Raybaut - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------------- -9. sympy -Copyright (c) 2006-2021 SymPy Development Team - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Patches that were taken from the Diofant project (https://github.com/diofant/diofant) -are licensed as: - -Copyright (c) 2006-2018 SymPy Development Team, - 2013-2021 Sergey B Kirpichev - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of Diofant or SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Submodules taken from the multipledispatch project (https://github.com/mrocklin/multipledispatch) -are licensed as: - -Copyright (c) 2014 Matthew Rocklin - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of multipledispatch nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -The files under the directory sympy/parsing/autolev/tests/pydy-example-repo -are directly copied from PyDy project and are licensed as: - -Copyright (c) 2009-2021, PyDy Authors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -* Neither the name of this project nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL PYDY AUTHORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------------------- -10.Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ---------------------------------------------------------------------------------------- -11.GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! -------------------------------------------------------------------------------------- -12.libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------ -13.gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -14. libc6-dev - -* Most of the GNU C library is under the following copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - 02110-1301 USA - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. - -* The utilities associated with GNU C library is under the following - copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/GPL-2'. - -* All code incorporated from 4.4 BSD is distributed under the following - license: - - Copyright (C) 1991 Regents of the University of California. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. [This condition was removed.] - 4. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - -* The DNS resolver code, taken from BIND 4.9.5, is copyrighted both by - UC Berkeley and by Digital Equipment Corporation. The DEC portions - are under the following license: - - Portions Copyright (C) 1993 by Digital Equipment Corporation. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies, and - that the name of Digital Equipment Corporation not be used in - advertising or publicity pertaining to distribution of the document or - software without specific, written prior permission. - - THE SOFTWARE IS PROVIDED ``AS IS'' AND DIGITAL EQUIPMENT CORP. - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL - DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -* The ISC portions are under the following license: - - Portions Copyright (c) 1996-1999 by Internet Software Consortium. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS - ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE - CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL - DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR - PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS - ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS - SOFTWARE. - -* The Sun RPC support (from rpcsrc-4.0) is covered by the following - license: - - Copyright (c) 2010, Oracle America, Inc. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - * Neither the name of the "Oracle America, Inc." nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following CMU license covers some of the support code for Mach, - derived from Mach 3.0: - - Mach Operating System - Copyright (C) 1991,1990,1989 Carnegie Mellon University - All Rights Reserved. - - Permission to use, copy, modify and distribute this software and its - documentation is hereby granted, provided that both the copyright - notice and this permission notice appear in all copies of the - software, derivative works or modified versions, and any portions - thereof, and that both notices appear in supporting documentation. - - CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS ``AS IS'' - CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR - ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - - Carnegie Mellon requests users of this software to return to - - Software Distribution Coordinator - School of Computer Science - Carnegie Mellon University - Pittsburgh PA 15213-3890 - - or Software.Distribution@CS.CMU.EDU any improvements or - extensions that they make and grant Carnegie Mellon the rights to - redistribute these changes. - -* The file if_ppp.h is under the following CMU license: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY AND - CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following license covers the files from Intel's "Highly Optimized - Mathematical Functions for Itanium" collection: - - Intel License Agreement - - Copyright (c) 2000, Intel Corporation - - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * The name of Intel Corporation may not be used to endorse or promote - products derived from this software without specific prior written - permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The files inet/getnameinfo.c and sysdeps/posix/getaddrinfo.c are copyright - (C) by Craig Metz and are distributed under the following license: - - /* The Inner Net License, Version 2.00 - - The author(s) grant permission for redistribution and use in source and - binary forms, with or without modification, of the software and documentation - provided that the following conditions are met: - - 0. If you receive a version of the software that is specifically labelled - as not being for redistribution (check the version message and/or README), - you are not permitted to redistribute that version of the software in any - way or form. - 1. All terms of the all other applicable copyrights and licenses must be - followed. - 2. Redistributions of source code must retain the authors' copyright - notice(s), this list of conditions, and the following disclaimer. - 3. Redistributions in binary form must reproduce the authors' copyright - notice(s), this list of conditions, and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 4. [The copyright holder has authorized the removal of this clause.] - 5. Neither the name(s) of the author(s) nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - If these license terms cause you a real problem, contact the author. */ - -* The file sunrpc/des_impl.c is copyright Eric Young: - - Copyright (C) 1992 Eric Young - Collected from libdes and modified for SECURE RPC by Martin Kuck 1994 - This file is distributed under the terms of the GNU Lesser General - Public License, version 2.1 or later - see the file COPYING.LIB for details. - If you did not receive a copy of the license with this program, please - see to obtain a copy. - -* The libidn code is copyright Simon Josefsson, with portions copyright - The Internet Society, Tom Tromey and Red Hat, Inc.: - - Copyright (C) 2002, 2003, 2004, 2011 Simon Josefsson - - This file is part of GNU Libidn. - - GNU Libidn is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - GNU Libidn is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with GNU Libidn; if not, see . - -* The following notice applies to portions of libidn/nfkc.c: - - This file contains functions from GLIB, including gutf8.c and - gunidecomp.c, all licensed under LGPL and copyright hold by: - - Copyright (C) 1999, 2000 Tom Tromey - Copyright 2000 Red Hat, Inc. - -* The following applies to portions of libidn/punycode.c and - libidn/punycode.h: - - This file is derived from RFC 3492bis written by Adam M. Costello. - - Disclaimer and license: Regarding this entire document or any - portion of it (including the pseudocode and C code), the author - makes no guarantees and is not responsible for any damage resulting - from its use. The author grants irrevocable permission to anyone - to use, modify, and distribute it in any way that does not diminish - the rights of anyone else to use, modify, and distribute it, - provided that redistributed derivative works do not contain - misleading author or version information. Derivative works need - not be licensed under similar terms. - - Copyright (C) The Internet Society (2003). All Rights Reserved. - - This document and translations of it may be copied and furnished to - others, and derivative works that comment on or otherwise explain it - or assist in its implementation may be prepared, copied, published - and distributed, in whole or in part, without restriction of any - kind, provided that the above copyright notice and this paragraph are - included on all such copies and derivative works. However, this - document itself may not be modified in any way, such as by removing - the copyright notice or references to the Internet Society or other - Internet organizations, except as needed for the purpose of - developing Internet standards in which case the procedures for - copyrights defined in the Internet Standards process must be - followed, or as required to translate it into languages other than - English. - - The limited permissions granted above are perpetual and will not be - revoked by the Internet Society or its successors or assigns. - - This document and the information contained herein is provided on an - "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING - TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING - BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION - HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF - MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - -* The file inet/rcmd.c is under a UCB copyright and the following: - - Copyright (C) 1998 WIDE Project. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the project nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - * The file posix/runtests.c is copyright Tom Lord: - - Copyright 1995 by Tom Lord - - All Rights Reserved - - Permission to use, copy, modify, and distribute this software and its - documentation for any purpose and without fee is hereby granted, - provided that the above copyright notice appear in all copies and that - both that copyright notice and this permission notice appear in - supporting documentation, and that the name of the copyright holder not be - used in advertising or publicity pertaining to distribution of the - software without specific, written prior permission. - - Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, - INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO - EVENT SHALL TOM LORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR - CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF - USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - -* The posix/rxspencer tests are copyright Henry Spencer: - - Copyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved. - This software is not subject to any license of the American Telephone - and Telegraph Company or of the Regents of the University of California. - - Permission is granted to anyone to use this software for any purpose on - any computer system, and to alter it and redistribute it, subject - to the following restrictions: - - 1. The author is not responsible for the consequences of use of this - software, no matter how awful, even if they arise from flaws in it. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. Since few users ever read sources, - credits must appear in the documentation. - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. Since few users - ever read sources, credits must appear in the documentation. - - 4. This notice may not be removed or altered. - -* The file posix/PCRE.tests is copyright University of Cambridge: - - Copyright (c) 1997-2003 University of Cambridge - - Permission is granted to anyone to use this software for any purpose on any - computer system, and to redistribute it freely, subject to the following - restrictions: - - 1. This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. In practice, this means that if you use - PCRE in software that you distribute to others, commercially or - otherwise, you must put a sentence like this - - Regular expression support is provided by the PCRE library package, - which is open source software, written by Philip Hazel, and copyright - by the University of Cambridge, England. - - somewhere reasonably visible in your documentation and in any relevant - files or online help data or similar. A reference to the ftp site for - the source, that is, to - - ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ - - should also be given in the documentation. However, this condition is not - intended to apply to whole chains of software. If package A includes PCRE, - it must acknowledge it, but if package B is software that includes package - A, the condition is not imposed on package B (unless it uses PCRE - independently). - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 4. If PCRE is embedded in any software that is released under the GNU - General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL), - then the terms of that licence shall supersede any condition above with - which it is incompatible. - -* Files from Sun fdlibm are copyright Sun Microsystems, Inc.: - - Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - - Developed at SunPro, a Sun Microsystems, Inc. business. - Permission to use, copy, modify, and distribute this - software is freely granted, provided that this notice - is preserved. - -* Part of stdio-common/tst-printf.c is copyright C E Chew: - - (C) Copyright C E Chew - - Feel free to copy, use and distribute this software provided: - - 1. you do not pretend that you wrote it - 2. you leave this copyright notice intact. - -* Various long double libm functions are copyright Stephen L. Moshier: - - Copyright 2001 by Stephen L. Moshier - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, see - . */ --------------------------------------------------------------------------- -14.pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - py-cpuinfo - Copyright (c) 2014-2021 Matthew Brennan Jones - - tqdm - Copyright (c) 2013 noamraph - - nibabel - Copyright (c) 2009-2019 Matthew Brett - Copyright (c) 2010-2013 Stephan Gerhard - Copyright (c) 2006-2014 Michael Hanke - Copyright (c) 2011 Christian Haselgrove - Copyright (c) 2010-2011 Jarrod Millman - Copyright (c) 2011-2019 Yaroslav Halchenko - Copyright (c) 2015-2019 Chris Markiewicz - - editdistance - Copyright (c) 2019 Hiroyuki Tanaka - - torch - Copyright (c) 2013 Torchlight Software - - future - Copyright (c) 2013-2019 Python Charmers Pty Ltd, Australia - - motmetrics - Copyright (c) 2017-2020 Christoph Heindl - Copyright (c) 2018 Toka - Copyright (c) 2019-2020 Jack Valmadre - - tensorboardX - Copyright (c) 2017 Tzu-Wei Huang - - setuptools - Copyright Jason R. Coombs - - addict - Copyright (c) 2014 Mats Julian Olsen - - jstyleson - Copyright (c) 2016 linjackson - - rawpy - Copyright (c) 2014 Maik Riechert - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - PyYaml - Copyright (c) 2017-2021 Ingy döt Net - Copyright (c) 2006-2016 Kirill Simonov - - urllib3 - Copyright (c) 2008-2020 Andrey Petrov and contributors - - - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -© 2021 GitHub, Inc. --------------------------------------------------------------------------- -16.pydicom - -License file for pydicom, a pure-python DICOM library - -Copyright (c) 2008-2020 Darcy Mason and pydicom contributors - -Except for portions outlined below, pydicom is released under an MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Portions of pydicom (private dictionary file(s)) were generated from the -private dictionary of the GDCM library, released under the following license: - - Program: GDCM (Grassroots DICOM). A DICOM library - Module: http://gdcm.sourceforge.net/Copyright.html - -Copyright (c) 2006-2010 Mathieu Malaterre -Copyright (c) 1993-2005 CREATIS -(CREATIS = Centre de Recherche et d'Applications en Traitement de l'Image) -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither name of Mathieu Malaterre, or CREATIS, nor the names of any - contributors (CNRS, INSERM, UCB, Universite Lyon I), may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -17.libtinfo5 - -This is the Debian prepackaged version of the ncurses -library and terminfo utilities. ncurses/terminfo was originally written -by Pavel Curtis and Zeyd M. Ben-Halim , and is -currently held by the Free Software Foundation. - -This package was put together by Vaidhyanathan G Mayilrangam - and Joel Klecker , using sources -obtained from ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.0.tar.gz. -Current versions of the ncurses sources are found at -ftp://invisible-island.net/ncurses/. - -It is based somewhat on work done by Bruce Perens , -David Engel . Michael Alan Dorman -, Richard Braakman , James Troup -, J.H.M. Dassen (Ray) -, and Galen Hazelwood -over various years. - - -Copyright (c) 1998-2018 Free Software Foundation, Inc. -Copyright © 2001 by Pradeep Padala - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, distribute with modifications, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. - - -Copyright (C) 1994 X Consortium - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not -be used in advertising or otherwise to promote the sale, use or other deal- -ings in this Software without prior written authorization from the X Consor- -tium. - - -Copyright (c) 1980, 1991, 1992, 1993 - The Regents of the University of California. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - - -Copyright 1996-2018 by Thomas E. Dickey - - All Rights Reserved - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. ---------------------------------------------------------------------------- -18. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ----------------------------------------------------------------------------- -19.pillow - -The Python Imaging Library (PIL) is - - Copyright © 1997-2011 by Secret Labs AB - Copyright © 1995-2011 by Fredrik Lundh - -Pillow is the friendly PIL fork. It is - - Copyright © 2010-2021 by Alex Clark and contributors - -Like PIL, Pillow is licensed under the open source HPND License: - -By obtaining, using, and/or copying this software and/or its associated -documentation, you agree that you have read, understood, and will comply -with the following terms and conditions: - -Permission to use, copy, modify, and distribute this software and its -associated documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appears in all copies, and that -both that copyright notice and this permission notice appear in supporting -documentation, and that the name of Secret Labs AB or the author not be -used in advertising or publicity pertaining to distribution of the software -without specific, written prior permission. - -SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS -SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. -IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, -INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------------- -20.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------- -21.defusedxml - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python -alone or in any derivative version, provided, however, that PSF's -License Agreement and PSF's notice of copyright, i.e., "Copyright (c) -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative -version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. ---------------------------------------------------------------------- -22.lmdb - -The OpenLDAP Public License - Version 2.8, 17 August 2003 - -Redistribution and use of this software and associated documentation -("Software"), with or without modification, are permitted provided -that the following conditions are met: - -1. Redistributions in source form must retain copyright statements - and notices, - -2. Redistributions in binary form must reproduce applicable copyright - statements and notices, this list of conditions, and the following - disclaimer in the documentation and/or other materials provided - with the distribution, and - -3. Redistributions must contain a verbatim copy of this document. - -The OpenLDAP Foundation may revise this license from time to time. -Each revision is distinguished by a version number. You may use -this Software under terms of this license revision or under the -terms of any subsequent revision of the license. - -THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS -CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT -SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) -OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -The names of the authors and copyright holders must not be used in -advertising or otherwise to promote the sale, use or other dealing -in this Software without specific, written prior permission. Title -to copyright in this Software shall at all times remain with copyright -holders. - -OpenLDAP is a registered trademark of the OpenLDAP Foundation. - -Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, -California, USA. All Rights Reserved. Permission to copy and -distribute verbatim copies of this document is granted. ------------------------------------------------------------------------- -23. yamlloader - Copyright 2017 Jonas Eschle - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - -Parts of the code, mostly from ordereddict.py including within others -the functions construct_yaml_map, construct_mapping are licensed under the -following license. - -Copyright 2017 François Ménabé - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------------- - - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/rhel8/third-party-programs-docker-runtime.txt b/dockerfiles/rhel8/third-party-programs-docker-runtime.txt deleted file mode 100644 index 0277e4f7..00000000 --- a/dockerfiles/rhel8/third-party-programs-docker-runtime.txt +++ /dev/null @@ -1,1243 +0,0 @@ -OpenVINO runtime Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. --------------------------------------------------------------------------------------------- -1. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------------------------- -2. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - --------------------------------------------------------------------------------------------------- -3. Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ------------------------------------------------------------------------------------------------------- -4. GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! ---------------------------------------------------------------------------------------------- - -5. libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------- -6. gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -7. pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------ -8. numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -9. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ------------------------------------------------------------------------------------- -10.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------- -11. cmake - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ----------------------------------------------------------------------------------------- - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/ubuntu18/build_custom/Dockerfile b/dockerfiles/ubuntu18/build_custom/Dockerfile deleted file mode 100644 index 06c63047..00000000 --- a/dockerfiles/ubuntu18/build_custom/Dockerfile +++ /dev/null @@ -1,214 +0,0 @@ -# Copyright (C) 2020-2022 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:18.04 AS setup_openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -# hadolint ignore=DL3008 -RUN apt-get update; \ - DEBIAN_FRONTEND=noninteractive \ - apt-get install -y --no-install-recommends \ - apt-utils \ - git \ - git-lfs \ - ca-certificates \ - sudo \ - tzdata; \ - rm -rf /var/lib/apt/lists/* - -ARG OPENVINO_FORK="openvinotoolkit" -ARG OPENVINO_BRANCH="master" -ARG OMZ_BRANCH - -# hadolint ignore=DL3003 -RUN git-lfs install; \ - git clone https://github.com/${OPENVINO_FORK}/openvino.git \ - --recurse-submodules --shallow-submodules --depth 1 -b ${OPENVINO_BRANCH} /opt/intel/repo/openvino; \ - if [ -n "$OMZ_BRANCH" ]; then \ - cd /opt/intel/repo/openvino/thirdparty/open_model_zoo && \ - git remote set-branches origin '*' && \ - git fetch --depth 1 origin "$OMZ_BRANCH" && \ - git checkout "$OMZ_BRANCH"; \ - fi - -WORKDIR /opt/intel/repo/openvino -RUN chmod +x install_build_dependencies.sh; \ - ./install_build_dependencies.sh - -RUN chmod +x scripts/install_dependencies/install_NEO_OCL_driver.sh; \ - ./scripts/install_dependencies/install_NEO_OCL_driver.sh -y --no_numa - -# hadolint ignore=DL3013 -RUN chmod +x scripts/install_dependencies/install_openvino_dependencies.sh; \ - ./scripts/install_dependencies/install_openvino_dependencies.sh -y -c=python; \ - python3 -m pip install --no-cache-dir --upgrade pip; \ - python3 -m pip install --no-cache-dir -r src/bindings/python/src/compatibility/openvino/requirements-dev.txt - -WORKDIR /opt/intel/repo -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM setup_openvino AS build_openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -COPY openvino_cmake.txt /opt/intel/repo - -RUN python3 -m pip install --no-cache-dir -r /opt/intel/repo/openvino/src/bindings/python/wheel/requirements-dev.txt - -WORKDIR /opt/intel/repo/openvino/build -# hadolint ignore=SC2046 -RUN cmake $(cat /opt/intel/repo/openvino_cmake.txt) /opt/intel/repo/openvino; \ - make "-j$(nproc)"; \ - make install - -WORKDIR /tmp -RUN curl -L https://github.com/libusb/libusb/archive/v1.0.22.zip --output v1.0.22.zip; \ - unzip v1.0.22.zip; \ - rm -rf v1.0.22.zip - -WORKDIR /tmp/libusb-1.0.22 -RUN ./bootstrap.sh; \ - ./configure --disable-udev --enable-shared; \ - make "-j$(nproc)" - -WORKDIR /opt/intel/repo -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM ubuntu:18.04 AS copy_openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -ENV INTEL_OPENVINO_DIR="/opt/intel/openvino" - -COPY --from=build_openvino /opt/intel/repo/openvino/build/install ${INTEL_OPENVINO_DIR} -COPY --from=build_openvino /tmp/libusb-1.0.22 /opt/libusb-1.0.22 - -WORKDIR ${INTEL_OPENVINO_DIR} -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM copy_openvino AS openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -# hadolint ignore=DL3008 -RUN apt-get update; \ - DEBIAN_FRONTEND=noninteractive \ - apt-get install -y --no-install-recommends \ - apt-utils \ - wget \ - udev \ - sudo \ - gdb \ - tzdata; \ - rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR} -RUN chmod +x install_dependencies/install_openvino_dependencies.sh; \ - ./install_dependencies/install_openvino_dependencies.sh -y -c=python -c=dev - -RUN chmod +x install_dependencies/install_NEO_OCL_driver.sh; \ - ./install_dependencies/install_NEO_OCL_driver.sh -y --no_numa - -WORKDIR /opt/libusb-1.0.22 -RUN ./libtool --mode=install install -c libusb/libusb-1.0.la /usr/local/lib/; \ - mkdir -p /usr/local/include/libusb-1.0; \ - install -c -m 644 libusb/libusb.h /usr/local/include/libusb-1.0; \ - mkdir -p /usr/local/lib/pkgconfig; \ - install -c -m 644 libusb-1.0.pc /usr/local/lib/pkgconfig - -WORKDIR ${INTEL_OPENVINO_DIR} -RUN chmod +x install_dependencies/install_NCS_udev_rules.sh; \ - ./install_dependencies/install_NCS_udev_rules.sh - -# hadolint ignore=DL3013 -RUN python3 -m pip install --no-cache-dir --upgrade pip; \ - python3 -m pip install --no-cache-dir -r python/python3.6/requirements.txt; \ - python3 -m pip install --no-cache-dir openvino --find-links=tools/ ; \ - python3 -m pip install --no-cache-dir 'openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]' --find-links=tools/ - -RUN printf "\nsource \${INTEL_OPENVINO_DIR}/setupvars.sh\n" >> /root/.bashrc - -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM openvino AS opencv - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - libva-dev \ - libgtk-3-dev \ - libavcodec-dev \ - libavformat-dev \ - libavutil-dev \ - libswscale-dev \ - libavresample-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev \ - libgstreamer-plugins-good1.0-dev \ - libgstreamer-plugins-bad1.0-dev; \ - rm -rf /var/lib/apt/lists/* - -ARG OPENCV_BRANCH="master" - -ARG BUILD_OPENCV_CONTRIB="no" -ARG OPENCV_CONTRIB_BRANCH="master" - -WORKDIR /opt/intel/repo -RUN git clone https://github.com/opencv/opencv.git --depth 1 -b ${OPENCV_BRANCH} && \ - if [ "$BUILD_OPENCV_CONTRIB" = "yes" ]; then \ - git clone https://github.com/opencv/opencv_contrib.git --depth 1 -b ${OPENCV_CONTRIB_BRANCH}; fi - -COPY opencv_cmake.txt /opt/intel/repo - -WORKDIR /opt/intel/repo/opencv/build -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}/setupvars.sh"; \ - if [ "$BUILD_OPENCV_CONTRIB" = "yes" ]; then \ - apt-get update && \ - apt-get install -y --no-install-recommends libtesseract-dev && \ - cmake $(cat /opt/intel/repo/opencv_cmake.txt) -D OPENCV_EXTRA_MODULES_PATH=/opt/intel/repo/opencv_contrib/modules /opt/intel/repo/opencv && \ - rm -rf /var/lib/apt/lists/* ; \ - else \ - cmake $(cat /opt/intel/repo/opencv_cmake.txt) /opt/intel/repo/opencv; \ - fi; \ - make "-j$(nproc)"; \ - make install - -WORKDIR /opt/intel/repo/opencv/build/install -RUN mkdir "${INTEL_OPENVINO_DIR}/extras"; \ - cp -r . "${INTEL_OPENVINO_DIR}/extras/opencv"; \ - cp -r "${INTEL_OPENVINO_DIR}/extras/opencv/python/python3" "${INTEL_OPENVINO_DIR}/python"; \ - rm -r "${INTEL_OPENVINO_DIR}/extras/opencv/python"; \ - echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - python3 -m pip uninstall -y opencv-python; \ - rm -rf /opt/intel/repo/opencv/build/install - -WORKDIR ${INTEL_OPENVINO_DIR} -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM opencv as openvino_repo - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -ENV INTEL_OPENVINO_DIR="/opt/intel/openvino" - -COPY --from=build_openvino /opt/intel/repo /opt/intel/repo - -# hadolint ignore=DL3013 -RUN ln --symbolic /opt/intel/repo/openvino/thirdparty/open_model_zoo/ ${INTEL_OPENVINO_DIR}/open_model_zoo && \ - python3 -m pip install --no-cache-dir --no-deps open_model_zoo/demos/common/python - -WORKDIR ${INTEL_OPENVINO_DIR} -CMD ["/bin/bash"] \ No newline at end of file diff --git a/dockerfiles/ubuntu18/build_custom/README.md b/dockerfiles/ubuntu18/build_custom/README.md deleted file mode 100644 index 9d73a027..00000000 --- a/dockerfiles/ubuntu18/build_custom/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# Build custom Intel® Distribution of OpenVINO™ toolkit Docker image -This repository folder contains the Dockerfile to build a docker image with the Intel® Distribution of OpenVINO™ toolkit. - -## Components -* [OpenVINO™ Toolkit - Deep Learning Deployment Toolkit repository](https://github.com/openvinotoolkit/openvino) -* [OpenCV: Open Source Computer Vision Library](https://github.com/opencv/opencv) -* [OpenVINO™ Toolkit - Open Model Zoo repository](https://github.com/openvinotoolkit/open_model_zoo) - -## How to build -Go to the folder with the Dockerfile and run: -``` -docker build -t [image:tag] . -``` - -* `/opt/intel/openvino` folder will contain OpenVINO build -* `/opt/intel/repo` will contain OpenVINO™ and OpenCV git repositories in `openvino` and `opencv` folders accordingly. - - -If you want to rebuild the entire image, use the docker `--no-cache` option: -``` -docker build --no-cache -t image:tag . -``` - -You can use the docker `--build-arg` option to override the following variables: -* `OPENVINO_FORK` - To specify a GitHub fork of the OpenVINO repository to use. By default, it is main OpenVINO repository. -* `OPENVINO_BRANCH`, `OPENCV_BRANCH`, `OMZ_BRANCH` - To specify branches with source code. By default, they are equal to "master". -* `BUILD_OPENCV_CONTRIB` - If set to `yes`, OpenCV will be built with extra modules (default is `no`). You can use the `OPENCV_CONTRIB_BRANCH` argument to specify a branch in the `opencv_contrib` repository. - -**For example**: -This command builds an image with OpenVINO™ 2021.2 release. -``` -docker build -t openvino:2021.2 --build-arg OPENVINO_BRANCH="releases/2021/2" . -``` - -You can manually set up CMake parameters to build a custom package from source code using these files: -* [openvino_cmake.txt](openvino_cmake.txt) -* [opencv_cmake.txt](opencv_cmake.txt) - ->**Note**: -By default, these files already contain some parameters for *Debug* build -Do not override PATH/PREFIX options. This can break a build of package. - -### Build stages -The docker image is built using a multi-step build: -1. **setup_openvino** - Clone OpenVINO™ git repository with submodules and install build dependencies. - Open Model Zoo will be included as a submodule of OpenVINO. -2. **build_openvino** - Build OpenVINO™ (CPU, iGPU, VPU support) with the parameters specified in openvino_cmake.txt. - It does not include OpenCV. -3. **copy_openvino** - Copy OpenVINO™ build to clear Ubuntu:18.04 image. -4. **openvino** - Install OpenVINO™ dependencies. Now you can use it. -5. **opencv** - Build and setup OpenCV with the parameters specified in opencv_cmake.txt. - OpenCV can be optionally built with extra modules (see the `BUILD_OPENCV_CONTRIB` argument description above). -6. **openvino_repo** - Copy OpenVINO source code repository, build artifacts, and Open Model Zoo demos from the `build_openvino` stage. - *Note: this stage significantly increases the image size.* - -Use the docker `--target` option to specify a final stage. -``` -docker build --target [stage] -t [image:tag] . -``` - -**For example**: -This command builds an image without OpenCV and OpenVINO source code: -``` -docker build --target openvino -t ie:latest . -``` - -## How to test -You can use our default pipeline to test your image: -``` -python3 docker_openvino.py test -t [image:tag] -dist custom -``` - ->**Note**: -Docker CI framework automatically runs the corresponding tests. -By default, the product version is equal to the latest release version. Use `-p` to override this. - -## How to run -Please follow the [Run built image](../get-started.md#run-built-image) section in Docker CI getting started guide. - -## Prebuilt images - -Prebuilt images are available on: -- [Docker Hub](https://hub.docker.com/u/openvino) -- [Red Hat* Quay.io](https://quay.io/organization/openvino) -- [Red Hat* Ecosystem Catalog (runtime image)](https://catalog.redhat.com/software/containers/intel/openvino-runtime/606ff4d7ecb5241699188fb3) -- [Red Hat* Ecosystem Catalog (development image)](https://catalog.redhat.com/software/containers/intel/openvino-dev/613a450dc9bc35f21dc4a1f7) -- [Azure* Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/intel_corporation.openvino) - - -## License -This Dockerfile contains third-party components with different licenses. -If you are distributing the container as a whole, then you are responsible for license compliance for all of the software it contains. - -## Documentation -* [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) -* [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) -* [Official Dockerfile reference](https://docs.docker.com/engine/reference/builder/) ---- -\* Other names and brands may be claimed as the property of others. \ No newline at end of file diff --git a/dockerfiles/ubuntu18/build_custom/opencv_cmake.txt b/dockerfiles/ubuntu18/build_custom/opencv_cmake.txt deleted file mode 100644 index b95a4697..00000000 --- a/dockerfiles/ubuntu18/build_custom/opencv_cmake.txt +++ /dev/null @@ -1,27 +0,0 @@ --D CMAKE_INSTALL_PREFIX=install --D OPENCV_BIN_INSTALL_PATH=bin --D OPENCV_INCLUDE_INSTALL_PATH=include --D OPENCV_LIB_INSTALL_PATH=lib --D OPENCV_CONFIG_INSTALL_PATH=cmake --D OPENCV_3P_LIB_INSTALL_PATH=3rdparty --D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples --D OPENCV_DOC_INSTALL_PATH=doc --D OPENCV_OTHER_INSTALL_PATH=etc --D OPENCV_LICENSES_INSTALL_PATH=etc/licenses --D PYTHON3_PACKAGES_PATH=install/python/python3 - --D CMAKE_BUILD_TYPE=Debug --D WITH_INF_ENGINE=ON --D INF_ENGINE_RELEASE=2022010000 --D WITH_TBB=OFF --D ENABLE_CXX11=ON --D OPENCV_SKIP_PYTHON_LOADER=ON --D OPENCV_GENERATE_SETUPVARS=OFF --D ENABLE_CONFIG_VERIFICATION=ON --D WITH_1394=OFF --D WITH_VTK=OFF --D WITH_JASPER=OFF --D WITH_EIGEN=OFF --D WITH_LAPACK=OFF --D WITH_OPENCLAMDFFT=OFF --D WITH_OPENCLAMDBLAS=OFF \ No newline at end of file diff --git a/dockerfiles/ubuntu18/build_custom/openvino_cmake.txt b/dockerfiles/ubuntu18/build_custom/openvino_cmake.txt deleted file mode 100644 index 2b1015a4..00000000 --- a/dockerfiles/ubuntu18/build_custom/openvino_cmake.txt +++ /dev/null @@ -1,7 +0,0 @@ --D CMAKE_INSTALL_PREFIX=install - --D CMAKE_BUILD_TYPE=Debug --D ENABLE_PYTHON=ON --D NGRAPH_DEBUG_ENABLE=ON --D PYTHON_EXECUTABLE=/usr/bin/python3 --D ENABLE_WHEEL=ON \ No newline at end of file diff --git a/dockerfiles/ubuntu18/openvino_c_base_2022.dockerfile b/dockerfiles/ubuntu18/openvino_c_base_2022.dockerfile deleted file mode 100644 index f683cdd4..00000000 --- a/dockerfiles/ubuntu18/openvino_c_base_2022.dockerfile +++ /dev/null @@ -1,98 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:18.04 as ov_base - -# hadolint ignore=DL3002 -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - curl \ - ca-certificates \ - gnupg \ - python3-minimal \ - python3-setuptools \ - python3-pip && \ - rm -rf /var/lib/apt/lists/* - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino -ARG build_id - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${INTEL_OPENVINO_DIR}/tools/workbench && rm -rf ${TEMP_DIR} - - -# Install Python and some dependencies for deployment manager -# hadolint ignore=DL3013 -RUN pip3 install --no-cache-dir pytest-shutil - -# Create CPU only package -RUN mkdir openvino_pkg -RUN /bin/bash -c "source /opt/intel/openvino_2022/setupvars.sh" && \ - python3 /opt/intel/openvino_2022/tools/deployment_manager/deployment_manager.py \ - --targets cpu \ - --output_dir openvino_pkg \ - --archive_name openvino_deploy_package - -RUN cp -r /opt/intel/openvino_2022/runtime/cmake . && \ - cp -r /opt/intel/openvino_2022/runtime/include . && \ - cp -r /opt/intel/openvino_2022/runtime/lib/intel64/libopenvino_tensorflow_fe.so . - -# Replace full package by CPU package -RUN rm -r /opt/intel/ && mkdir -p "/opt/intel/openvino_${build_id}" && \ - tar -xf "${TEMP_DIR}"/openvino_pkg/openvino_deploy_package.tar.gz -C "/opt/intel/openvino_${build_id}" && \ - ln --symbolic "/opt/intel/openvino_${build_id}" /opt/intel/openvino_2022 && \ - ln --symbolic "/opt/intel/openvino_${build_id}" /opt/intel/openvino && \ - mv "${TEMP_DIR}"/cmake /opt/intel/openvino_2022/runtime/cmake && \ - mv "${TEMP_DIR}"/include /opt/intel/openvino_2022/runtime/include && \ - mv "${TEMP_DIR}"/libopenvino_tensorflow_fe.so /opt/intel/openvino_2022/runtime/lib/intel64 - -FROM ubuntu:18.04 - -LABEL description="This is the base CPU only image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -COPY --from=ov_base /opt/intel /opt/intel -RUN echo "source /opt/intel/openvino_2022/setupvars.sh" | tee -a /root/.bashrc - -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - curl \ - g++ \ - cmake \ - python3 && \ - rm -rf /var/lib/apt/lists/* - -# Creating user openvino -RUN useradd -ms /bin/bash -G users openvino && \ - chown openvino -R /home/openvino - -USER openvino - -RUN echo "source /opt/intel/openvino_2022/setupvars.sh" | tee -a /home/openvino/.bashrc - -WORKDIR /opt/intel/openvino - -CMD ["/bin/bash"] diff --git a/dockerfiles/ubuntu18/openvino_cg_dev_2022.3.0.dockerfile b/dockerfiles/ubuntu18/openvino_cg_dev_2022.3.0.dockerfile deleted file mode 100644 index 3fc6614f..00000000 --- a/dockerfiles/ubuntu18/openvino_cg_dev_2022.3.0.dockerfile +++ /dev/null @@ -1,343 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:18.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${INTEL_OPENVINO_DIR}/tools/workbench && rm -rf ${TEMP_DIR} && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3.8-dev \ - python3-pip \ - build-essential \ - cmake \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 -# hadolint ignore=DL3013 -RUN python3 -m pip install --upgrade pip setuptools --no-cache-dir -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="4.6.0" - - -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git --depth 1 -b ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv -RUN git fetch origin 4.x:4.x && \ - git cherry-pick -n 1b1bbe426277715a876878890a3dc88231b871bc - -WORKDIR /opt/repo/opencv/build -# hadolint ignore=SC2046 -RUN source "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && make install && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:18.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=cl_compiler -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip setuptools -RUN update-alternatives --install /usr/bin/python3 python /usr/bin/python3.8 2 - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.3.0 -ARG OPENVINO_WHEELS_URL - -RUN apt-get update && apt-get install -y --no-install-recommends git make && rm -rf /var/lib/apt/lists/* -# hadolint ignore=SC2102 -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/ubuntu18/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/ubuntu18/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b build && \ - cp -R build/intel64/Release samples_bin && cp build/intel64/Release/libformat_reader.so . && \ - rm -Rf build && mkdir -p build/intel64/Release/lib && mv libformat_reader.so build/intel64/Release/lib/ && rm -Rf samples_bin/lib/ - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from openvino.model_zoo import model_api" - -# for CPU - -# for GPU -ARG TEMP_DIR=/tmp/opencl - -WORKDIR ${INTEL_OPENVINO_DIR}/install_dependencies -RUN ./install_NEO_OCL_driver.sh --no_numa -y && \ - rm -rf /var/lib/apt/lists/* - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu18/openvino_cg_runtime_2022.3.0.dockerfile b/dockerfiles/ubuntu18/openvino_cg_runtime_2022.3.0.dockerfile deleted file mode 100644 index cea87779..00000000 --- a/dockerfiles/ubuntu18/openvino_cg_runtime_2022.3.0.dockerfile +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:18.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${INTEL_OPENVINO_DIR}/tools/workbench && rm -rf ${TEMP_DIR} && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:18.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS= -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=cl_compiler -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip setuptools -RUN update-alternatives --install /usr/bin/python3 python /usr/bin/python3.8 2 - -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.3.0 -ARG OPENVINO_WHEELS_URL -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/ubuntu18/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU -ARG TEMP_DIR=/tmp/opencl - -WORKDIR ${INTEL_OPENVINO_DIR}/install_dependencies -RUN ./install_NEO_OCL_driver.sh --no_numa -y && \ - rm -rf /var/lib/apt/lists/* - - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu18/third-party-programs-docker-dev.txt b/dockerfiles/ubuntu18/third-party-programs-docker-dev.txt deleted file mode 100644 index 8e94493a..00000000 --- a/dockerfiles/ubuntu18/third-party-programs-docker-dev.txt +++ /dev/null @@ -1,3248 +0,0 @@ -OpenVINO development Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. ------------------------------------------------------------------------------------------------------ -1. tensorflow - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------- -Files: third_party/compute_library/... - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - ------------------- -Files: ACKNOWLEDGEMENTS -LICENSE - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------- -Files: third_party/hexagon - -Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted (subject to the limitations in the -disclaimer below) provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of The Linux Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE -GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT -HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------------------- -2. mxnet - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ====================================================================================== - Apache MXNET (incubating) Subcomponents: - - The Apache MXNET (incubating) project contains subcomponents with separate - copyright notices and license terms. Your use of the source code for the - these subcomponents is subject to the terms and conditions of the following - licenses. If not stated otherwise, their copyright notices and license terms - are available at the path of the subcomponent. - - If a folder hierarchy is listed as subcomponent, separate listings of - further subcomponents (files or folder hierarchies) part of the hierarchy - take precedence. - - ======================================================================================= - Apache-2.0 license - ======================================================================================= - - 3rdparty/ctc_include - 3rdparty/dlpack - 3rdparty/dmlc-core - 3rdparty/mshadow - 3rdparty/tvm - 3rdparty/tvm/3rdparty/dmlc-core - 3rdparty/tvm/3rdparty/dlpack - 3rdparty/ps-lite - 3rdparty/onednn - 3rdparty/googletest/googlemock/scripts/generator - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark - 3rdparty/onednn/tests/benchdnn (Copy of the License available at top of current file) - src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file) - 3rdparty/onednn/doc/assets/mathjax (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/material-design-icons-3.0.1 (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/font/Roboto (Copy of the License available at top of current file) - 3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file) - - ======================================================================================= - MIT license - ======================================================================================= - - 3rdparty/miniz/miniz.c - 3rdparty/miniz/miniz.h - example/gluon/tree_lstm - 3rdparty/tvm/3rdparty/cma - 3rdparty/onnx-tensorrt - 3rdparty/onnx-tensorrt/third_party/onnx - docs/static_site/src/assets/js/clipboard.js - docs/python_docs/themes/mx-theme - 3rdparty/intgemm - 3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h - src/operator/nn/layer_norm.cc - - ======================================================================================= - 3-clause BSD license - ======================================================================================= - - 3rdparty/onednn/src/cpu/x64/xbyak - 3rdparty/onednn/tests/gtests/gtest - 3rdparty/onednn/cmake/FindOpenCL.cmake (Copy of the License available at licenses/BSD3-cmake) - 3rdparty/onednn/src/cpu/x64/jit_utils/jitprofiling/ - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/ctc_include/contrib/moderngpu - 3rdparty/nvidia_cub - 3rdparty/nvidia_cub/test/mersenne.h - 3rdparty/googletest/googlemock - 3rdparty/googletest/googletest - cmake/upstream/FindCUDAToolkit.cmake - cmake/upstream/select_compute_arch.cmake - src/operator/numpy/np_einsum_op-inl.h - src/operator/numpy/np_einsum_path_op-inl.h - src/operator/numpy/np_einsum_op.cc - src/operator/contrib/erfinv-inl.h - - ======================================================================================= - 2-clause BSD license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/concurrentqueue.h - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindEigen3.cmake (Copy of the License available at licenses/BSD2) - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/tvm/3rdparty/picojson/picojson.h - - ======================================================================================= - Apache-2.0 license + LLVM Exceptions - ======================================================================================= - - 3rdparty/openmp - - ======================================================================================= - Caffe Licensing Model - ======================================================================================= - - src/operator/nn/pool.h - src/operator/nn/pool.cuh - src/operator/nn/im2col.h - src/operator/nn/im2col.cuh - src/operator/contrib/nn/deformable_im2col.h - src/operator/contrib/nn/deformable_im2col.cuh - src/operator/contrib/nn/modulated_deformable_im2col.h - src/operator/contrib/nn/modulated_deformable_im2col.cuh - - ======================================================================================= - 2-clause BSD license + zlib license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/blockingconcurrentqueue.h - - ======================================================================================= - Apache-2.0 license + 3-clause BSD license - ======================================================================================= - - python/mxnet/contrib/onnx/mx2onnx/_op_translations.py - python/mxnet/contrib/onnx/mx2onnx/export_onnx.py - - ======================================================================================= - Apache-2.0 license + MIT License - ======================================================================================= - - src/serialization/cnpy.h (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - src/serialization/cnpy.cc (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) - - ======================================================================================= - Apache-2.0 license + Boost Software License, Version 1.0 - ======================================================================================= - - cmake/Modules/FindJeMalloc.cmake - - ======================================================================================= - Boost Software License, Version 1.0 - ======================================================================================= - - 3rdparty/intgemm/test/3rd_party/catch.hpp (Copy of the License available at licenses/BOOST1_0) - 3rdparty/onednn/src/common/primitive_hashing.hpp - - ======================================================================================= - LLVM Release License - ======================================================================================= - - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang - - ======================================================================================= - Unlicense - ======================================================================================= - - 3rdparty/tvm/3rdparty/rang - - ======================================================================================= - SIL Open Font License (OFL) - ======================================================================================= - - docs/python_docs/themes/mx-theme/mxtheme/static/webfonts/ (Copy of the License available at licenses/OFL1_1) --------------------------------------------------------------------------------------------------------------------- - -3. sentencepiece - - tokenizers - - tensorboard - Copyright 2017 The TensorFlow Authors. - All rights reserved. - - yacs - - onnx - - requests - - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- -4.cmake - -CMake - Cross Platform Makefile Generator -Copyright 2000-2021 Kitware, Inc. and Contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -* Neither the name of Kitware, Inc. nor the names of Contributors - may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------------------------------------------------------------------- - -The following individuals and institutions are among the Contributors: - -* Aaron C. Meadows -* Adriaan de Groot -* Aleksey Avdeev -* Alexander Neundorf -* Alexander Smorkalov -* Alexey Sokolov -* Alex Merry -* Alex Turbov -* Andreas Pakulat -* Andreas Schneider -* André Rigland Brodtkorb -* Axel Huebl, Helmholtz-Zentrum Dresden - Rossendorf -* Benjamin Eikel -* Bjoern Ricks -* Brad Hards -* Christopher Harvey -* Christoph Grüninger -* Clement Creusot -* Daniel Blezek -* Daniel Pfeifer -* Enrico Scholz -* Eran Ifrah -* Esben Mose Hansen, Ange Optimization ApS -* Geoffrey Viola -* Google Inc -* Gregor Jasny -* Helio Chissini de Castro -* Ilya Lavrenov -* Insight Software Consortium -* Jan Woetzel -* Julien Schueller -* Kelly Thompson -* Konstantin Podsvirov -* Laurent Montel -* Mario Bensi -* Martin Gräßlin -* Mathieu Malaterre -* Matthaeus G. Chajdas -* Matthias Kretz -* Matthias Maennich -* Michael Hirsch, Ph.D. -* Michael Stürmer -* Miguel A. Figueroa-Villanueva -* Mike Jackson -* Mike McQuaid -* Nicolas Bock -* Nicolas Despres -* Nikita Krupen'ko -* NVIDIA Corporation -* OpenGamma Ltd. -* Patrick Stotko -* Per Øyvind Karlsen -* Peter Collingbourne -* Petr Gotthard -* Philip Lowman -* Philippe Proulx -* Raffi Enficiaud, Max Planck Society -* Raumfeld -* Roger Leigh -* Rolf Eike Beer -* Roman Donchenko -* Roman Kharitonov -* Ruslan Baratov -* Sebastian Holtermann -* Stephen Kelly -* Sylvain Joubert -* The Qt Company Ltd. -* Thomas Sondergaard -* Tobias Hunger -* Todd Gamblin -* Tristan Carel -* University of Dundee -* Vadim Zhukov -* Will Dicharry - -See version control history for details of individual contributions. - -The above copyright and license notice applies to distributions of -CMake in source and binary form. Third-party software packages supplied -with CMake under compatible licenses provide their own copyright notices -documented in corresponding subdirectories or source files. - ------------------------------------------------------------------------------- - -CMake was initially developed by Kitware with the following sponsorship: - - * National Library of Medicine at the National Institutes of Health - as part of the Insight Segmentation and Registration Toolkit (ITK). - - * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel - Visualization Initiative. - - * National Alliance for Medical Image Computing (NAMIC) is funded by the - National Institutes of Health through the NIH Roadmap for Medical Research, - Grant U54 EB005149. - - * Kitware, Inc. -------------------------------------------------------------------------------------------- -5. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ---------------------------------------------------------------------------------------------- -6. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. ------------------------------------------------------------------------------------------------ -7. networkx - Copyright (C) 2004-2021, NetworkX Developers - Aric Hagberg - Dan Schult - Pieter Swart - All rights reserved. - - protobuf - Copyright (c) 2016, Daniel Wirtz All rights reserved. - - scikit-learn - Copyright (c) 2007-2021 The scikit-learn developers. - All rights reserved. - - shapely - Copyright (c) 2007, Sean C. Gillies - All rights reserved. - - scipy - Copyright (c) 2001-2002 Enthought, Inc. 2003-2019, SciPy Developers. - All rights reserved. - - torchvision - Copyright (c) Soumith Chintala 2016, - Copyright (c) Andrew Kane 2020-2021, - All rights reserved. - - pandas - Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team - All rights reserved. - Copyright (c) 2011-2021, Open source contributors. - - hyperopt - Copyright (c) 2013, James Bergstra - All rights reserved. - - mpmath - Copyright (c) 2005-2021 Fredrik Johansson and mpmath contributors - All rights reserved. - - numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - imagecodecs - Copyright (c) 2008-2022, Christoph Gohlke - All rights reserved. - - fastjsonschema - Copyright (c) 2018, Michal Horejsek - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------------------------------------------------------------------------- -8. scikit-image - -Copyright (C) 2019, the scikit-image team -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - 3. Neither the name of skimage nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:_check_version - - Copyright (c) 2013 The IPython Development Team - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:is_installed: - - Original Copyright (C) 2009-2011 Pierre Raybaut - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------------- -9. sympy -Copyright (c) 2006-2021 SymPy Development Team - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Patches that were taken from the Diofant project (https://github.com/diofant/diofant) -are licensed as: - -Copyright (c) 2006-2018 SymPy Development Team, - 2013-2021 Sergey B Kirpichev - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of Diofant or SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Submodules taken from the multipledispatch project (https://github.com/mrocklin/multipledispatch) -are licensed as: - -Copyright (c) 2014 Matthew Rocklin - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of multipledispatch nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -The files under the directory sympy/parsing/autolev/tests/pydy-example-repo -are directly copied from PyDy project and are licensed as: - -Copyright (c) 2009-2021, PyDy Authors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -* Neither the name of this project nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL PYDY AUTHORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------------------- -10.Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ---------------------------------------------------------------------------------------- -11.GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! -------------------------------------------------------------------------------------- -12.libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------ -13.gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -14. libc6-dev - -* Most of the GNU C library is under the following copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - 02110-1301 USA - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. - -* The utilities associated with GNU C library is under the following - copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/GPL-2'. - -* All code incorporated from 4.4 BSD is distributed under the following - license: - - Copyright (C) 1991 Regents of the University of California. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. [This condition was removed.] - 4. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - -* The DNS resolver code, taken from BIND 4.9.5, is copyrighted both by - UC Berkeley and by Digital Equipment Corporation. The DEC portions - are under the following license: - - Portions Copyright (C) 1993 by Digital Equipment Corporation. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies, and - that the name of Digital Equipment Corporation not be used in - advertising or publicity pertaining to distribution of the document or - software without specific, written prior permission. - - THE SOFTWARE IS PROVIDED ``AS IS'' AND DIGITAL EQUIPMENT CORP. - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL - DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -* The ISC portions are under the following license: - - Portions Copyright (c) 1996-1999 by Internet Software Consortium. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS - ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE - CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL - DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR - PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS - ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS - SOFTWARE. - -* The Sun RPC support (from rpcsrc-4.0) is covered by the following - license: - - Copyright (c) 2010, Oracle America, Inc. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - * Neither the name of the "Oracle America, Inc." nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following CMU license covers some of the support code for Mach, - derived from Mach 3.0: - - Mach Operating System - Copyright (C) 1991,1990,1989 Carnegie Mellon University - All Rights Reserved. - - Permission to use, copy, modify and distribute this software and its - documentation is hereby granted, provided that both the copyright - notice and this permission notice appear in all copies of the - software, derivative works or modified versions, and any portions - thereof, and that both notices appear in supporting documentation. - - CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS ``AS IS'' - CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR - ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - - Carnegie Mellon requests users of this software to return to - - Software Distribution Coordinator - School of Computer Science - Carnegie Mellon University - Pittsburgh PA 15213-3890 - - or Software.Distribution@CS.CMU.EDU any improvements or - extensions that they make and grant Carnegie Mellon the rights to - redistribute these changes. - -* The file if_ppp.h is under the following CMU license: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY AND - CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following license covers the files from Intel's "Highly Optimized - Mathematical Functions for Itanium" collection: - - Intel License Agreement - - Copyright (c) 2000, Intel Corporation - - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * The name of Intel Corporation may not be used to endorse or promote - products derived from this software without specific prior written - permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The files inet/getnameinfo.c and sysdeps/posix/getaddrinfo.c are copyright - (C) by Craig Metz and are distributed under the following license: - - /* The Inner Net License, Version 2.00 - - The author(s) grant permission for redistribution and use in source and - binary forms, with or without modification, of the software and documentation - provided that the following conditions are met: - - 0. If you receive a version of the software that is specifically labelled - as not being for redistribution (check the version message and/or README), - you are not permitted to redistribute that version of the software in any - way or form. - 1. All terms of the all other applicable copyrights and licenses must be - followed. - 2. Redistributions of source code must retain the authors' copyright - notice(s), this list of conditions, and the following disclaimer. - 3. Redistributions in binary form must reproduce the authors' copyright - notice(s), this list of conditions, and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 4. [The copyright holder has authorized the removal of this clause.] - 5. Neither the name(s) of the author(s) nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - If these license terms cause you a real problem, contact the author. */ - -* The file sunrpc/des_impl.c is copyright Eric Young: - - Copyright (C) 1992 Eric Young - Collected from libdes and modified for SECURE RPC by Martin Kuck 1994 - This file is distributed under the terms of the GNU Lesser General - Public License, version 2.1 or later - see the file COPYING.LIB for details. - If you did not receive a copy of the license with this program, please - see to obtain a copy. - -* The libidn code is copyright Simon Josefsson, with portions copyright - The Internet Society, Tom Tromey and Red Hat, Inc.: - - Copyright (C) 2002, 2003, 2004, 2011 Simon Josefsson - - This file is part of GNU Libidn. - - GNU Libidn is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - GNU Libidn is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with GNU Libidn; if not, see . - -* The following notice applies to portions of libidn/nfkc.c: - - This file contains functions from GLIB, including gutf8.c and - gunidecomp.c, all licensed under LGPL and copyright hold by: - - Copyright (C) 1999, 2000 Tom Tromey - Copyright 2000 Red Hat, Inc. - -* The following applies to portions of libidn/punycode.c and - libidn/punycode.h: - - This file is derived from RFC 3492bis written by Adam M. Costello. - - Disclaimer and license: Regarding this entire document or any - portion of it (including the pseudocode and C code), the author - makes no guarantees and is not responsible for any damage resulting - from its use. The author grants irrevocable permission to anyone - to use, modify, and distribute it in any way that does not diminish - the rights of anyone else to use, modify, and distribute it, - provided that redistributed derivative works do not contain - misleading author or version information. Derivative works need - not be licensed under similar terms. - - Copyright (C) The Internet Society (2003). All Rights Reserved. - - This document and translations of it may be copied and furnished to - others, and derivative works that comment on or otherwise explain it - or assist in its implementation may be prepared, copied, published - and distributed, in whole or in part, without restriction of any - kind, provided that the above copyright notice and this paragraph are - included on all such copies and derivative works. However, this - document itself may not be modified in any way, such as by removing - the copyright notice or references to the Internet Society or other - Internet organizations, except as needed for the purpose of - developing Internet standards in which case the procedures for - copyrights defined in the Internet Standards process must be - followed, or as required to translate it into languages other than - English. - - The limited permissions granted above are perpetual and will not be - revoked by the Internet Society or its successors or assigns. - - This document and the information contained herein is provided on an - "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING - TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING - BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION - HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF - MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - -* The file inet/rcmd.c is under a UCB copyright and the following: - - Copyright (C) 1998 WIDE Project. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the project nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - * The file posix/runtests.c is copyright Tom Lord: - - Copyright 1995 by Tom Lord - - All Rights Reserved - - Permission to use, copy, modify, and distribute this software and its - documentation for any purpose and without fee is hereby granted, - provided that the above copyright notice appear in all copies and that - both that copyright notice and this permission notice appear in - supporting documentation, and that the name of the copyright holder not be - used in advertising or publicity pertaining to distribution of the - software without specific, written prior permission. - - Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, - INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO - EVENT SHALL TOM LORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR - CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF - USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - -* The posix/rxspencer tests are copyright Henry Spencer: - - Copyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved. - This software is not subject to any license of the American Telephone - and Telegraph Company or of the Regents of the University of California. - - Permission is granted to anyone to use this software for any purpose on - any computer system, and to alter it and redistribute it, subject - to the following restrictions: - - 1. The author is not responsible for the consequences of use of this - software, no matter how awful, even if they arise from flaws in it. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. Since few users ever read sources, - credits must appear in the documentation. - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. Since few users - ever read sources, credits must appear in the documentation. - - 4. This notice may not be removed or altered. - -* The file posix/PCRE.tests is copyright University of Cambridge: - - Copyright (c) 1997-2003 University of Cambridge - - Permission is granted to anyone to use this software for any purpose on any - computer system, and to redistribute it freely, subject to the following - restrictions: - - 1. This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. In practice, this means that if you use - PCRE in software that you distribute to others, commercially or - otherwise, you must put a sentence like this - - Regular expression support is provided by the PCRE library package, - which is open source software, written by Philip Hazel, and copyright - by the University of Cambridge, England. - - somewhere reasonably visible in your documentation and in any relevant - files or online help data or similar. A reference to the ftp site for - the source, that is, to - - ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ - - should also be given in the documentation. However, this condition is not - intended to apply to whole chains of software. If package A includes PCRE, - it must acknowledge it, but if package B is software that includes package - A, the condition is not imposed on package B (unless it uses PCRE - independently). - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 4. If PCRE is embedded in any software that is released under the GNU - General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL), - then the terms of that licence shall supersede any condition above with - which it is incompatible. - -* Files from Sun fdlibm are copyright Sun Microsystems, Inc.: - - Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - - Developed at SunPro, a Sun Microsystems, Inc. business. - Permission to use, copy, modify, and distribute this - software is freely granted, provided that this notice - is preserved. - -* Part of stdio-common/tst-printf.c is copyright C E Chew: - - (C) Copyright C E Chew - - Feel free to copy, use and distribute this software provided: - - 1. you do not pretend that you wrote it - 2. you leave this copyright notice intact. - -* Various long double libm functions are copyright Stephen L. Moshier: - - Copyright 2001 by Stephen L. Moshier - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, see - . */ --------------------------------------------------------------------------- -14.pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - py-cpuinfo - Copyright (c) 2014-2021 Matthew Brennan Jones - - tqdm - Copyright (c) 2013 noamraph - - nibabel - Copyright (c) 2009-2019 Matthew Brett - Copyright (c) 2010-2013 Stephan Gerhard - Copyright (c) 2006-2014 Michael Hanke - Copyright (c) 2011 Christian Haselgrove - Copyright (c) 2010-2011 Jarrod Millman - Copyright (c) 2011-2019 Yaroslav Halchenko - Copyright (c) 2015-2019 Chris Markiewicz - - editdistance - Copyright (c) 2019 Hiroyuki Tanaka - - torch - Copyright (c) 2013 Torchlight Software - - future - Copyright (c) 2013-2019 Python Charmers Pty Ltd, Australia - - motmetrics - Copyright (c) 2017-2020 Christoph Heindl - Copyright (c) 2018 Toka - Copyright (c) 2019-2020 Jack Valmadre - - tensorboardX - Copyright (c) 2017 Tzu-Wei Huang - - setuptools - Copyright Jason R. Coombs - - addict - Copyright (c) 2014 Mats Julian Olsen - - jstyleson - Copyright (c) 2016 linjackson - - rawpy - Copyright (c) 2014 Maik Riechert - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - PyYaml - Copyright (c) 2017-2021 Ingy döt Net - Copyright (c) 2006-2016 Kirill Simonov - - urllib3 - Copyright (c) 2008-2020 Andrey Petrov and contributors - - - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -© 2021 GitHub, Inc. --------------------------------------------------------------------------- -16.pydicom - -License file for pydicom, a pure-python DICOM library - -Copyright (c) 2008-2020 Darcy Mason and pydicom contributors - -Except for portions outlined below, pydicom is released under an MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Portions of pydicom (private dictionary file(s)) were generated from the -private dictionary of the GDCM library, released under the following license: - - Program: GDCM (Grassroots DICOM). A DICOM library - Module: http://gdcm.sourceforge.net/Copyright.html - -Copyright (c) 2006-2010 Mathieu Malaterre -Copyright (c) 1993-2005 CREATIS -(CREATIS = Centre de Recherche et d'Applications en Traitement de l'Image) -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither name of Mathieu Malaterre, or CREATIS, nor the names of any - contributors (CNRS, INSERM, UCB, Universite Lyon I), may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -17.libtinfo5 - -This is the Debian prepackaged version of the ncurses -library and terminfo utilities. ncurses/terminfo was originally written -by Pavel Curtis and Zeyd M. Ben-Halim , and is -currently held by the Free Software Foundation. - -This package was put together by Vaidhyanathan G Mayilrangam - and Joel Klecker , using sources -obtained from ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.0.tar.gz. -Current versions of the ncurses sources are found at -ftp://invisible-island.net/ncurses/. - -It is based somewhat on work done by Bruce Perens , -David Engel . Michael Alan Dorman -, Richard Braakman , James Troup -, J.H.M. Dassen (Ray) -, and Galen Hazelwood -over various years. - - -Copyright (c) 1998-2018 Free Software Foundation, Inc. -Copyright © 2001 by Pradeep Padala - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, distribute with modifications, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. - - -Copyright (C) 1994 X Consortium - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not -be used in advertising or otherwise to promote the sale, use or other deal- -ings in this Software without prior written authorization from the X Consor- -tium. - - -Copyright (c) 1980, 1991, 1992, 1993 - The Regents of the University of California. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - - -Copyright 1996-2018 by Thomas E. Dickey - - All Rights Reserved - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. ---------------------------------------------------------------------------- -18. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ----------------------------------------------------------------------------- -19.pillow - -The Python Imaging Library (PIL) is - - Copyright © 1997-2011 by Secret Labs AB - Copyright © 1995-2011 by Fredrik Lundh - -Pillow is the friendly PIL fork. It is - - Copyright © 2010-2021 by Alex Clark and contributors - -Like PIL, Pillow is licensed under the open source HPND License: - -By obtaining, using, and/or copying this software and/or its associated -documentation, you agree that you have read, understood, and will comply -with the following terms and conditions: - -Permission to use, copy, modify, and distribute this software and its -associated documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appears in all copies, and that -both that copyright notice and this permission notice appear in supporting -documentation, and that the name of Secret Labs AB or the author not be -used in advertising or publicity pertaining to distribution of the software -without specific, written prior permission. - -SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS -SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. -IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, -INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------------- -20.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------- -21.defusedxml - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python -alone or in any derivative version, provided, however, that PSF's -License Agreement and PSF's notice of copyright, i.e., "Copyright (c) -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative -version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. ---------------------------------------------------------------------- -22.lmdb - -The OpenLDAP Public License - Version 2.8, 17 August 2003 - -Redistribution and use of this software and associated documentation -("Software"), with or without modification, are permitted provided -that the following conditions are met: - -1. Redistributions in source form must retain copyright statements - and notices, - -2. Redistributions in binary form must reproduce applicable copyright - statements and notices, this list of conditions, and the following - disclaimer in the documentation and/or other materials provided - with the distribution, and - -3. Redistributions must contain a verbatim copy of this document. - -The OpenLDAP Foundation may revise this license from time to time. -Each revision is distinguished by a version number. You may use -this Software under terms of this license revision or under the -terms of any subsequent revision of the license. - -THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS -CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT -SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) -OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -The names of the authors and copyright holders must not be used in -advertising or otherwise to promote the sale, use or other dealing -in this Software without specific, written prior permission. Title -to copyright in this Software shall at all times remain with copyright -holders. - -OpenLDAP is a registered trademark of the OpenLDAP Foundation. - -Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, -California, USA. All Rights Reserved. Permission to copy and -distribute verbatim copies of this document is granted. ------------------------------------------------------------------------- -23. yamlloader - Copyright 2017 Jonas Eschle - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - -Parts of the code, mostly from ordereddict.py including within others -the functions construct_yaml_map, construct_mapping are licensed under the -following license. - -Copyright 2017 François Ménabé - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------------- - - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/ubuntu18/third-party-programs-docker-runtime.txt b/dockerfiles/ubuntu18/third-party-programs-docker-runtime.txt deleted file mode 100644 index 4d8721d3..00000000 --- a/dockerfiles/ubuntu18/third-party-programs-docker-runtime.txt +++ /dev/null @@ -1,1243 +0,0 @@ -OpenVINO runtime Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. --------------------------------------------------------------------------------------------- -1. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------------------------- -2. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - --------------------------------------------------------------------------------------------------- -3. Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ------------------------------------------------------------------------------------------------------- -4. GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! ---------------------------------------------------------------------------------------------- - -5. libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------- -6. gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -7. pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------ -8. numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -9. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ------------------------------------------------------------------------------------- -10.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------- -10. cmake - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/ubuntu20/build_custom/Dockerfile b/dockerfiles/ubuntu20/build_custom/Dockerfile deleted file mode 100644 index 93bd1df7..00000000 --- a/dockerfiles/ubuntu20/build_custom/Dockerfile +++ /dev/null @@ -1,214 +0,0 @@ -# Copyright (C) 2020-2022 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS setup_openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -# hadolint ignore=DL3008 -RUN apt-get update; \ - DEBIAN_FRONTEND=noninteractive \ - apt-get install -y --no-install-recommends \ - apt-utils \ - git \ - git-lfs \ - ca-certificates \ - sudo \ - tzdata; \ - rm -rf /var/lib/apt/lists/* - -ARG OPENVINO_FORK="openvinotoolkit" -ARG OPENVINO_BRANCH="master" -ARG OMZ_BRANCH - -# hadolint ignore=DL3003 -RUN git-lfs install; \ - git clone https://github.com/${OPENVINO_FORK}/openvino.git \ - --recurse-submodules --shallow-submodules --depth 1 -b ${OPENVINO_BRANCH} /opt/intel/repo/openvino; \ - if [ -n "$OMZ_BRANCH" ]; then \ - cd /opt/intel/repo/openvino/thirdparty/open_model_zoo && \ - git remote set-branches origin '*' && \ - git fetch --depth 1 origin "$OMZ_BRANCH" && \ - git checkout "$OMZ_BRANCH"; \ - fi - -WORKDIR /opt/intel/repo/openvino -RUN chmod +x install_build_dependencies.sh; \ - ./install_build_dependencies.sh - -RUN chmod +x scripts/install_dependencies/install_NEO_OCL_driver.sh; \ - ./scripts/install_dependencies/install_NEO_OCL_driver.sh -y --no_numa - -# hadolint ignore=DL3013 -RUN chmod +x scripts/install_dependencies/install_openvino_dependencies.sh; \ - ./scripts/install_dependencies/install_openvino_dependencies.sh -y -c=python; \ - python3 -m pip install --no-cache-dir --upgrade pip; \ - python3 -m pip install --no-cache-dir -r src/bindings/python/src/compatibility/openvino/requirements-dev.txt - -WORKDIR /opt/intel/repo -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM setup_openvino AS build_openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -COPY openvino_cmake.txt /opt/intel/repo - -RUN python3 -m pip install --no-cache-dir -r /opt/intel/repo/openvino/src/bindings/python/wheel/requirements-dev.txt - -WORKDIR /opt/intel/repo/openvino/build -# hadolint ignore=SC2046 -RUN cmake $(cat /opt/intel/repo/openvino_cmake.txt) /opt/intel/repo/openvino; \ - make "-j$(nproc)"; \ - make install - -WORKDIR /tmp -RUN curl -L https://github.com/libusb/libusb/archive/v1.0.22.zip --output v1.0.22.zip; \ - unzip v1.0.22.zip; \ - rm -rf v1.0.22.zip - -WORKDIR /tmp/libusb-1.0.22 -RUN ./bootstrap.sh; \ - ./configure --disable-udev --enable-shared; \ - make "-j$(nproc)" - -WORKDIR /opt/intel/repo -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM ubuntu:20.04 AS copy_openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -ENV INTEL_OPENVINO_DIR="/opt/intel/openvino" - -COPY --from=build_openvino /opt/intel/repo/openvino/build/install ${INTEL_OPENVINO_DIR} -COPY --from=build_openvino /tmp/libusb-1.0.22 /opt/libusb-1.0.22 - -WORKDIR ${INTEL_OPENVINO_DIR} -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM copy_openvino AS openvino - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -# hadolint ignore=DL3008 -RUN apt-get update; \ - DEBIAN_FRONTEND=noninteractive \ - apt-get install -y --no-install-recommends \ - apt-utils \ - wget \ - udev \ - sudo \ - gdb \ - tzdata; \ - rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR} -RUN chmod +x install_dependencies/install_openvino_dependencies.sh; \ - ./install_dependencies/install_openvino_dependencies.sh -y -c=python -c=dev - -RUN chmod +x install_dependencies/install_NEO_OCL_driver.sh; \ - ./install_dependencies/install_NEO_OCL_driver.sh -y --no_numa - -WORKDIR /opt/libusb-1.0.22 -RUN ./libtool --mode=install install -c libusb/libusb-1.0.la /usr/local/lib/; \ - mkdir -p /usr/local/include/libusb-1.0; \ - install -c -m 644 libusb/libusb.h /usr/local/include/libusb-1.0; \ - mkdir -p /usr/local/lib/pkgconfig; \ - install -c -m 644 libusb-1.0.pc /usr/local/lib/pkgconfig - -WORKDIR ${INTEL_OPENVINO_DIR} -RUN chmod +x install_dependencies/install_NCS_udev_rules.sh; \ - ./install_dependencies/install_NCS_udev_rules.sh - -# hadolint ignore=DL3013 -RUN python3 -m pip install --no-cache-dir --upgrade pip; \ - python3 -m pip install --no-cache-dir -r python/python3.8/requirements.txt; \ - python3 -m pip install --no-cache-dir openvino --find-links=tools/ ; \ - python3 -m pip install --no-cache-dir 'openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]' --find-links=tools/ - -RUN printf "\nsource \${INTEL_OPENVINO_DIR}/setupvars.sh\n" >> /root/.bashrc - -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM openvino AS opencv - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - libva-dev \ - libgtk-3-dev \ - libavcodec-dev \ - libavformat-dev \ - libavutil-dev \ - libswscale-dev \ - libavresample-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev \ - libgstreamer-plugins-good1.0-dev \ - libgstreamer-plugins-bad1.0-dev; \ - rm -rf /var/lib/apt/lists/* - -ARG OPENCV_BRANCH="master" - -ARG BUILD_OPENCV_CONTRIB="no" -ARG OPENCV_CONTRIB_BRANCH="master" - -WORKDIR /opt/intel/repo -RUN git clone https://github.com/opencv/opencv.git --depth 1 -b ${OPENCV_BRANCH} && \ - if [ "$BUILD_OPENCV_CONTRIB" = "yes" ]; then \ - git clone https://github.com/opencv/opencv_contrib.git --depth 1 -b ${OPENCV_CONTRIB_BRANCH}; fi - -COPY opencv_cmake.txt /opt/intel/repo - -WORKDIR /opt/intel/repo/opencv/build -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}/setupvars.sh"; \ - if [ "$BUILD_OPENCV_CONTRIB" = "yes" ]; then \ - apt-get update && \ - apt-get install -y --no-install-recommends libtesseract-dev && \ - cmake $(cat /opt/intel/repo/opencv_cmake.txt) -D OPENCV_EXTRA_MODULES_PATH=/opt/intel/repo/opencv_contrib/modules /opt/intel/repo/opencv && \ - rm -rf /var/lib/apt/lists/* ; \ - else \ - cmake $(cat /opt/intel/repo/opencv_cmake.txt) /opt/intel/repo/opencv; \ - fi; \ - make "-j$(nproc)"; \ - make install - -WORKDIR /opt/intel/repo/opencv/build/install -RUN mkdir "${INTEL_OPENVINO_DIR}/extras"; \ - cp -r . "${INTEL_OPENVINO_DIR}/extras/opencv"; \ - cp -r "${INTEL_OPENVINO_DIR}/extras/opencv/python/python3" "${INTEL_OPENVINO_DIR}/python"; \ - rm -r "${INTEL_OPENVINO_DIR}/extras/opencv/python"; \ - echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - python3 -m pip uninstall -y opencv-python; \ - rm -rf /opt/intel/repo/opencv/build/install - -WORKDIR ${INTEL_OPENVINO_DIR} -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -FROM opencv as openvino_repo - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -ENV INTEL_OPENVINO_DIR="/opt/intel/openvino" - -COPY --from=build_openvino /opt/intel/repo /opt/intel/repo - -# hadolint ignore=DL3013 -RUN ln --symbolic /opt/intel/repo/openvino/thirdparty/open_model_zoo/ ${INTEL_OPENVINO_DIR}/open_model_zoo && \ - python3 -m pip install --no-cache-dir --no-deps open_model_zoo/demos/common/python - -WORKDIR ${INTEL_OPENVINO_DIR} -CMD ["/bin/bash"] \ No newline at end of file diff --git a/dockerfiles/ubuntu20/build_custom/README.md b/dockerfiles/ubuntu20/build_custom/README.md deleted file mode 100644 index 600d7332..00000000 --- a/dockerfiles/ubuntu20/build_custom/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# Build custom Intel® Distribution of OpenVINO™ toolkit Docker image -This repository folder contains the Dockerfile to build a docker image with the Intel® Distribution of OpenVINO™ toolkit. - -## Components -* [OpenVINO™ Toolkit - Deep Learning Deployment Toolkit repository](https://github.com/openvinotoolkit/openvino) -* [OpenCV: Open Source Computer Vision Library](https://github.com/opencv/opencv) -* [OpenVINO™ Toolkit - Open Model Zoo repository](https://github.com/openvinotoolkit/open_model_zoo) - -## How to build -Go to the folder with the Dockerfile and run: -``` -docker build -t [image:tag] . -``` - -* `/opt/intel/openvino` folder will contain OpenVINO build -* `/opt/intel/repo` will contain OpenVINO™ and OpenCV git repositories in `openvino` and `opencv` folders accordingly. - - -If you want to rebuild the entire image, use the docker `--no-cache` option: -``` -docker build --no-cache -t image:tag . -``` - -You can use the docker `--build-arg` option to override the following variables: -* `OPENVINO_FORK` - To specify a GitHub fork of the OpenVINO repository to use. By default, it is main OpenVINO repository. -* `OPENVINO_BRANCH`, `OPENCV_BRANCH`, `OMZ_BRANCH` - To specify branches with source code. By default, they are equal to "master". -* `BUILD_OPENCV_CONTRIB` - If set to `yes`, OpenCV will be built with extra modules (default is `no`). You can use the `OPENCV_CONTRIB_BRANCH` argument to specify a branch in the `opencv_contrib` repository. - -**For example**: -This command builds an image with OpenVINO™ 2021.2 release. -``` -docker build -t openvino:2021.2 --build-arg OPENVINO_BRANCH="releases/2021/2" . -``` - -You can manually set up CMake parameters to build a custom package from source code using these files: -* [openvino_cmake.txt](openvino_cmake.txt) -* [opencv_cmake.txt](opencv_cmake.txt) - ->**Note**: -By default, these files already contain some parameters for *Debug* build -Do not override PATH/PREFIX options. This can break a build of package. - -### Build stages -The docker image is built using a multi-step build: -1. **setup_openvino** - Clone OpenVINO™ git repository with submodules and install build dependencies. - Open Model Zoo will be included as a submodule of OpenVINO. -2. **build_openvino** - Build OpenVINO™ (CPU, iGPU, VPU support) with the parameters specified in openvino_cmake.txt. - It does not include OpenCV. -3. **copy_openvino** - Copy OpenVINO™ build to clear Ubuntu:20.04 image. -4. **openvino** - Install OpenVINO™ dependencies. Now you can use it. -5. **opencv** - Build and setup OpenCV with the parameters specified in opencv_cmake.txt. - OpenCV can be optionally built with extra modules (see the `BUILD_OPENCV_CONTRIB` argument description above). -6. **openvino_repo** - Copy OpenVINO source code repository, build artifacts, and Open Model Zoo demos from the `build_openvino` stage. - *Note: this stage significantly increases the image size.* - -Use the docker `--target` option to specify a final stage. -``` -docker build --target [stage] -t [image:tag] . -``` - -**For example**: -This command builds an image without OpenCV and OpenVINO source code: -``` -docker build --target openvino -t ie:latest . -``` - -## How to test -You can use our default pipeline to test your image: -``` -python3 docker_openvino.py test -t [image:tag] -dist custom -``` - ->**Note**: -Docker CI framework automatically runs the corresponding tests. -By default, the product version is equal to the latest release version. Use `-p` to override this. - -## How to run -Please follow the [Run built image](../get-started.md#run-built-image) section in Docker CI getting started guide. - -## Prebuilt images - -Prebuilt images are available on: -- [Docker Hub](https://hub.docker.com/u/openvino) -- [Red Hat* Quay.io](https://quay.io/organization/openvino) -- [Red Hat* Ecosystem Catalog (runtime image)](https://catalog.redhat.com/software/containers/intel/openvino-runtime/606ff4d7ecb5241699188fb3) -- [Red Hat* Ecosystem Catalog (development image)](https://catalog.redhat.com/software/containers/intel/openvino-dev/613a450dc9bc35f21dc4a1f7) -- [Azure* Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/intel_corporation.openvino) - - -## License -This Dockerfile contains third-party components with different licenses. -If you are distributing the container as a whole, then you are responsible for license compliance for all of the software it contains. - -## Documentation -* [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) -* [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) -* [Official Dockerfile reference](https://docs.docker.com/engine/reference/builder/) ---- -\* Other names and brands may be claimed as the property of others. \ No newline at end of file diff --git a/dockerfiles/ubuntu20/build_custom/opencv_cmake.txt b/dockerfiles/ubuntu20/build_custom/opencv_cmake.txt deleted file mode 100644 index b95a4697..00000000 --- a/dockerfiles/ubuntu20/build_custom/opencv_cmake.txt +++ /dev/null @@ -1,27 +0,0 @@ --D CMAKE_INSTALL_PREFIX=install --D OPENCV_BIN_INSTALL_PATH=bin --D OPENCV_INCLUDE_INSTALL_PATH=include --D OPENCV_LIB_INSTALL_PATH=lib --D OPENCV_CONFIG_INSTALL_PATH=cmake --D OPENCV_3P_LIB_INSTALL_PATH=3rdparty --D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples --D OPENCV_DOC_INSTALL_PATH=doc --D OPENCV_OTHER_INSTALL_PATH=etc --D OPENCV_LICENSES_INSTALL_PATH=etc/licenses --D PYTHON3_PACKAGES_PATH=install/python/python3 - --D CMAKE_BUILD_TYPE=Debug --D WITH_INF_ENGINE=ON --D INF_ENGINE_RELEASE=2022010000 --D WITH_TBB=OFF --D ENABLE_CXX11=ON --D OPENCV_SKIP_PYTHON_LOADER=ON --D OPENCV_GENERATE_SETUPVARS=OFF --D ENABLE_CONFIG_VERIFICATION=ON --D WITH_1394=OFF --D WITH_VTK=OFF --D WITH_JASPER=OFF --D WITH_EIGEN=OFF --D WITH_LAPACK=OFF --D WITH_OPENCLAMDFFT=OFF --D WITH_OPENCLAMDBLAS=OFF \ No newline at end of file diff --git a/dockerfiles/ubuntu20/build_custom/openvino_cmake.txt b/dockerfiles/ubuntu20/build_custom/openvino_cmake.txt deleted file mode 100644 index d82e75fa..00000000 --- a/dockerfiles/ubuntu20/build_custom/openvino_cmake.txt +++ /dev/null @@ -1,7 +0,0 @@ --D CMAKE_INSTALL_PREFIX=install - --D CMAKE_BUILD_TYPE=Debug --D ENABLE_PYTHON=ON --D NGRAPH_DEBUG_ENABLE=ON --D PYTHON_EXECUTABLE=/usr/bin/python3 --D ENABLE_WHEEL=ON diff --git a/dockerfiles/ubuntu20/openvino_cg_dev_2024.0.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_dev_2024.0.0.dockerfile deleted file mode 100644 index af70218a..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_dev_2024.0.0.dockerfile +++ /dev/null @@ -1,357 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="4.7.0" - -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git --depth 1 -b ${OPENCV_BRANCH} - -WORKDIR /opt/repo/opencv/build -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=ON \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.0.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/ubuntu20/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/ubuntu20/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b build && \ - cp -R build/intel64/Release samples_bin && \ - rm -Rf build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_dev_2024.1.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_dev_2024.1.0.dockerfile deleted file mode 100644 index c66bdfb6..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_dev_2024.1.0.dockerfile +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu20_2024.1.0.15008.f4afc983258_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -# 4.8 with a fix for building tests -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=OFF \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.1.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_dev_2024.2.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_dev_2024.2.0.dockerfile deleted file mode 100644 index c53efdc4..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_dev_2024.2.0.dockerfile +++ /dev/null @@ -1,358 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -# 4.8 with a fix for building tests -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=OFF \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.2.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_dev_2024.3.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_dev_2024.3.0.dockerfile deleted file mode 100644 index a91d30df..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_dev_2024.3.0.dockerfile +++ /dev/null @@ -1,357 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=OFF \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.3.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.0.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_runtime_2024.0.0.dockerfile deleted file mode 100644 index d1bf1bdd..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.0.0.dockerfile +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/ubuntu20/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.1.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_runtime_2024.1.0.dockerfile deleted file mode 100644 index 85b14efd..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.1.0.dockerfile +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu20_2024.1.0.15008.f4afc983258_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.2.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_runtime_2024.2.0.dockerfile deleted file mode 100644 index 8603bb8a..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.2.0.dockerfile +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.3.0.dockerfile b/dockerfiles/ubuntu20/openvino_cg_runtime_2024.3.0.dockerfile deleted file mode 100644 index 8d310ba7..00000000 --- a/dockerfiles/ubuntu20/openvino_cg_runtime_2024.3.0.dockerfile +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu20/third-party-programs-docker-dev.txt b/dockerfiles/ubuntu20/third-party-programs-docker-dev.txt deleted file mode 100644 index 8e94493a..00000000 --- a/dockerfiles/ubuntu20/third-party-programs-docker-dev.txt +++ /dev/null @@ -1,3248 +0,0 @@ -OpenVINO development Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. ------------------------------------------------------------------------------------------------------ -1. tensorflow - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------- -Files: third_party/compute_library/... - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - ------------------- -Files: ACKNOWLEDGEMENTS -LICENSE - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------- -Files: third_party/hexagon - -Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted (subject to the limitations in the -disclaimer below) provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of The Linux Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE -GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT -HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------------------- -2. mxnet - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ====================================================================================== - Apache MXNET (incubating) Subcomponents: - - The Apache MXNET (incubating) project contains subcomponents with separate - copyright notices and license terms. Your use of the source code for the - these subcomponents is subject to the terms and conditions of the following - licenses. If not stated otherwise, their copyright notices and license terms - are available at the path of the subcomponent. - - If a folder hierarchy is listed as subcomponent, separate listings of - further subcomponents (files or folder hierarchies) part of the hierarchy - take precedence. - - ======================================================================================= - Apache-2.0 license - ======================================================================================= - - 3rdparty/ctc_include - 3rdparty/dlpack - 3rdparty/dmlc-core - 3rdparty/mshadow - 3rdparty/tvm - 3rdparty/tvm/3rdparty/dmlc-core - 3rdparty/tvm/3rdparty/dlpack - 3rdparty/ps-lite - 3rdparty/onednn - 3rdparty/googletest/googlemock/scripts/generator - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark - 3rdparty/onednn/tests/benchdnn (Copy of the License available at top of current file) - src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file) - 3rdparty/onednn/doc/assets/mathjax (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/material-design-icons-3.0.1 (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/font/Roboto (Copy of the License available at top of current file) - 3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file) - - ======================================================================================= - MIT license - ======================================================================================= - - 3rdparty/miniz/miniz.c - 3rdparty/miniz/miniz.h - example/gluon/tree_lstm - 3rdparty/tvm/3rdparty/cma - 3rdparty/onnx-tensorrt - 3rdparty/onnx-tensorrt/third_party/onnx - docs/static_site/src/assets/js/clipboard.js - docs/python_docs/themes/mx-theme - 3rdparty/intgemm - 3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h - src/operator/nn/layer_norm.cc - - ======================================================================================= - 3-clause BSD license - ======================================================================================= - - 3rdparty/onednn/src/cpu/x64/xbyak - 3rdparty/onednn/tests/gtests/gtest - 3rdparty/onednn/cmake/FindOpenCL.cmake (Copy of the License available at licenses/BSD3-cmake) - 3rdparty/onednn/src/cpu/x64/jit_utils/jitprofiling/ - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/ctc_include/contrib/moderngpu - 3rdparty/nvidia_cub - 3rdparty/nvidia_cub/test/mersenne.h - 3rdparty/googletest/googlemock - 3rdparty/googletest/googletest - cmake/upstream/FindCUDAToolkit.cmake - cmake/upstream/select_compute_arch.cmake - src/operator/numpy/np_einsum_op-inl.h - src/operator/numpy/np_einsum_path_op-inl.h - src/operator/numpy/np_einsum_op.cc - src/operator/contrib/erfinv-inl.h - - ======================================================================================= - 2-clause BSD license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/concurrentqueue.h - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindEigen3.cmake (Copy of the License available at licenses/BSD2) - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/tvm/3rdparty/picojson/picojson.h - - ======================================================================================= - Apache-2.0 license + LLVM Exceptions - ======================================================================================= - - 3rdparty/openmp - - ======================================================================================= - Caffe Licensing Model - ======================================================================================= - - src/operator/nn/pool.h - src/operator/nn/pool.cuh - src/operator/nn/im2col.h - src/operator/nn/im2col.cuh - src/operator/contrib/nn/deformable_im2col.h - src/operator/contrib/nn/deformable_im2col.cuh - src/operator/contrib/nn/modulated_deformable_im2col.h - src/operator/contrib/nn/modulated_deformable_im2col.cuh - - ======================================================================================= - 2-clause BSD license + zlib license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/blockingconcurrentqueue.h - - ======================================================================================= - Apache-2.0 license + 3-clause BSD license - ======================================================================================= - - python/mxnet/contrib/onnx/mx2onnx/_op_translations.py - python/mxnet/contrib/onnx/mx2onnx/export_onnx.py - - ======================================================================================= - Apache-2.0 license + MIT License - ======================================================================================= - - src/serialization/cnpy.h (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - src/serialization/cnpy.cc (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) - - ======================================================================================= - Apache-2.0 license + Boost Software License, Version 1.0 - ======================================================================================= - - cmake/Modules/FindJeMalloc.cmake - - ======================================================================================= - Boost Software License, Version 1.0 - ======================================================================================= - - 3rdparty/intgemm/test/3rd_party/catch.hpp (Copy of the License available at licenses/BOOST1_0) - 3rdparty/onednn/src/common/primitive_hashing.hpp - - ======================================================================================= - LLVM Release License - ======================================================================================= - - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang - - ======================================================================================= - Unlicense - ======================================================================================= - - 3rdparty/tvm/3rdparty/rang - - ======================================================================================= - SIL Open Font License (OFL) - ======================================================================================= - - docs/python_docs/themes/mx-theme/mxtheme/static/webfonts/ (Copy of the License available at licenses/OFL1_1) --------------------------------------------------------------------------------------------------------------------- - -3. sentencepiece - - tokenizers - - tensorboard - Copyright 2017 The TensorFlow Authors. - All rights reserved. - - yacs - - onnx - - requests - - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- -4.cmake - -CMake - Cross Platform Makefile Generator -Copyright 2000-2021 Kitware, Inc. and Contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -* Neither the name of Kitware, Inc. nor the names of Contributors - may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------------------------------------------------------------------- - -The following individuals and institutions are among the Contributors: - -* Aaron C. Meadows -* Adriaan de Groot -* Aleksey Avdeev -* Alexander Neundorf -* Alexander Smorkalov -* Alexey Sokolov -* Alex Merry -* Alex Turbov -* Andreas Pakulat -* Andreas Schneider -* André Rigland Brodtkorb -* Axel Huebl, Helmholtz-Zentrum Dresden - Rossendorf -* Benjamin Eikel -* Bjoern Ricks -* Brad Hards -* Christopher Harvey -* Christoph Grüninger -* Clement Creusot -* Daniel Blezek -* Daniel Pfeifer -* Enrico Scholz -* Eran Ifrah -* Esben Mose Hansen, Ange Optimization ApS -* Geoffrey Viola -* Google Inc -* Gregor Jasny -* Helio Chissini de Castro -* Ilya Lavrenov -* Insight Software Consortium -* Jan Woetzel -* Julien Schueller -* Kelly Thompson -* Konstantin Podsvirov -* Laurent Montel -* Mario Bensi -* Martin Gräßlin -* Mathieu Malaterre -* Matthaeus G. Chajdas -* Matthias Kretz -* Matthias Maennich -* Michael Hirsch, Ph.D. -* Michael Stürmer -* Miguel A. Figueroa-Villanueva -* Mike Jackson -* Mike McQuaid -* Nicolas Bock -* Nicolas Despres -* Nikita Krupen'ko -* NVIDIA Corporation -* OpenGamma Ltd. -* Patrick Stotko -* Per Øyvind Karlsen -* Peter Collingbourne -* Petr Gotthard -* Philip Lowman -* Philippe Proulx -* Raffi Enficiaud, Max Planck Society -* Raumfeld -* Roger Leigh -* Rolf Eike Beer -* Roman Donchenko -* Roman Kharitonov -* Ruslan Baratov -* Sebastian Holtermann -* Stephen Kelly -* Sylvain Joubert -* The Qt Company Ltd. -* Thomas Sondergaard -* Tobias Hunger -* Todd Gamblin -* Tristan Carel -* University of Dundee -* Vadim Zhukov -* Will Dicharry - -See version control history for details of individual contributions. - -The above copyright and license notice applies to distributions of -CMake in source and binary form. Third-party software packages supplied -with CMake under compatible licenses provide their own copyright notices -documented in corresponding subdirectories or source files. - ------------------------------------------------------------------------------- - -CMake was initially developed by Kitware with the following sponsorship: - - * National Library of Medicine at the National Institutes of Health - as part of the Insight Segmentation and Registration Toolkit (ITK). - - * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel - Visualization Initiative. - - * National Alliance for Medical Image Computing (NAMIC) is funded by the - National Institutes of Health through the NIH Roadmap for Medical Research, - Grant U54 EB005149. - - * Kitware, Inc. -------------------------------------------------------------------------------------------- -5. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ---------------------------------------------------------------------------------------------- -6. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. ------------------------------------------------------------------------------------------------ -7. networkx - Copyright (C) 2004-2021, NetworkX Developers - Aric Hagberg - Dan Schult - Pieter Swart - All rights reserved. - - protobuf - Copyright (c) 2016, Daniel Wirtz All rights reserved. - - scikit-learn - Copyright (c) 2007-2021 The scikit-learn developers. - All rights reserved. - - shapely - Copyright (c) 2007, Sean C. Gillies - All rights reserved. - - scipy - Copyright (c) 2001-2002 Enthought, Inc. 2003-2019, SciPy Developers. - All rights reserved. - - torchvision - Copyright (c) Soumith Chintala 2016, - Copyright (c) Andrew Kane 2020-2021, - All rights reserved. - - pandas - Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team - All rights reserved. - Copyright (c) 2011-2021, Open source contributors. - - hyperopt - Copyright (c) 2013, James Bergstra - All rights reserved. - - mpmath - Copyright (c) 2005-2021 Fredrik Johansson and mpmath contributors - All rights reserved. - - numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - imagecodecs - Copyright (c) 2008-2022, Christoph Gohlke - All rights reserved. - - fastjsonschema - Copyright (c) 2018, Michal Horejsek - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------------------------------------------------------------------------- -8. scikit-image - -Copyright (C) 2019, the scikit-image team -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - 3. Neither the name of skimage nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:_check_version - - Copyright (c) 2013 The IPython Development Team - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:is_installed: - - Original Copyright (C) 2009-2011 Pierre Raybaut - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------------- -9. sympy -Copyright (c) 2006-2021 SymPy Development Team - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Patches that were taken from the Diofant project (https://github.com/diofant/diofant) -are licensed as: - -Copyright (c) 2006-2018 SymPy Development Team, - 2013-2021 Sergey B Kirpichev - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of Diofant or SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Submodules taken from the multipledispatch project (https://github.com/mrocklin/multipledispatch) -are licensed as: - -Copyright (c) 2014 Matthew Rocklin - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of multipledispatch nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -The files under the directory sympy/parsing/autolev/tests/pydy-example-repo -are directly copied from PyDy project and are licensed as: - -Copyright (c) 2009-2021, PyDy Authors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -* Neither the name of this project nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL PYDY AUTHORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------------------- -10.Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ---------------------------------------------------------------------------------------- -11.GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! -------------------------------------------------------------------------------------- -12.libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------ -13.gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -14. libc6-dev - -* Most of the GNU C library is under the following copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - 02110-1301 USA - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. - -* The utilities associated with GNU C library is under the following - copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/GPL-2'. - -* All code incorporated from 4.4 BSD is distributed under the following - license: - - Copyright (C) 1991 Regents of the University of California. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. [This condition was removed.] - 4. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - -* The DNS resolver code, taken from BIND 4.9.5, is copyrighted both by - UC Berkeley and by Digital Equipment Corporation. The DEC portions - are under the following license: - - Portions Copyright (C) 1993 by Digital Equipment Corporation. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies, and - that the name of Digital Equipment Corporation not be used in - advertising or publicity pertaining to distribution of the document or - software without specific, written prior permission. - - THE SOFTWARE IS PROVIDED ``AS IS'' AND DIGITAL EQUIPMENT CORP. - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL - DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -* The ISC portions are under the following license: - - Portions Copyright (c) 1996-1999 by Internet Software Consortium. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS - ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE - CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL - DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR - PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS - ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS - SOFTWARE. - -* The Sun RPC support (from rpcsrc-4.0) is covered by the following - license: - - Copyright (c) 2010, Oracle America, Inc. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - * Neither the name of the "Oracle America, Inc." nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following CMU license covers some of the support code for Mach, - derived from Mach 3.0: - - Mach Operating System - Copyright (C) 1991,1990,1989 Carnegie Mellon University - All Rights Reserved. - - Permission to use, copy, modify and distribute this software and its - documentation is hereby granted, provided that both the copyright - notice and this permission notice appear in all copies of the - software, derivative works or modified versions, and any portions - thereof, and that both notices appear in supporting documentation. - - CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS ``AS IS'' - CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR - ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - - Carnegie Mellon requests users of this software to return to - - Software Distribution Coordinator - School of Computer Science - Carnegie Mellon University - Pittsburgh PA 15213-3890 - - or Software.Distribution@CS.CMU.EDU any improvements or - extensions that they make and grant Carnegie Mellon the rights to - redistribute these changes. - -* The file if_ppp.h is under the following CMU license: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY AND - CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following license covers the files from Intel's "Highly Optimized - Mathematical Functions for Itanium" collection: - - Intel License Agreement - - Copyright (c) 2000, Intel Corporation - - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * The name of Intel Corporation may not be used to endorse or promote - products derived from this software without specific prior written - permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The files inet/getnameinfo.c and sysdeps/posix/getaddrinfo.c are copyright - (C) by Craig Metz and are distributed under the following license: - - /* The Inner Net License, Version 2.00 - - The author(s) grant permission for redistribution and use in source and - binary forms, with or without modification, of the software and documentation - provided that the following conditions are met: - - 0. If you receive a version of the software that is specifically labelled - as not being for redistribution (check the version message and/or README), - you are not permitted to redistribute that version of the software in any - way or form. - 1. All terms of the all other applicable copyrights and licenses must be - followed. - 2. Redistributions of source code must retain the authors' copyright - notice(s), this list of conditions, and the following disclaimer. - 3. Redistributions in binary form must reproduce the authors' copyright - notice(s), this list of conditions, and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 4. [The copyright holder has authorized the removal of this clause.] - 5. Neither the name(s) of the author(s) nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - If these license terms cause you a real problem, contact the author. */ - -* The file sunrpc/des_impl.c is copyright Eric Young: - - Copyright (C) 1992 Eric Young - Collected from libdes and modified for SECURE RPC by Martin Kuck 1994 - This file is distributed under the terms of the GNU Lesser General - Public License, version 2.1 or later - see the file COPYING.LIB for details. - If you did not receive a copy of the license with this program, please - see to obtain a copy. - -* The libidn code is copyright Simon Josefsson, with portions copyright - The Internet Society, Tom Tromey and Red Hat, Inc.: - - Copyright (C) 2002, 2003, 2004, 2011 Simon Josefsson - - This file is part of GNU Libidn. - - GNU Libidn is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - GNU Libidn is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with GNU Libidn; if not, see . - -* The following notice applies to portions of libidn/nfkc.c: - - This file contains functions from GLIB, including gutf8.c and - gunidecomp.c, all licensed under LGPL and copyright hold by: - - Copyright (C) 1999, 2000 Tom Tromey - Copyright 2000 Red Hat, Inc. - -* The following applies to portions of libidn/punycode.c and - libidn/punycode.h: - - This file is derived from RFC 3492bis written by Adam M. Costello. - - Disclaimer and license: Regarding this entire document or any - portion of it (including the pseudocode and C code), the author - makes no guarantees and is not responsible for any damage resulting - from its use. The author grants irrevocable permission to anyone - to use, modify, and distribute it in any way that does not diminish - the rights of anyone else to use, modify, and distribute it, - provided that redistributed derivative works do not contain - misleading author or version information. Derivative works need - not be licensed under similar terms. - - Copyright (C) The Internet Society (2003). All Rights Reserved. - - This document and translations of it may be copied and furnished to - others, and derivative works that comment on or otherwise explain it - or assist in its implementation may be prepared, copied, published - and distributed, in whole or in part, without restriction of any - kind, provided that the above copyright notice and this paragraph are - included on all such copies and derivative works. However, this - document itself may not be modified in any way, such as by removing - the copyright notice or references to the Internet Society or other - Internet organizations, except as needed for the purpose of - developing Internet standards in which case the procedures for - copyrights defined in the Internet Standards process must be - followed, or as required to translate it into languages other than - English. - - The limited permissions granted above are perpetual and will not be - revoked by the Internet Society or its successors or assigns. - - This document and the information contained herein is provided on an - "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING - TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING - BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION - HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF - MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - -* The file inet/rcmd.c is under a UCB copyright and the following: - - Copyright (C) 1998 WIDE Project. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the project nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - * The file posix/runtests.c is copyright Tom Lord: - - Copyright 1995 by Tom Lord - - All Rights Reserved - - Permission to use, copy, modify, and distribute this software and its - documentation for any purpose and without fee is hereby granted, - provided that the above copyright notice appear in all copies and that - both that copyright notice and this permission notice appear in - supporting documentation, and that the name of the copyright holder not be - used in advertising or publicity pertaining to distribution of the - software without specific, written prior permission. - - Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, - INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO - EVENT SHALL TOM LORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR - CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF - USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - -* The posix/rxspencer tests are copyright Henry Spencer: - - Copyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved. - This software is not subject to any license of the American Telephone - and Telegraph Company or of the Regents of the University of California. - - Permission is granted to anyone to use this software for any purpose on - any computer system, and to alter it and redistribute it, subject - to the following restrictions: - - 1. The author is not responsible for the consequences of use of this - software, no matter how awful, even if they arise from flaws in it. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. Since few users ever read sources, - credits must appear in the documentation. - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. Since few users - ever read sources, credits must appear in the documentation. - - 4. This notice may not be removed or altered. - -* The file posix/PCRE.tests is copyright University of Cambridge: - - Copyright (c) 1997-2003 University of Cambridge - - Permission is granted to anyone to use this software for any purpose on any - computer system, and to redistribute it freely, subject to the following - restrictions: - - 1. This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. In practice, this means that if you use - PCRE in software that you distribute to others, commercially or - otherwise, you must put a sentence like this - - Regular expression support is provided by the PCRE library package, - which is open source software, written by Philip Hazel, and copyright - by the University of Cambridge, England. - - somewhere reasonably visible in your documentation and in any relevant - files or online help data or similar. A reference to the ftp site for - the source, that is, to - - ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ - - should also be given in the documentation. However, this condition is not - intended to apply to whole chains of software. If package A includes PCRE, - it must acknowledge it, but if package B is software that includes package - A, the condition is not imposed on package B (unless it uses PCRE - independently). - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 4. If PCRE is embedded in any software that is released under the GNU - General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL), - then the terms of that licence shall supersede any condition above with - which it is incompatible. - -* Files from Sun fdlibm are copyright Sun Microsystems, Inc.: - - Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - - Developed at SunPro, a Sun Microsystems, Inc. business. - Permission to use, copy, modify, and distribute this - software is freely granted, provided that this notice - is preserved. - -* Part of stdio-common/tst-printf.c is copyright C E Chew: - - (C) Copyright C E Chew - - Feel free to copy, use and distribute this software provided: - - 1. you do not pretend that you wrote it - 2. you leave this copyright notice intact. - -* Various long double libm functions are copyright Stephen L. Moshier: - - Copyright 2001 by Stephen L. Moshier - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, see - . */ --------------------------------------------------------------------------- -14.pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - py-cpuinfo - Copyright (c) 2014-2021 Matthew Brennan Jones - - tqdm - Copyright (c) 2013 noamraph - - nibabel - Copyright (c) 2009-2019 Matthew Brett - Copyright (c) 2010-2013 Stephan Gerhard - Copyright (c) 2006-2014 Michael Hanke - Copyright (c) 2011 Christian Haselgrove - Copyright (c) 2010-2011 Jarrod Millman - Copyright (c) 2011-2019 Yaroslav Halchenko - Copyright (c) 2015-2019 Chris Markiewicz - - editdistance - Copyright (c) 2019 Hiroyuki Tanaka - - torch - Copyright (c) 2013 Torchlight Software - - future - Copyright (c) 2013-2019 Python Charmers Pty Ltd, Australia - - motmetrics - Copyright (c) 2017-2020 Christoph Heindl - Copyright (c) 2018 Toka - Copyright (c) 2019-2020 Jack Valmadre - - tensorboardX - Copyright (c) 2017 Tzu-Wei Huang - - setuptools - Copyright Jason R. Coombs - - addict - Copyright (c) 2014 Mats Julian Olsen - - jstyleson - Copyright (c) 2016 linjackson - - rawpy - Copyright (c) 2014 Maik Riechert - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - PyYaml - Copyright (c) 2017-2021 Ingy döt Net - Copyright (c) 2006-2016 Kirill Simonov - - urllib3 - Copyright (c) 2008-2020 Andrey Petrov and contributors - - - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -© 2021 GitHub, Inc. --------------------------------------------------------------------------- -16.pydicom - -License file for pydicom, a pure-python DICOM library - -Copyright (c) 2008-2020 Darcy Mason and pydicom contributors - -Except for portions outlined below, pydicom is released under an MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Portions of pydicom (private dictionary file(s)) were generated from the -private dictionary of the GDCM library, released under the following license: - - Program: GDCM (Grassroots DICOM). A DICOM library - Module: http://gdcm.sourceforge.net/Copyright.html - -Copyright (c) 2006-2010 Mathieu Malaterre -Copyright (c) 1993-2005 CREATIS -(CREATIS = Centre de Recherche et d'Applications en Traitement de l'Image) -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither name of Mathieu Malaterre, or CREATIS, nor the names of any - contributors (CNRS, INSERM, UCB, Universite Lyon I), may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -17.libtinfo5 - -This is the Debian prepackaged version of the ncurses -library and terminfo utilities. ncurses/terminfo was originally written -by Pavel Curtis and Zeyd M. Ben-Halim , and is -currently held by the Free Software Foundation. - -This package was put together by Vaidhyanathan G Mayilrangam - and Joel Klecker , using sources -obtained from ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.0.tar.gz. -Current versions of the ncurses sources are found at -ftp://invisible-island.net/ncurses/. - -It is based somewhat on work done by Bruce Perens , -David Engel . Michael Alan Dorman -, Richard Braakman , James Troup -, J.H.M. Dassen (Ray) -, and Galen Hazelwood -over various years. - - -Copyright (c) 1998-2018 Free Software Foundation, Inc. -Copyright © 2001 by Pradeep Padala - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, distribute with modifications, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. - - -Copyright (C) 1994 X Consortium - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not -be used in advertising or otherwise to promote the sale, use or other deal- -ings in this Software without prior written authorization from the X Consor- -tium. - - -Copyright (c) 1980, 1991, 1992, 1993 - The Regents of the University of California. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - - -Copyright 1996-2018 by Thomas E. Dickey - - All Rights Reserved - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. ---------------------------------------------------------------------------- -18. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ----------------------------------------------------------------------------- -19.pillow - -The Python Imaging Library (PIL) is - - Copyright © 1997-2011 by Secret Labs AB - Copyright © 1995-2011 by Fredrik Lundh - -Pillow is the friendly PIL fork. It is - - Copyright © 2010-2021 by Alex Clark and contributors - -Like PIL, Pillow is licensed under the open source HPND License: - -By obtaining, using, and/or copying this software and/or its associated -documentation, you agree that you have read, understood, and will comply -with the following terms and conditions: - -Permission to use, copy, modify, and distribute this software and its -associated documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appears in all copies, and that -both that copyright notice and this permission notice appear in supporting -documentation, and that the name of Secret Labs AB or the author not be -used in advertising or publicity pertaining to distribution of the software -without specific, written prior permission. - -SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS -SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. -IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, -INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------------- -20.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------- -21.defusedxml - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python -alone or in any derivative version, provided, however, that PSF's -License Agreement and PSF's notice of copyright, i.e., "Copyright (c) -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative -version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. ---------------------------------------------------------------------- -22.lmdb - -The OpenLDAP Public License - Version 2.8, 17 August 2003 - -Redistribution and use of this software and associated documentation -("Software"), with or without modification, are permitted provided -that the following conditions are met: - -1. Redistributions in source form must retain copyright statements - and notices, - -2. Redistributions in binary form must reproduce applicable copyright - statements and notices, this list of conditions, and the following - disclaimer in the documentation and/or other materials provided - with the distribution, and - -3. Redistributions must contain a verbatim copy of this document. - -The OpenLDAP Foundation may revise this license from time to time. -Each revision is distinguished by a version number. You may use -this Software under terms of this license revision or under the -terms of any subsequent revision of the license. - -THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS -CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT -SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) -OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -The names of the authors and copyright holders must not be used in -advertising or otherwise to promote the sale, use or other dealing -in this Software without specific, written prior permission. Title -to copyright in this Software shall at all times remain with copyright -holders. - -OpenLDAP is a registered trademark of the OpenLDAP Foundation. - -Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, -California, USA. All Rights Reserved. Permission to copy and -distribute verbatim copies of this document is granted. ------------------------------------------------------------------------- -23. yamlloader - Copyright 2017 Jonas Eschle - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - -Parts of the code, mostly from ordereddict.py including within others -the functions construct_yaml_map, construct_mapping are licensed under the -following license. - -Copyright 2017 François Ménabé - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------------- - - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/ubuntu20/third-party-programs-docker-runtime.txt b/dockerfiles/ubuntu20/third-party-programs-docker-runtime.txt deleted file mode 100644 index 4d8721d3..00000000 --- a/dockerfiles/ubuntu20/third-party-programs-docker-runtime.txt +++ /dev/null @@ -1,1243 +0,0 @@ -OpenVINO runtime Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. --------------------------------------------------------------------------------------------- -1. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------------------------- -2. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - --------------------------------------------------------------------------------------------------- -3. Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ------------------------------------------------------------------------------------------------------- -4. GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! ---------------------------------------------------------------------------------------------- - -5. libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------- -6. gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -7. pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------ -8. numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -9. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ------------------------------------------------------------------------------------- -10.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------- -10. cmake - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/ubuntu22/openvino_cg_dev_2024.0.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_dev_2024.0.0.dockerfile deleted file mode 100644 index 1d648dc9..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_dev_2024.0.0.dockerfile +++ /dev/null @@ -1,359 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.10:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libswresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="4.7.0" - -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git --depth 1 -b ${OPENCV_BRANCH} - -WORKDIR /opt/repo/opencv/build -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=ON \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.10:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.0.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/ubuntu22/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/ubuntu22/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b build && \ - cp -R build/intel64/Release samples_bin && \ - rm -Rf build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_dev_2024.1.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_dev_2024.1.0.dockerfile deleted file mode 100644 index 31da8e86..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_dev_2024.1.0.dockerfile +++ /dev/null @@ -1,360 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu22_2024.1.0.15008.f4afc983258_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libswresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" # 4.8 with a fix for building tests -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.1.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_dev_2024.2.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_dev_2024.2.0.dockerfile deleted file mode 100644 index 53ba9b15..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_dev_2024.2.0.dockerfile +++ /dev/null @@ -1,361 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu22_2024.2.0.15519.5c0f38f83f6_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libswresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -# 4.8 with a fix for building tests -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.2.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_dev_2024.3.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_dev_2024.3.0.dockerfile deleted file mode 100644 index ae38c32a..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_dev_2024.3.0.dockerfile +++ /dev/null @@ -1,360 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libswresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2024.3.0 -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.0.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_runtime_2024.0.0.dockerfile deleted file mode 100644 index 044b69d7..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.0.0.dockerfile +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/ubuntu22/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.1.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_runtime_2024.1.0.dockerfile deleted file mode 100644 index 153aa2f0..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.1.0.dockerfile +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu22_2024.1.0.15008.f4afc983258_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.2.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_runtime_2024.2.0.dockerfile deleted file mode 100644 index c6d114b8..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.2.0.dockerfile +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url=https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu22_2024.2.0.15519.5c0f38f83f6_x86_64.tgz -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.3.0.dockerfile b/dockerfiles/ubuntu22/openvino_cg_runtime_2024.3.0.dockerfile deleted file mode 100644 index 3c657417..00000000 --- a/dockerfiles/ubuntu22/openvino_cg_runtime_2024.3.0.dockerfile +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - - -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - - - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" - -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" - - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - - -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig - -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip - -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -# for CPU - -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps - - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below diff --git a/dockerfiles/ubuntu22/third-party-programs-docker-dev.txt b/dockerfiles/ubuntu22/third-party-programs-docker-dev.txt deleted file mode 100644 index 8e94493a..00000000 --- a/dockerfiles/ubuntu22/third-party-programs-docker-dev.txt +++ /dev/null @@ -1,3248 +0,0 @@ -OpenVINO development Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. ------------------------------------------------------------------------------------------------------ -1. tensorflow - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------- -Files: third_party/compute_library/... - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - ------------------- -Files: ACKNOWLEDGEMENTS -LICENSE - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------- -Files: third_party/hexagon - -Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted (subject to the limitations in the -disclaimer below) provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of The Linux Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE -GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT -HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------------------- -2. mxnet - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - ====================================================================================== - Apache MXNET (incubating) Subcomponents: - - The Apache MXNET (incubating) project contains subcomponents with separate - copyright notices and license terms. Your use of the source code for the - these subcomponents is subject to the terms and conditions of the following - licenses. If not stated otherwise, their copyright notices and license terms - are available at the path of the subcomponent. - - If a folder hierarchy is listed as subcomponent, separate listings of - further subcomponents (files or folder hierarchies) part of the hierarchy - take precedence. - - ======================================================================================= - Apache-2.0 license - ======================================================================================= - - 3rdparty/ctc_include - 3rdparty/dlpack - 3rdparty/dmlc-core - 3rdparty/mshadow - 3rdparty/tvm - 3rdparty/tvm/3rdparty/dmlc-core - 3rdparty/tvm/3rdparty/dlpack - 3rdparty/ps-lite - 3rdparty/onednn - 3rdparty/googletest/googlemock/scripts/generator - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark - 3rdparty/onednn/tests/benchdnn (Copy of the License available at top of current file) - src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file) - 3rdparty/onednn/doc/assets/mathjax (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/material-design-icons-3.0.1 (Copy of the License available at top of current file) - docs/python_docs/themes/mx-theme/mxtheme/static/font/Roboto (Copy of the License available at top of current file) - 3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file) - - ======================================================================================= - MIT license - ======================================================================================= - - 3rdparty/miniz/miniz.c - 3rdparty/miniz/miniz.h - example/gluon/tree_lstm - 3rdparty/tvm/3rdparty/cma - 3rdparty/onnx-tensorrt - 3rdparty/onnx-tensorrt/third_party/onnx - docs/static_site/src/assets/js/clipboard.js - docs/python_docs/themes/mx-theme - 3rdparty/intgemm - 3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h - src/operator/nn/layer_norm.cc - - ======================================================================================= - 3-clause BSD license - ======================================================================================= - - 3rdparty/onednn/src/cpu/x64/xbyak - 3rdparty/onednn/tests/gtests/gtest - 3rdparty/onednn/cmake/FindOpenCL.cmake (Copy of the License available at licenses/BSD3-cmake) - 3rdparty/onednn/src/cpu/x64/jit_utils/jitprofiling/ - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/ctc_include/contrib/moderngpu - 3rdparty/nvidia_cub - 3rdparty/nvidia_cub/test/mersenne.h - 3rdparty/googletest/googlemock - 3rdparty/googletest/googletest - cmake/upstream/FindCUDAToolkit.cmake - cmake/upstream/select_compute_arch.cmake - src/operator/numpy/np_einsum_op-inl.h - src/operator/numpy/np_einsum_path_op-inl.h - src/operator/numpy/np_einsum_op.cc - src/operator/contrib/erfinv-inl.h - - ======================================================================================= - 2-clause BSD license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/concurrentqueue.h - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindEigen3.cmake (Copy of the License available at licenses/BSD2) - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/FindPythonLibsNew.cmake - 3rdparty/tvm/3rdparty/picojson/picojson.h - - ======================================================================================= - Apache-2.0 license + LLVM Exceptions - ======================================================================================= - - 3rdparty/openmp - - ======================================================================================= - Caffe Licensing Model - ======================================================================================= - - src/operator/nn/pool.h - src/operator/nn/pool.cuh - src/operator/nn/im2col.h - src/operator/nn/im2col.cuh - src/operator/contrib/nn/deformable_im2col.h - src/operator/contrib/nn/deformable_im2col.cuh - src/operator/contrib/nn/modulated_deformable_im2col.h - src/operator/contrib/nn/modulated_deformable_im2col.cuh - - ======================================================================================= - 2-clause BSD license + zlib license - ======================================================================================= - - 3rdparty/dmlc-core/include/dmlc/blockingconcurrentqueue.h - - ======================================================================================= - Apache-2.0 license + 3-clause BSD license - ======================================================================================= - - python/mxnet/contrib/onnx/mx2onnx/_op_translations.py - python/mxnet/contrib/onnx/mx2onnx/export_onnx.py - - ======================================================================================= - Apache-2.0 license + MIT License - ======================================================================================= - - src/serialization/cnpy.h (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - src/serialization/cnpy.cc (Copy of the AL2 License available at the top of this file, MIT License available at licenses/MIT) - 3rdparty/onnx-tensorrt/third_party/onnx/tools/protoc-gen-mypy.py (Copy of the referenced AL2 License available at top of current file) - - ======================================================================================= - Apache-2.0 license + Boost Software License, Version 1.0 - ======================================================================================= - - cmake/Modules/FindJeMalloc.cmake - - ======================================================================================= - Boost Software License, Version 1.0 - ======================================================================================= - - 3rdparty/intgemm/test/3rd_party/catch.hpp (Copy of the License available at licenses/BOOST1_0) - 3rdparty/onednn/src/common/primitive_hashing.hpp - - ======================================================================================= - LLVM Release License - ======================================================================================= - - 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang - - ======================================================================================= - Unlicense - ======================================================================================= - - 3rdparty/tvm/3rdparty/rang - - ======================================================================================= - SIL Open Font License (OFL) - ======================================================================================= - - docs/python_docs/themes/mx-theme/mxtheme/static/webfonts/ (Copy of the License available at licenses/OFL1_1) --------------------------------------------------------------------------------------------------------------------- - -3. sentencepiece - - tokenizers - - tensorboard - Copyright 2017 The TensorFlow Authors. - All rights reserved. - - yacs - - onnx - - requests - - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- -4.cmake - -CMake - Cross Platform Makefile Generator -Copyright 2000-2021 Kitware, Inc. and Contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -* Neither the name of Kitware, Inc. nor the names of Contributors - may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------------------------------------------------------------------------- - -The following individuals and institutions are among the Contributors: - -* Aaron C. Meadows -* Adriaan de Groot -* Aleksey Avdeev -* Alexander Neundorf -* Alexander Smorkalov -* Alexey Sokolov -* Alex Merry -* Alex Turbov -* Andreas Pakulat -* Andreas Schneider -* André Rigland Brodtkorb -* Axel Huebl, Helmholtz-Zentrum Dresden - Rossendorf -* Benjamin Eikel -* Bjoern Ricks -* Brad Hards -* Christopher Harvey -* Christoph Grüninger -* Clement Creusot -* Daniel Blezek -* Daniel Pfeifer -* Enrico Scholz -* Eran Ifrah -* Esben Mose Hansen, Ange Optimization ApS -* Geoffrey Viola -* Google Inc -* Gregor Jasny -* Helio Chissini de Castro -* Ilya Lavrenov -* Insight Software Consortium -* Jan Woetzel -* Julien Schueller -* Kelly Thompson -* Konstantin Podsvirov -* Laurent Montel -* Mario Bensi -* Martin Gräßlin -* Mathieu Malaterre -* Matthaeus G. Chajdas -* Matthias Kretz -* Matthias Maennich -* Michael Hirsch, Ph.D. -* Michael Stürmer -* Miguel A. Figueroa-Villanueva -* Mike Jackson -* Mike McQuaid -* Nicolas Bock -* Nicolas Despres -* Nikita Krupen'ko -* NVIDIA Corporation -* OpenGamma Ltd. -* Patrick Stotko -* Per Øyvind Karlsen -* Peter Collingbourne -* Petr Gotthard -* Philip Lowman -* Philippe Proulx -* Raffi Enficiaud, Max Planck Society -* Raumfeld -* Roger Leigh -* Rolf Eike Beer -* Roman Donchenko -* Roman Kharitonov -* Ruslan Baratov -* Sebastian Holtermann -* Stephen Kelly -* Sylvain Joubert -* The Qt Company Ltd. -* Thomas Sondergaard -* Tobias Hunger -* Todd Gamblin -* Tristan Carel -* University of Dundee -* Vadim Zhukov -* Will Dicharry - -See version control history for details of individual contributions. - -The above copyright and license notice applies to distributions of -CMake in source and binary form. Third-party software packages supplied -with CMake under compatible licenses provide their own copyright notices -documented in corresponding subdirectories or source files. - ------------------------------------------------------------------------------- - -CMake was initially developed by Kitware with the following sponsorship: - - * National Library of Medicine at the National Institutes of Health - as part of the Insight Segmentation and Registration Toolkit (ITK). - - * US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel - Visualization Initiative. - - * National Alliance for Medical Image Computing (NAMIC) is funded by the - National Institutes of Health through the NIH Roadmap for Medical Research, - Grant U54 EB005149. - - * Kitware, Inc. -------------------------------------------------------------------------------------------- -5. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ---------------------------------------------------------------------------------------------- -6. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. ------------------------------------------------------------------------------------------------ -7. networkx - Copyright (C) 2004-2021, NetworkX Developers - Aric Hagberg - Dan Schult - Pieter Swart - All rights reserved. - - protobuf - Copyright (c) 2016, Daniel Wirtz All rights reserved. - - scikit-learn - Copyright (c) 2007-2021 The scikit-learn developers. - All rights reserved. - - shapely - Copyright (c) 2007, Sean C. Gillies - All rights reserved. - - scipy - Copyright (c) 2001-2002 Enthought, Inc. 2003-2019, SciPy Developers. - All rights reserved. - - torchvision - Copyright (c) Soumith Chintala 2016, - Copyright (c) Andrew Kane 2020-2021, - All rights reserved. - - pandas - Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team - All rights reserved. - Copyright (c) 2011-2021, Open source contributors. - - hyperopt - Copyright (c) 2013, James Bergstra - All rights reserved. - - mpmath - Copyright (c) 2005-2021 Fredrik Johansson and mpmath contributors - All rights reserved. - - numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - imagecodecs - Copyright (c) 2008-2022, Christoph Gohlke - All rights reserved. - - fastjsonschema - Copyright (c) 2018, Michal Horejsek - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------------------------------------------------------------------------- -8. scikit-image - -Copyright (C) 2019, the scikit-image team -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - 3. Neither the name of skimage nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:_check_version - - Copyright (c) 2013 The IPython Development Team - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -skimage/_shared/version_requirements.py:is_installed: - - Original Copyright (C) 2009-2011 Pierre Raybaut - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------------- -9. sympy -Copyright (c) 2006-2021 SymPy Development Team - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Patches that were taken from the Diofant project (https://github.com/diofant/diofant) -are licensed as: - -Copyright (c) 2006-2018 SymPy Development Team, - 2013-2021 Sergey B Kirpichev - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of Diofant or SymPy nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -Submodules taken from the multipledispatch project (https://github.com/mrocklin/multipledispatch) -are licensed as: - -Copyright (c) 2014 Matthew Rocklin - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - a. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - b. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - c. Neither the name of multipledispatch nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - --------------------------------------------------------------------------------- - -The files under the directory sympy/parsing/autolev/tests/pydy-example-repo -are directly copied from PyDy project and are licensed as: - -Copyright (c) 2009-2021, PyDy Authors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -* Neither the name of this project nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL PYDY AUTHORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------------------- -10.Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ---------------------------------------------------------------------------------------- -11.GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! -------------------------------------------------------------------------------------- -12.libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------ -13.gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -14. libc6-dev - -* Most of the GNU C library is under the following copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - 02110-1301 USA - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. - -* The utilities associated with GNU C library is under the following - copyright: - - Copyright (C) 1991-2015 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - - On Debian systems, the complete text of the GNU Library - General Public License can be found in `/usr/share/common-licenses/GPL-2'. - -* All code incorporated from 4.4 BSD is distributed under the following - license: - - Copyright (C) 1991 Regents of the University of California. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. [This condition was removed.] - 4. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - -* The DNS resolver code, taken from BIND 4.9.5, is copyrighted both by - UC Berkeley and by Digital Equipment Corporation. The DEC portions - are under the following license: - - Portions Copyright (C) 1993 by Digital Equipment Corporation. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies, and - that the name of Digital Equipment Corporation not be used in - advertising or publicity pertaining to distribution of the document or - software without specific, written prior permission. - - THE SOFTWARE IS PROVIDED ``AS IS'' AND DIGITAL EQUIPMENT CORP. - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL - DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -* The ISC portions are under the following license: - - Portions Copyright (c) 1996-1999 by Internet Software Consortium. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS - ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE - CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL - DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR - PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS - ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS - SOFTWARE. - -* The Sun RPC support (from rpcsrc-4.0) is covered by the following - license: - - Copyright (c) 2010, Oracle America, Inc. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - * Neither the name of the "Oracle America, Inc." nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following CMU license covers some of the support code for Mach, - derived from Mach 3.0: - - Mach Operating System - Copyright (C) 1991,1990,1989 Carnegie Mellon University - All Rights Reserved. - - Permission to use, copy, modify and distribute this software and its - documentation is hereby granted, provided that both the copyright - notice and this permission notice appear in all copies of the - software, derivative works or modified versions, and any portions - thereof, and that both notices appear in supporting documentation. - - CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS ``AS IS'' - CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR - ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - - Carnegie Mellon requests users of this software to return to - - Software Distribution Coordinator - School of Computer Science - Carnegie Mellon University - Pittsburgh PA 15213-3890 - - or Software.Distribution@CS.CMU.EDU any improvements or - extensions that they make and grant Carnegie Mellon the rights to - redistribute these changes. - -* The file if_ppp.h is under the following CMU license: - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY AND - CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER - IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The following license covers the files from Intel's "Highly Optimized - Mathematical Functions for Itanium" collection: - - Intel License Agreement - - Copyright (c) 2000, Intel Corporation - - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * The name of Intel Corporation may not be used to endorse or promote - products derived from this software without specific prior written - permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -* The files inet/getnameinfo.c and sysdeps/posix/getaddrinfo.c are copyright - (C) by Craig Metz and are distributed under the following license: - - /* The Inner Net License, Version 2.00 - - The author(s) grant permission for redistribution and use in source and - binary forms, with or without modification, of the software and documentation - provided that the following conditions are met: - - 0. If you receive a version of the software that is specifically labelled - as not being for redistribution (check the version message and/or README), - you are not permitted to redistribute that version of the software in any - way or form. - 1. All terms of the all other applicable copyrights and licenses must be - followed. - 2. Redistributions of source code must retain the authors' copyright - notice(s), this list of conditions, and the following disclaimer. - 3. Redistributions in binary form must reproduce the authors' copyright - notice(s), this list of conditions, and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 4. [The copyright holder has authorized the removal of this clause.] - 5. Neither the name(s) of the author(s) nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - If these license terms cause you a real problem, contact the author. */ - -* The file sunrpc/des_impl.c is copyright Eric Young: - - Copyright (C) 1992 Eric Young - Collected from libdes and modified for SECURE RPC by Martin Kuck 1994 - This file is distributed under the terms of the GNU Lesser General - Public License, version 2.1 or later - see the file COPYING.LIB for details. - If you did not receive a copy of the license with this program, please - see to obtain a copy. - -* The libidn code is copyright Simon Josefsson, with portions copyright - The Internet Society, Tom Tromey and Red Hat, Inc.: - - Copyright (C) 2002, 2003, 2004, 2011 Simon Josefsson - - This file is part of GNU Libidn. - - GNU Libidn is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - GNU Libidn is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with GNU Libidn; if not, see . - -* The following notice applies to portions of libidn/nfkc.c: - - This file contains functions from GLIB, including gutf8.c and - gunidecomp.c, all licensed under LGPL and copyright hold by: - - Copyright (C) 1999, 2000 Tom Tromey - Copyright 2000 Red Hat, Inc. - -* The following applies to portions of libidn/punycode.c and - libidn/punycode.h: - - This file is derived from RFC 3492bis written by Adam M. Costello. - - Disclaimer and license: Regarding this entire document or any - portion of it (including the pseudocode and C code), the author - makes no guarantees and is not responsible for any damage resulting - from its use. The author grants irrevocable permission to anyone - to use, modify, and distribute it in any way that does not diminish - the rights of anyone else to use, modify, and distribute it, - provided that redistributed derivative works do not contain - misleading author or version information. Derivative works need - not be licensed under similar terms. - - Copyright (C) The Internet Society (2003). All Rights Reserved. - - This document and translations of it may be copied and furnished to - others, and derivative works that comment on or otherwise explain it - or assist in its implementation may be prepared, copied, published - and distributed, in whole or in part, without restriction of any - kind, provided that the above copyright notice and this paragraph are - included on all such copies and derivative works. However, this - document itself may not be modified in any way, such as by removing - the copyright notice or references to the Internet Society or other - Internet organizations, except as needed for the purpose of - developing Internet standards in which case the procedures for - copyrights defined in the Internet Standards process must be - followed, or as required to translate it into languages other than - English. - - The limited permissions granted above are perpetual and will not be - revoked by the Internet Society or its successors or assigns. - - This document and the information contained herein is provided on an - "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING - TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING - BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION - HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF - MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - -* The file inet/rcmd.c is under a UCB copyright and the following: - - Copyright (C) 1998 WIDE Project. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. Neither the name of the project nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - * The file posix/runtests.c is copyright Tom Lord: - - Copyright 1995 by Tom Lord - - All Rights Reserved - - Permission to use, copy, modify, and distribute this software and its - documentation for any purpose and without fee is hereby granted, - provided that the above copyright notice appear in all copies and that - both that copyright notice and this permission notice appear in - supporting documentation, and that the name of the copyright holder not be - used in advertising or publicity pertaining to distribution of the - software without specific, written prior permission. - - Tom Lord DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, - INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO - EVENT SHALL TOM LORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR - CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF - USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - -* The posix/rxspencer tests are copyright Henry Spencer: - - Copyright 1992, 1993, 1994, 1997 Henry Spencer. All rights reserved. - This software is not subject to any license of the American Telephone - and Telegraph Company or of the Regents of the University of California. - - Permission is granted to anyone to use this software for any purpose on - any computer system, and to alter it and redistribute it, subject - to the following restrictions: - - 1. The author is not responsible for the consequences of use of this - software, no matter how awful, even if they arise from flaws in it. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. Since few users ever read sources, - credits must appear in the documentation. - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. Since few users - ever read sources, credits must appear in the documentation. - - 4. This notice may not be removed or altered. - -* The file posix/PCRE.tests is copyright University of Cambridge: - - Copyright (c) 1997-2003 University of Cambridge - - Permission is granted to anyone to use this software for any purpose on any - computer system, and to redistribute it freely, subject to the following - restrictions: - - 1. This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - 2. The origin of this software must not be misrepresented, either by - explicit claim or by omission. In practice, this means that if you use - PCRE in software that you distribute to others, commercially or - otherwise, you must put a sentence like this - - Regular expression support is provided by the PCRE library package, - which is open source software, written by Philip Hazel, and copyright - by the University of Cambridge, England. - - somewhere reasonably visible in your documentation and in any relevant - files or online help data or similar. A reference to the ftp site for - the source, that is, to - - ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ - - should also be given in the documentation. However, this condition is not - intended to apply to whole chains of software. If package A includes PCRE, - it must acknowledge it, but if package B is software that includes package - A, the condition is not imposed on package B (unless it uses PCRE - independently). - - 3. Altered versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 4. If PCRE is embedded in any software that is released under the GNU - General Purpose Licence (GPL), or Lesser General Purpose Licence (LGPL), - then the terms of that licence shall supersede any condition above with - which it is incompatible. - -* Files from Sun fdlibm are copyright Sun Microsystems, Inc.: - - Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. - - Developed at SunPro, a Sun Microsystems, Inc. business. - Permission to use, copy, modify, and distribute this - software is freely granted, provided that this notice - is preserved. - -* Part of stdio-common/tst-printf.c is copyright C E Chew: - - (C) Copyright C E Chew - - Feel free to copy, use and distribute this software provided: - - 1. you do not pretend that you wrote it - 2. you leave this copyright notice intact. - -* Various long double libm functions are copyright Stephen L. Moshier: - - Copyright 2001 by Stephen L. Moshier - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, see - . */ --------------------------------------------------------------------------- -14.pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - py-cpuinfo - Copyright (c) 2014-2021 Matthew Brennan Jones - - tqdm - Copyright (c) 2013 noamraph - - nibabel - Copyright (c) 2009-2019 Matthew Brett - Copyright (c) 2010-2013 Stephan Gerhard - Copyright (c) 2006-2014 Michael Hanke - Copyright (c) 2011 Christian Haselgrove - Copyright (c) 2010-2011 Jarrod Millman - Copyright (c) 2011-2019 Yaroslav Halchenko - Copyright (c) 2015-2019 Chris Markiewicz - - editdistance - Copyright (c) 2019 Hiroyuki Tanaka - - torch - Copyright (c) 2013 Torchlight Software - - future - Copyright (c) 2013-2019 Python Charmers Pty Ltd, Australia - - motmetrics - Copyright (c) 2017-2020 Christoph Heindl - Copyright (c) 2018 Toka - Copyright (c) 2019-2020 Jack Valmadre - - tensorboardX - Copyright (c) 2017 Tzu-Wei Huang - - setuptools - Copyright Jason R. Coombs - - addict - Copyright (c) 2014 Mats Julian Olsen - - jstyleson - Copyright (c) 2016 linjackson - - rawpy - Copyright (c) 2014 Maik Riechert - - opencv-python - Copyright (c) Olli-Pekka Heinisuo - - PyYaml - Copyright (c) 2017-2021 Ingy döt Net - Copyright (c) 2006-2016 Kirill Simonov - - urllib3 - Copyright (c) 2008-2020 Andrey Petrov and contributors - - - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -© 2021 GitHub, Inc. --------------------------------------------------------------------------- -16.pydicom - -License file for pydicom, a pure-python DICOM library - -Copyright (c) 2008-2020 Darcy Mason and pydicom contributors - -Except for portions outlined below, pydicom is released under an MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Portions of pydicom (private dictionary file(s)) were generated from the -private dictionary of the GDCM library, released under the following license: - - Program: GDCM (Grassroots DICOM). A DICOM library - Module: http://gdcm.sourceforge.net/Copyright.html - -Copyright (c) 2006-2010 Mathieu Malaterre -Copyright (c) 1993-2005 CREATIS -(CREATIS = Centre de Recherche et d'Applications en Traitement de l'Image) -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither name of Mathieu Malaterre, or CREATIS, nor the names of any - contributors (CNRS, INSERM, UCB, Universite Lyon I), may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -17.libtinfo5 - -This is the Debian prepackaged version of the ncurses -library and terminfo utilities. ncurses/terminfo was originally written -by Pavel Curtis and Zeyd M. Ben-Halim , and is -currently held by the Free Software Foundation. - -This package was put together by Vaidhyanathan G Mayilrangam - and Joel Klecker , using sources -obtained from ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.0.tar.gz. -Current versions of the ncurses sources are found at -ftp://invisible-island.net/ncurses/. - -It is based somewhat on work done by Bruce Perens , -David Engel . Michael Alan Dorman -, Richard Braakman , James Troup -, J.H.M. Dassen (Ray) -, and Galen Hazelwood -over various years. - - -Copyright (c) 1998-2018 Free Software Foundation, Inc. -Copyright © 2001 by Pradeep Padala - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, distribute with modifications, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. - - -Copyright (C) 1994 X Consortium - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not -be used in advertising or otherwise to promote the sale, use or other deal- -ings in this Software without prior written authorization from the X Consor- -tium. - - -Copyright (c) 1980, 1991, 1992, 1993 - The Regents of the University of California. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. Neither the name of the University nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. - - -Copyright 1996-2018 by Thomas E. Dickey - - All Rights Reserved - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name(s) of the above copyright -holders shall not be used in advertising or otherwise to promote the -sale, use or other dealings in this Software without prior written -authorization. ---------------------------------------------------------------------------- -18. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ----------------------------------------------------------------------------- -19.pillow - -The Python Imaging Library (PIL) is - - Copyright © 1997-2011 by Secret Labs AB - Copyright © 1995-2011 by Fredrik Lundh - -Pillow is the friendly PIL fork. It is - - Copyright © 2010-2021 by Alex Clark and contributors - -Like PIL, Pillow is licensed under the open source HPND License: - -By obtaining, using, and/or copying this software and/or its associated -documentation, you agree that you have read, understood, and will comply -with the following terms and conditions: - -Permission to use, copy, modify, and distribute this software and its -associated documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appears in all copies, and that -both that copyright notice and this permission notice appear in supporting -documentation, and that the name of Secret Labs AB or the author not be -used in advertising or publicity pertaining to distribution of the software -without specific, written prior permission. - -SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS -SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. -IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, -INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------------- -20.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------- -21.defusedxml - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python -alone or in any derivative version, provided, however, that PSF's -License Agreement and PSF's notice of copyright, i.e., "Copyright (c) -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative -version prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. ---------------------------------------------------------------------- -22.lmdb - -The OpenLDAP Public License - Version 2.8, 17 August 2003 - -Redistribution and use of this software and associated documentation -("Software"), with or without modification, are permitted provided -that the following conditions are met: - -1. Redistributions in source form must retain copyright statements - and notices, - -2. Redistributions in binary form must reproduce applicable copyright - statements and notices, this list of conditions, and the following - disclaimer in the documentation and/or other materials provided - with the distribution, and - -3. Redistributions must contain a verbatim copy of this document. - -The OpenLDAP Foundation may revise this license from time to time. -Each revision is distinguished by a version number. You may use -this Software under terms of this license revision or under the -terms of any subsequent revision of the license. - -THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS -CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT -SHALL THE OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) -OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -The names of the authors and copyright holders must not be used in -advertising or otherwise to promote the sale, use or other dealing -in this Software without specific, written prior permission. Title -to copyright in this Software shall at all times remain with copyright -holders. - -OpenLDAP is a registered trademark of the OpenLDAP Foundation. - -Copyright 1999-2003 The OpenLDAP Foundation, Redwood City, -California, USA. All Rights Reserved. Permission to copy and -distribute verbatim copies of this document is granted. ------------------------------------------------------------------------- -23. yamlloader - Copyright 2017 Jonas Eschle - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - - -Parts of the code, mostly from ordereddict.py including within others -the functions construct_yaml_map, construct_mapping are licensed under the -following license. - -Copyright 2017 François Ménabé - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------------- - - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/ubuntu22/third-party-programs-docker-runtime.txt b/dockerfiles/ubuntu22/third-party-programs-docker-runtime.txt deleted file mode 100644 index 4d8721d3..00000000 --- a/dockerfiles/ubuntu22/third-party-programs-docker-runtime.txt +++ /dev/null @@ -1,1243 +0,0 @@ -OpenVINO runtime Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. --------------------------------------------------------------------------------------------- -1. boost - -Boost Software License - Version 1.0 - -August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------------------------- -2. forge ocl-icd-libopencl1 - -License: BSD-2-Clause - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - . - THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - --------------------------------------------------------------------------------------------------- -3. Curl - -COPYRIGHT AND PERMISSION NOTICE - -Copyright (c) 1996 - 2021, Daniel Stenberg, , and many -contributors, see the THANKS file. - -All rights reserved. - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of a copyright holder shall not -be used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization of the copyright holder. ------------------------------------------------------------------------------------------------------- -4. GTK - - udev (systemd) - - - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! ---------------------------------------------------------------------------------------------- - -5. libusb - -Copyright: - Copyright (c) 2000-2003 Johannes Erdfelt - Copyright (c) 2003 Brad Hards - Copyright (c) 2002-2005 Nathan Hjelm - -License: - - * libusb is covered by the LGPL: - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, - MA 02110-1301 USA. - - On Debian systems, the complete text of the LGPL license can be found - in the /usr/share/common-licenses/LGPL-2 file. - - * Alternatively, the files usb.h.in and/or usb.h may be licensed under - the BSD license: - - Copyright (c) 2000-2003 Johannes Erdfelt - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------- -6. gcc - - g++ - -gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. - -These scripts are free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The c89 and c99 man pages are taken from netbsd: - -Copyright (c) 1999 The NetBSD Foundation, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. All advertising materials mentioning features or use of this software - must display the following acknowledgement: - This product includes software developed by the NetBSD - Foundation, Inc. and its contributors. -4. Neither the name of The NetBSD Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. ----------------------------------------------------------------------------------- -7. pip - Copyright (c) 2008-2021 The pip developers - - setuptools - Copyright Jason R. Coombs - - Intel compute-runtime - Copyright (c) 2018 Intel Corporation - - json-c - Copyright (c) 2009-2012 Eric Haszlakiewicz - Copyright (c) 2004, 2005 Metaparadigm Pte Ltd - - libXxf86vm - - libgl1 - - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------ -8. numpy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - - - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NetworkX Developers nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------- -9. tzdata - -This is the Debian prepackaged version of the Time Zone and Daylight -Saving Time Data. - -It was downloaded from https://www.iana.org/time-zones - -Upstream Author: The Internet Assigned Numbers Authority (IANA) -Commentary should be addressed to tz@iana.org - -Copyright: This database is in the public domain. - -Unless specified below, all files in the tz code and data (including -this LICENSE file) are in the public domain. - -If the files date.c, newstrftime.3, and strftime.c are present, they -contain material derived from BSD and use the BSD 3-clause license. ------------------------------------------------------------------------------------- -10.CPython - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. ----------------------------------------------------------------------- -10. cmake - -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ------------------------------------------------------------------------------------- - -Other names and brands may be claimed as the property of others. diff --git a/dockerfiles/windows20h2/openvino_c_dev_2022.2.0.dockerfile b/dockerfiles/windows20h2/openvino_c_dev_2022.2.0.dockerfile deleted file mode 100644 index 961df177..00000000 --- a/dockerfiles/windows20h2/openvino_c_dev_2022.2.0.dockerfile +++ /dev/null @@ -1,178 +0,0 @@ -# escape=` -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM mcr.microsoft.com/windows:20H2 AS base - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force - - -RUN C:\cpython-3.8.12\PCbuild\get_externals.bat --python c:\python-38-10\python.exe && ` - rmdir /s /q C:\cpython-3.8.12\externals\libffi && mkdir C:\cpython-3.8.12\externals\libffi && ` - xcopy /s /y c:\cpython-bin-deps-1cf06233e3ceb49dc0a73c55e04b1174b436b632\* c:\cpython-3.8.12\externals\libffi\ && ` - break > C:\cpython-3.8.12\PCbuild\get_externals.bat - -RUN C:\cpython-3.8.12\PCbuild\build.bat -p x64 - - -# ----------------- -FROM mcr.microsoft.com/windows:20H2 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Windows OS 20H2" -LABEL vendor="Intel Corporation" - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned - -# setup CMake - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.14.7/cmake-3.14.7-win64-x64.msi -OutFile %TMP%\\cmake-3.14.7-win64-x64.msi ; ` - Start-Process %TMP%\\cmake-3.14.7-win64-x64.msi -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.14.7-win64-x64.msi -Force - -RUN SETX /M PATH "C:\Program Files\CMake\Bin;%PATH%" - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - -# setup Python -ARG PYTHON_VER=python3.8 - -COPY --from=base C:\cpython-3.8.12\PCbuild\amd64 c:\Python38 -COPY --from=base c:\cpython-3.8.12\Lib c:\Python38\Lib - -RUN setx /M path "%path%;C:\Python38;C:\Python38\Scripts" -# hadolint ignore=DL3013 -RUN python -m ensurepip --upgrade --default-pip && ` - python -m pip install --no-cache-dir --upgrade pip - -# download package from external URL -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command ` - Expand-Archive -Path "./*.zip" -DestinationPath . -Force ; ` - $OV_FOLDER=(Get-ChildItem -Filter "*openvino*" -Directory).FullName ; ` - New-Item -Path C:\intel\ -ItemType Directory -Name openvino_%build_id% ; ` - Move-Item -Path $OV_FOLDER\* -Destination %INTEL_OPENVINO_DIR% ; ` - Remove-Item @("""./*.zip""",$OV_FOLDER) -Force -Recurse - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - }` - if ( -not (Test-Path -Path C:\intel\openvino_2022) ) ` - {` - New-Item -Path C:\intel\openvino_2022 -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } - -# for CPU - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.2.0 -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% && ` - python -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --use-deprecated=legacy-resolver ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% && ` - python -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) - - -# install opencv -WORKDIR ${INTEL_OPENVINO_DIR} -RUN cmd /S /C curl -kL --output opencv-4.6.0-vc14_vc15.exe ` - https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe && ` - powershell.exe -Command Start-Process C:\intel\openvino\opencv-4.6.0-vc14_vc15.exe ` - -ArgumentList '-o"C:\\\\intel\\\\openvino\\\\extras\\\\" -y /quiet /norestart' -Wait && ` - del opencv-4.6.0-vc14_vc15.exe -ENV OpenCV_DIR C:\intel\openvino\extras\opencv\build - -RUN rmdir /s /q %INTEL_OPENVINO_DIR%\.distribution & mkdir %INTEL_OPENVINO_DIR%\.distribution && ` - copy /b NUL %INTEL_OPENVINO_DIR%\.distribution\docker - -WORKDIR ${INTEL_OPENVINO_DIR} - -# Post-installation cleanup -RUN powershell Remove-Item -Force -Recurse "%TEMP%\*" && ` - powershell Remove-Item -Force -Recurse "%TEMP_DIR%" && ` - rmdir /S /Q "%ProgramData%\Package Cache" - -USER ContainerUser - -CMD ["cmd.exe"] - -# Setup custom layers below diff --git a/dockerfiles/windows20h2/openvino_c_runtime_2022.2.0.dockerfile b/dockerfiles/windows20h2/openvino_c_runtime_2022.2.0.dockerfile deleted file mode 100644 index 3a67ef71..00000000 --- a/dockerfiles/windows20h2/openvino_c_runtime_2022.2.0.dockerfile +++ /dev/null @@ -1,157 +0,0 @@ -# escape=` -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM mcr.microsoft.com/windows:20H2 AS base - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force - - -RUN C:\cpython-3.8.12\PCbuild\get_externals.bat --python c:\python-38-10\python.exe && ` - rmdir /s /q C:\cpython-3.8.12\externals\libffi && mkdir C:\cpython-3.8.12\externals\libffi && ` - xcopy /s /y c:\cpython-bin-deps-1cf06233e3ceb49dc0a73c55e04b1174b436b632\* c:\cpython-3.8.12\externals\libffi\ && ` - break > C:\cpython-3.8.12\PCbuild\get_externals.bat - -RUN C:\cpython-3.8.12\PCbuild\build.bat -p x64 - - -# ----------------- -FROM mcr.microsoft.com/windows:20H2 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Windows OS 20H2" -LABEL vendor="Intel Corporation" - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - -# setup Python -ARG PYTHON_VER=python3.8 - -COPY --from=base C:\cpython-3.8.12\PCbuild\amd64 c:\Python38 -COPY --from=base c:\cpython-3.8.12\Lib c:\Python38\Lib - -RUN setx /M path "%path%;C:\Python38;C:\Python38\Scripts" -# hadolint ignore=DL3013 -RUN python -m ensurepip --upgrade --default-pip && ` - python -m pip install --no-cache-dir --upgrade pip - -# download package from external URL -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command ` - Expand-Archive -Path "./*.zip" -DestinationPath . -Force ; ` - $OV_FOLDER=(Get-ChildItem -Filter "*openvino*" -Directory).FullName ; ` - New-Item -Path C:\intel\ -ItemType Directory -Name openvino_%build_id% ; ` - Move-Item -Path $OV_FOLDER\* -Destination %INTEL_OPENVINO_DIR% ; ` - Remove-Item @("""./*.zip""",$OV_FOLDER) -Force -Recurse - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - }` - if ( -not (Test-Path -Path C:\intel\openvino_2022) ) ` - {` - New-Item -Path C:\intel\openvino_2022 -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } - -# for CPU - -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.2.0 -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles\windows20h2\third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - - -# install opencv -WORKDIR ${INTEL_OPENVINO_DIR} -RUN cmd /S /C curl -kL --output opencv-4.6.0-vc14_vc15.exe ` - https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe && ` - powershell.exe -Command Start-Process C:\intel\openvino\opencv-4.6.0-vc14_vc15.exe ` - -ArgumentList '-o"C:\\\\intel\\\\openvino\\\\extras\\\\" -y /quiet /norestart' -Wait && ` - del opencv-4.6.0-vc14_vc15.exe -ENV OpenCV_DIR C:\intel\openvino\extras\opencv\build - -RUN rmdir /s /q %INTEL_OPENVINO_DIR%\.distribution & mkdir %INTEL_OPENVINO_DIR%\.distribution && ` - copy /b NUL %INTEL_OPENVINO_DIR%\.distribution\docker - -WORKDIR ${INTEL_OPENVINO_DIR} - -# Post-installation cleanup -RUN powershell Remove-Item -Force -Recurse "%TEMP%\*" && ` - powershell Remove-Item -Force -Recurse "%TEMP_DIR%" && ` - rmdir /S /Q "%ProgramData%\Package Cache" - -USER ContainerUser - -CMD ["cmd.exe"] - -# Setup custom layers below diff --git a/dockerfiles/windows20h2/third-party-programs-docker-runtime.txt b/dockerfiles/windows20h2/third-party-programs-docker-runtime.txt deleted file mode 100644 index 92baa125..00000000 --- a/dockerfiles/windows20h2/third-party-programs-docker-runtime.txt +++ /dev/null @@ -1,502 +0,0 @@ -OpenVINO Windows* runtime Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. ----------------------------------------------------------------------------------------------------- -1. NumPy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NumPy Developers nor the names of any - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------------------- -2. pip - Copyright (c) 2008-2021 The pip developers - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------------------------------------------------------------------------------------------------- -3. Python cpython - - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. --------------------------------------------------------------------------------------------------------- -4. Visual C++ Redistributable for Visual Studio - -MICROSOFT SOFTWARE LICENSE TERMS -MICROSOFT VISUAL STUDIO TEAM SYSTEM 2008 TEAM SUITE AND TRIAL EDITION -These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft -updates, -supplements, -Internet-based services, and -support services -for this software, unless other terms accompany those items. If so, those terms apply. -BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. INSTEAD, RETURN IT TO THE RETAILER FOR A REFUND OR CREDIT. If you cannot obtain a refund there, contact Microsoft or the Microsoft affiliate serving your country for information about Microsoft's refund policies. See www.microsoft.com/worldwide. In the United States and Canada, call (800) MICROSOFT or see www.microsoft.com/info/nareturns.htm. - -AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. - -IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW FOR EACH LICENSE YOU ACQUIRE. - -OVERVIEW. -Software. The software includes development tools, software programs and documentation. -License Model. The software is licensed on a per user basis. -INSTALLATION AND USE RIGHTS. -General. One user may install and use copies of the software to design, develop, test and demonstrate your programs. Testing does not include staging on a server in a production environment, such as loading content prior to production use. -Included Microsoft Programs. These license terms apply to all Microsoft programs included with the software. If the license terms with any of those programs give you other rights that do not expressly conflict with these license terms, you also have those rights. -Third Party Programs. The software contains third party programs. The license terms with those programs apply to your use of them. -ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. -User Testing. Your end users may access the software to perform acceptance tests on your programs. -Windows Server Terminal Services. Up to 200 anonymous users at a time may use the Terminal Services feature of the Windows Server software to access Internet demonstrations of your programs. Your demonstration must not use production data. -Utilities. The software contains certain components that are identified in the Utilities List located at http://go.microsoft.com/fwlink/?LinkId=100284. Depending on the specific edition of the software, the number of Utility files you receive with the software may not be equal to the number of Utilities listed in the Utilities List. You may copy and install the Utilities you receive with the software on to a total of five (5) machines at any one time. You may use these Utilities only to debug your programs you've developed with the software. You must delete all the Utilities installed onto a machine within the earlier of (i) when you have finished debugging your program; or (ii) thirty (30) days after installation of the Utilities onto that machine. -Distributable Code. The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below. -Right to Use and Distribute. The code and text files listed below are "Distributable Code." -REDIST.TXT Files. You may copy and distribute the object code form of code listed in REDIST.TXT files, plus any files listed on the REDIST list located at: http://go.microsoft.com/fwlink/?LinkID=100327&clcid=0x409. -Sample Code. You may modify, copy, and distribute the source and object code form of code marked as "sample." -Microsoft Merge Modules. You may copy and distribute the unmodified output of Microsoft Merge Modules. -MFCs, ATLs and CRTs. You may modify the source code form of Microsoft Foundation Classes (MFCs), Active Template Libraries (ATLs), and C runtimes (CRTs) to design, develop and test your programs, and copy and distribute the object code form of your modified files under a new name. -Image Library. You may copy and distribute images and animations in the Image Library as described in the software documentation. You may also modify that content. If you modify the content, it must be for use that is consistent with the permitted use of the unmodified content. -Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. -Distribution Requirements. For any Distributable Code you distribute, you must -add significant primary functionality to it in your programs; -for any Distributable Code having a filename extension of .lib, distribute only the results of running such Distributable Code through a linker with your program; -distribute Distributable Code included in a setup program only as part of that setup program without modification; -require distributors and external end users to agree to terms that protect it at least as much as this agreement; -display your valid copyright notice on your programs; and -indemnify, defend, and hold harmless Microsoft from any claims, including attorneys' fees, related to the distribution or use of your programs. -Distribution Restrictions. You may not -alter any copyright, trademark or patent notice in the Distributable Code; -use Microsoft's trademarks in your programs' names or in a way that suggests your programs come from or are endorsed by Microsoft; -distribute Distributable Code to run on a platform other than Microsoft operating systems, run-time technologies or application platforms; -include Distributable Code in malicious, deceptive or unlawful programs; or -modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that -the code be disclosed or distributed in source code form; or -others have the right to modify it. -INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. It may change or cancel them at any time. -Consent for Internet-Based Services. The software features described below connect to Microsoft or service provider computer systems over the Internet. In some cases, you will not receive a separate notice when they connect. BY USING THESE FEATURES, YOU CONSENT TO THE TRANSMISSION OF THIS INFORMATION. Microsoft does not use the information to identify or contact you. -Computer Information. The following features use Internet protocols, which send to the appropriate systems computer information, such as your Internet protocol address, the type of operating system, browser and name and version of the software you are using, and the language code of the device where you installed the software. Microsoft uses this information to make the Internet-based services available to you. - -Windows Update Feature. You may connect new hardware to the device where you installed the software. Your device may not have the drivers needed to communicate with that hardware. If so, the update feature of the software can obtain the correct driver from Microsoft and install it on your device. You can switch off this update feature. -Web Content Features. Features in the software can retrieve related content from Microsoft and provide it to you. To provide the content, these features send to Microsoft the type of operating system, name and version of the software you are using, type of browser and language code of the device where you installed the software. Examples of these features are clip art, templates, online training, online assistance and Appshelp. You may choose not to use these web content features. -Real Simple Syndication ("RSS") Feed. This software start page contains updated content that is supplied by means of an RSS feed online from Microsoft. -Misuse of Internet-based Services. You may not use these services in any way that could harm them or impair anyone else's use of them. You may not use the services to try to gain unauthorized access to any service, data, account or network by any means. -TRIAL EDITION SOFTWARE TERMS. The following terms apply to the Trial Edition software even if there are terms to the contrary in other parts of this agreement: -TIME-SENSITIVE SOFTWARE. If the version of the software is a Trial Edition, the software will stop running ninety days after you install it. You will receive notice before it stops running. You may not be able to access data used with the software when it stops running. -DISCLAIMER OF WARRANTY. THE TRIAL EDITION SOFTWARE IS LICENSED "AS-IS." YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. -LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. FOR THE TRIAL EDITION SOFTWARE, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. -This limitation applies to - -anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and -claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. -It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. - -PRODUCT KEYS. The software requires a key to install or access it. You are responsible for the use of keys assigned to you. You should not share the keys with third parties. -SQL SERVER BENCHMARK TESTING. You must obtain Microsoft's prior written approval to disclose to a third party the results of any benchmark test of the SQL Server software that accompanies this software. -.NET FRAMEWORK SOFTWARE. The software contains Microsoft .NET Framework software. This software is part of Windows. The license terms for Windows apply to your use of the .NET Framework software. -MICROSOFT .NET FRAMEWORK BENCHMARK TESTING. The software includes the .NET Framework component of the Windows operating systems (".NET Component"). You may conduct internal benchmark testing of the .NET Component. You may disclose the results of any benchmark test of the .NET Component, provided that you comply with the following terms: -you must disclose all the information necessary for replication of the tests, including complete and accurate details of your benchmark testing methodology, the test scripts/cases, tuning parameters applied, hardware and software platforms tested, the name and version number of any third party testing tool used to conduct the testing, and complete source code for the benchmark suite/harness that is developed by or for you and used to test both the .NET Component and the competing implementation(s); -you must disclose the date (s) that you conducted the benchmark tests, along with specific version information for all Microsoft software products tested, including the .NET Component; -your benchmark testing was performed using all performance tuning and best practice guidance set forth in the product documentation and/or on Microsoft's support web sites, and uses the latest updates, patches and fixes available for the .NET Component and the relevant Microsoft operating system; -it shall be sufficient if you make the disclosures provided for above at a publicly available location such as a website, so long as every public disclosure of the results of your benchmark test expressly identifies the public site containing all required disclosures; and -nothing in this provision shall be deemed to waive any other right that you may have to conduct benchmark testing. -The foregoing obligations shall not apply to your disclosure of the results of any customized benchmark test of the .NET Component, whereby such disclosure is made under confidentiality in conjunction with a bid request by a prospective customer, such customer's application(s) are specifically tested and the results are only disclosed to such specific customer. Notwithstanding any other agreement you may have with Microsoft, if you disclose such benchmark test results, Microsoft shall have the right to disclose the results of benchmark tests it conducts of your products that compete with the .NET Component, provided it complies with the same conditions above. - -SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. For more information, see www.microsoft.com/licensing/userights. You may not -work around any technical limitations in the software; -reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; -make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; -publish the software for others to copy; -rent, lease or lend the software; or -use the software for commercial software hosting services. -WINDOWS MOBILE COMPONENTS. -You may only use the Windows Mobile components located in the "\Program Files\Windows Mobile 5.0 SDK R2\" directory to create programs that run on Windows Mobile 5.0 software for Pocket PC or Windows Mobile 5.0 software for the Smartphone. -Program Application and Driver Limitations. You may not use or include any of the Windows Mobile components located in the "\Program Files\Windows Mobile 5.0 SDK R2\" directory, nor any components thereof, in the development of any program application, device or system in which a malfunction would result in a foreseeable risk of personal injury, death or severe physical or environmental damage. -BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. -DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. -NOT FOR RESALE SOFTWARE. You may not sell software marked as "NFR" or "Not for Resale." -ACADEMIC EDITION SOFTWARE. You must be a "Qualified Educational User" to use software marked as "Academic Edition" or "AE." If you do not know whether you are a Qualified Educational User, visit www.microsoft.com/education or contact the Microsoft affiliate serving your country. -UPGRADE. If this software is marked as an upgrade version, you may use it only if you have a license to use the software eligible for upgrade. If you upgrade, this software takes the place of the earlier version, and this agreement takes the place of the agreement for that earlier version. You may use the earlier version only as permitted in the Downgrade clause below. -DOWNGRADE. You may install and use this version and an earlier version of the software at the same time. This agreement applies to your use of the earlier version. If the earlier version includes different components, any terms for those components in the agreement that comes with the earlier version apply to your use of them. Microsoft is not obligated to supply earlier versions to you. -TRANSFER TO A THIRD PARTY. The first user of the software may transfer it, and this agreement, directly to a third party. Before the transfer, that party must agree that this agreement applies to the transfer and use of the software. The first user must uninstall the software before transferring it separately from the device. The first user may not retain any copies. -EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. -SUPPORT SERVICES. Microsoft provides support services for the software as described at www.support.microsoft.com/common/international.aspx. -ENTIRE AGREEMENT. This agreement (including the warranty below), and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. -APPLICABLE LAW. -United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. -Outside the United States. If you acquired the software in any other country, the laws of that country apply. -LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your state or country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your state or country if the laws of your state or country do not permit it to do so. -LIMITATION ON AND EXCLUSION OF DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO THE AMOUNT YOU PAID FOR THE SOFTWARE. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. -This limitation applies to - -anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and -claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. -It also applies even if - -repair, replacement or a refund for the software does not fully compensate you for any losses; or -Microsoft knew or should have known about the possibility of the damages. -Some states do not allow the exclusion or limitation of incidental or consequential damages, so the above limitation or exclusion may not apply to you. They also may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. - -LIMITED WARRANTY - -LIMITED WARRANTY. If you follow the instructions, the software will perform substantially as described in the Microsoft materials that you receive in or with the software. -TERM OF WARRANTY; WARRANTY RECIPIENT; LENGTH OF ANY IMPLIED WARRANTIES. THE LIMITED WARRANTY COVERS THE SOFTWARE FOR ONE YEAR AFTER ACQUIRED BY THE FIRST USER. IF YOU RECEIVE SUPPLEMENTS, UPDATES, OR REPLACEMENT SOFTWARE DURING THAT YEAR, THEY WILL BE COVERED FOR THE REMAINDER OF THE WARRANTY OR 30 DAYS, WHICHEVER IS LONGER. If the first user transfers the software, the remainder of the warranty will apply to the recipient. TO THE EXTENT PERMITTED BY LAW, ANY IMPLIED WARRANTIES, GUARANTEES OR CONDITIONS LAST ONLY DURING THE TERM OF THE LIMITED WARRANTY. Some states do not allow limitations on how long an implied warranty lasts, so these limitations may not apply to you. They also might not apply to you because some countries may not allow limitations on how long an implied warranty, guarantee or condition lasts. -EXCLUSIONS FROM WARRANTY. This warranty does not cover problems caused by your acts (or failures to act), the acts of others, or events beyond Microsoft's reasonable control. -REMEDY FOR BREACH OF WARRANTY. MICROSOFT WILL REPAIR OR REPLACE THE SOFTWARE AT NO CHARGE. IF MICROSOFT CANNOT REPAIR OR REPLACE IT, MICROSOFT WILL REFUND THE AMOUNT SHOWN ON YOUR RECEIPT FOR THE SOFTWARE. IT WILL ALSO REPAIR OR REPLACE SUPPLEMENTS, UPDATES AND REPLACEMENT SOFTWARE AT NO CHARGE. IF MICROSOFT CANNOT REPAIR OR REPLACE THEM, IT WILL REFUND THE AMOUNT YOU PAID FOR THEM, IF ANY. YOU MUST UNINSTALL THE SOFTWARE AND RETURN ANY MEDIA AND OTHER ASSOCIATED MATERIALS TO MICROSOFT WITH PROOF OF PURCHASE TO OBTAIN A REFUND. THESE ARE YOUR ONLY REMEDIES FOR BREACH OF THE LIMITED WARRANTY. -CONSUMER RIGHTS NOT AFFECTED. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS, WHICH THIS AGREEMENT CANNOT CHANGE. -WARRANTY PROCEDURES. You need proof of purchase for warranty service. -United States and Canada. For warranty service or information about how to obtain a refund for software acquired in the United States and Canada, contact Microsoft at -(800) MICROSOFT; -Microsoft Customer Service and Support, One Microsoft Way, Redmond, WA 98052-6399; or -visit www.microsoft.com/info/nareturns.htm. -Europe, Middle East and Africa. If you acquired the software in Europe, the Middle East or Africa, Microsoft Ireland Operations Limited makes this limited warranty. To make a claim under this warranty, you should contact either -Microsoft Ireland Operations Limited, Customer Care Centre, Atrium Building Block B, Carmanhall Road, Sandyford Industrial Estate, Dublin 18, Ireland; or -the Microsoft affiliate serving your country (see www.microsoft.com/worldwide). -Outside United States, Canada, Europe, Middle East and Africa. If you acquired the software outside the United States, Canada, Europe, the Middle East and Africa, contact the Microsoft affiliate serving your country (see www.microsoft.com/worldwide). -NO OTHER WARRANTIES. THE LIMITED WARRANTY IS THE ONLY DIRECT WARRANTY FROM MICROSOFT. MICROSOFT GIVES NO OTHER EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. WHERE ALLOWED BY YOUR LOCAL LAWS, MICROSOFT EXCLUDES IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. If your local laws give you any implied warranties, guarantees or conditions, despite this exclusion, your remedies are described in the Remedy for Breach of Warranty clause above, to the extent permitted by your local laws. -LIMITATION ON AND EXCLUSION OF DAMAGES FOR BREACH OF WARRANTY. THE LIMITATION ON AND EXCLUSION OF DAMAGES CLAUSE ABOVE APPLIES TO BREACHES OF THIS LIMITED WARRANTY. -THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS, AND YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM STATE TO STATE. YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM COUNTRY TO COUNTRY. ------------------------------------------------------------------------------------------------------------------------------ -5. Windows Server Core base OS LTSC 2019 - -MICROSOFT SOFTWARE SUPPLEMENTAL LICENSE FOR WINDOWS CONTAINER BASE IMAGE -This Supplemental License is for the Windows Container Base Image (“Container Image”). If you comply with the terms of this Supplemental License you may use the Container Image as described below. -CONTAINER OS IMAGE -The Container Image may only be used with a validly licensed copy of: -Windows Server Standard or Windows Server Datacenter software (collectively “Server Host Software”), or Microsoft Windows Operating System (version 10) software (“Client Host Software”), or Windows 10 IoT Enterprise and Windows 10 IoT Core (collectively “IoT Host Software”). The Server Host Software, Client Host Software, and IoT Host Software are collectively referred to as the “Host Software” and a license for Host Software is a "Host License". -You may not use the Container Image if you do not have a corresponding version and edition of the Host License. Certain restrictions and additional terms may apply, which are described herein. If licensing terms herein conflict with Host License, then this Supplemental License shall govern with respect to the Container Image. BY ACCEPTING THIS SUPPLEMENTAL LICENSE OR USING THE CONTAINER IMAGE, YOU AGREE TO ALL OF THESE TERMS. IF YOU DO NOT ACCEPT AND COMPLY WITH THESE TERMS, YOU MAY NOT USE THE CONTAINER IMAGE. -DEFINITIONS -Windows Server Container (without Hyper-V isolation) is a feature of Microsoft Windows Server software. -Windows Server Container with Hyper-V isolation. Section 2(k) of the Microsoft Windows Server license terms is hereby deleted in its entirety and replaced with the revised terms as shown in “UPDATED” below. -UPDATED: Windows Server Container with Hyper-V isolation (formerly known as Hyper-V Container) is a container technology in Windows Server which utilizes a virtual operating system environment to host one or more Windows Server Container(s). Each Hyper-V isolation instance used to host one or more Windows Server Container(s) is considered one virtual operating system environment. -LICENSE TERMS -Host License. The Host License terms apply to your use of the Container Image and any Windows container(s) created with the Container Image which are distinct and separate from a virtual machine. -Use Rights. The Container Image may be used to create an isolated virtualized Windows operating system environment that includes at least one application that adds primary and significant functionality. You may use the Container Image only to create, build, and run Windows container(s) on Host Software. Updates to the Host Software may not update the Container Image so you may re-create any Windows containers based on an updated Container Image. -Restrictions. You may not remove this Supplemental License document file from the Container Image. You may not enable remote access to the application(s) you run within your container to avoid applicable license fees. You may not reverse engineer, decompile, or disassemble the Container Image, or attempt to do so, except and only to the extent required by third party licensing terms governing the use of certain open-source components that may be included with the software. Additional restrictions in the Host License may apply. -ADDITIONAL TERMS -Client Host Software. When running a Container Image on Client Host Software you may run any number of the Container Image instantiated as Windows containers for test or development purposes only. You may not use these Windows containers in a production environment on Client Host Software. -IoT Host Software. When running a Container Image on IoT Host Software you may run any number of the Container Image instantiated as Windows containers for test or development purposes only. You may only use the Container Image in a production environment if you have agreed to the Microsoft Commercial Terms of Use for Windows 10 Core Runtime Images or the Windows 10 IoT Enterprise Device License (“Windows IoT Commercial Agreement”). Additional terms and restrictions in the Windows IoT Commercial Agreements apply to your use of Container Image in a production environment. -Third Party Software. The Container Image may include third party applications that are licensed to you under this Supplemental License or under their own terms. License terms, notices, and acknowledgements, if any, for the third-party applications may be accessible online at https://aka.ms/thirdpartynotices or in an accompanying notices file. Even if such applications are governed by other agreements, the disclaimer, limitations on, and exclusions of damages in the Host License also apply to the extent allowed by applicable law. -Open Source Components. The Container Image may contain third party copyrighted software licensed under open source licenses with source code availability obligations. Copies of those licenses are included in the ThirdPartyNotices file or other accompanying notices file. You may obtain the complete corresponding source code from Microsoft if and as required under the relevant open source license by sending a money order or check for $5.00 to: Source Code Compliance Team, Microsoft Corporation, 1 Microsoft Way, Redmond, WA 98052, USA. Please include the name “Microsoft Software Supplemental License for Windows Container base image,“ the open source component name and version number in the memo line of your payment. You may also find a copy of the source at https://aka.ms/getsource. --------------------------------------------------------------------------------------------------------------------------------- -Other names and brands may be claimed as the property of others. \ No newline at end of file diff --git a/dockerfiles/winserver2019/openvino_c_dev_2022.2.0.dockerfile b/dockerfiles/winserver2019/openvino_c_dev_2022.2.0.dockerfile deleted file mode 100644 index d6079492..00000000 --- a/dockerfiles/winserver2019/openvino_c_dev_2022.2.0.dockerfile +++ /dev/null @@ -1,181 +0,0 @@ -# escape=` -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS base - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force - - -RUN C:\cpython-3.8.12\PCbuild\get_externals.bat --python c:\python-38-10\python.exe && ` - rmdir /s /q C:\cpython-3.8.12\externals\libffi && mkdir C:\cpython-3.8.12\externals\libffi && ` - xcopy /s /y c:\cpython-bin-deps-1cf06233e3ceb49dc0a73c55e04b1174b436b632\* c:\cpython-3.8.12\externals\libffi\ && ` - break > C:\cpython-3.8.12\PCbuild\get_externals.bat - -RUN C:\cpython-3.8.12\PCbuild\build.bat -p x64 - - -# ----------------- -FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS ov_base - -LABEL description="This is the dev image for Intel(R) Distribution of OpenVINO(TM) toolkit on Windows Server LTSC 2019" -LABEL vendor="Intel Corporation" - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned - -# setup CMake - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.14.7/cmake-3.14.7-win64-x64.msi -OutFile %TMP%\\cmake-3.14.7-win64-x64.msi ; ` - Start-Process %TMP%\\cmake-3.14.7-win64-x64.msi -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.14.7-win64-x64.msi -Force - -RUN SETX /M PATH "C:\Program Files\CMake\Bin;%PATH%" - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - -# setup Python -ARG PYTHON_VER=python3.8 - -COPY --from=base C:\cpython-3.8.12\PCbuild\amd64 c:\Python38 -COPY --from=base c:\cpython-3.8.12\Lib c:\Python38\Lib - -RUN setx /M path "%path%;C:\Python38;C:\Python38\Scripts" -# hadolint ignore=DL3013 -RUN python -m ensurepip --upgrade --default-pip && ` - python -m pip install --no-cache-dir --upgrade pip - -# download package from external URL -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command ` - Expand-Archive -Path "./*.zip" -DestinationPath . -Force ; ` - $OV_FOLDER=(Get-ChildItem -Filter "*openvino*" -Directory).FullName ; ` - New-Item -Path C:\intel\ -ItemType Directory -Name openvino_%build_id% ; ` - Move-Item -Path $OV_FOLDER\* -Destination %INTEL_OPENVINO_DIR% ; ` - Remove-Item @("""./*.zip""",$OV_FOLDER) -Force -Recurse - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - }` - if ( -not (Test-Path -Path C:\intel\openvino_2022) ) ` - {` - New-Item -Path C:\intel\openvino_2022 -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } - -# for CPU - -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.2.0 -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% && ` - python -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --use-deprecated=legacy-resolver ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% && ` - python -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) -# hadolint ignore=DL3013 -RUN python -m pip uninstall -y opencv-python && ` - python -m pip install --no-cache-dir opencv-python-headless - - -# install opencv -WORKDIR ${INTEL_OPENVINO_DIR} -RUN cmd /S /C curl -kL --output opencv-4.6.0-vc14_vc15.exe ` - https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe && ` - powershell.exe -Command Start-Process C:\intel\openvino\opencv-4.6.0-vc14_vc15.exe ` - -ArgumentList '-o"C:\\\\intel\\\\openvino\\\\extras\\\\" -y /quiet /norestart' -Wait && ` - del opencv-4.6.0-vc14_vc15.exe -ENV OpenCV_DIR C:\intel\openvino\extras\opencv\build - -RUN rmdir /s /q %INTEL_OPENVINO_DIR%\.distribution & mkdir %INTEL_OPENVINO_DIR%\.distribution && ` - copy /b NUL %INTEL_OPENVINO_DIR%\.distribution\docker - -WORKDIR ${INTEL_OPENVINO_DIR} - -# Post-installation cleanup -RUN powershell Remove-Item -Force -Recurse "%TEMP%\*" && ` - powershell Remove-Item -Force -Recurse "%TEMP_DIR%" && ` - rmdir /S /Q "%ProgramData%\Package Cache" - -USER ContainerUser - -CMD ["cmd.exe"] - -# Setup custom layers below diff --git a/dockerfiles/winserver2019/openvino_c_runtime_2022.2.0.dockerfile b/dockerfiles/winserver2019/openvino_c_runtime_2022.2.0.dockerfile deleted file mode 100644 index 14070a65..00000000 --- a/dockerfiles/winserver2019/openvino_c_runtime_2022.2.0.dockerfile +++ /dev/null @@ -1,157 +0,0 @@ -# escape=` -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS base - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force - - -RUN C:\cpython-3.8.12\PCbuild\get_externals.bat --python c:\python-38-10\python.exe && ` - rmdir /s /q C:\cpython-3.8.12\externals\libffi && mkdir C:\cpython-3.8.12\externals\libffi && ` - xcopy /s /y c:\cpython-bin-deps-1cf06233e3ceb49dc0a73c55e04b1174b436b632\* c:\cpython-3.8.12\externals\libffi\ && ` - break > C:\cpython-3.8.12\PCbuild\get_externals.bat - -RUN C:\cpython-3.8.12\PCbuild\build.bat -p x64 - - -# ----------------- -FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS ov_base - -LABEL description="This is the runtime image for Intel(R) Distribution of OpenVINO(TM) toolkit on Windows Server LTSC 2019" -LABEL vendor="Intel Corporation" - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - - - - -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 - -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force - - -# setup Python -ARG PYTHON_VER=python3.8 - -COPY --from=base C:\cpython-3.8.12\PCbuild\amd64 c:\Python38 -COPY --from=base c:\cpython-3.8.12\Lib c:\Python38\Lib - -RUN setx /M path "%path%;C:\Python38;C:\Python38\Scripts" -# hadolint ignore=DL3013 -RUN python -m ensurepip --upgrade --default-pip && ` - python -m pip install --no-cache-dir --upgrade pip - -# download package from external URL -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} - -# install product by copying archive content -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command ` - Expand-Archive -Path "./*.zip" -DestinationPath . -Force ; ` - $OV_FOLDER=(Get-ChildItem -Filter "*openvino*" -Directory).FullName ; ` - New-Item -Path C:\intel\ -ItemType Directory -Name openvino_%build_id% ; ` - Move-Item -Path $OV_FOLDER\* -Destination %INTEL_OPENVINO_DIR% ; ` - Remove-Item @("""./*.zip""",$OV_FOLDER) -Force -Recurse - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - }` - if ( -not (Test-Path -Path C:\intel\openvino_2022) ) ` - {` - New-Item -Path C:\intel\openvino_2022 -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } - -# for CPU - -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION=2022.2.0 -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles\winserver2019\third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - - -# install opencv -WORKDIR ${INTEL_OPENVINO_DIR} -RUN cmd /S /C curl -kL --output opencv-4.6.0-vc14_vc15.exe ` - https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe && ` - powershell.exe -Command Start-Process C:\intel\openvino\opencv-4.6.0-vc14_vc15.exe ` - -ArgumentList '-o"C:\\\\intel\\\\openvino\\\\extras\\\\" -y /quiet /norestart' -Wait && ` - del opencv-4.6.0-vc14_vc15.exe -ENV OpenCV_DIR C:\intel\openvino\extras\opencv\build - -RUN rmdir /s /q %INTEL_OPENVINO_DIR%\.distribution & mkdir %INTEL_OPENVINO_DIR%\.distribution && ` - copy /b NUL %INTEL_OPENVINO_DIR%\.distribution\docker - -WORKDIR ${INTEL_OPENVINO_DIR} - -# Post-installation cleanup -RUN powershell Remove-Item -Force -Recurse "%TEMP%\*" && ` - powershell Remove-Item -Force -Recurse "%TEMP_DIR%" && ` - rmdir /S /Q "%ProgramData%\Package Cache" - -USER ContainerUser - -CMD ["cmd.exe"] - -# Setup custom layers below diff --git a/dockerfiles/winserver2019/third-party-programs-docker-runtime.txt b/dockerfiles/winserver2019/third-party-programs-docker-runtime.txt deleted file mode 100644 index 92baa125..00000000 --- a/dockerfiles/winserver2019/third-party-programs-docker-runtime.txt +++ /dev/null @@ -1,502 +0,0 @@ -OpenVINO Windows* runtime Docker image Third Party Programs File - -This file is the "third-party-programs.txt" file specified in the associated Intel end user license -agreement for the Intel software you are licensing. - -Third party programs and their corresponding required notices and/or license terms are listed -below. ----------------------------------------------------------------------------------------------------- -1. NumPy - Copyright (c) 2005-2021, NumPy Developers. - All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * Neither the name of the NumPy Developers nor the names of any - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------------------- -2. pip - Copyright (c) 2008-2021 The pip developers - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------------------------------------------------------------------------------------------------- -3. Python cpython - - -A. HISTORY OF THE SOFTWARE -========================== - -Python was created in the early 1990s by Guido van Rossum at Stichting -Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands -as a successor of a language called ABC. Guido remains Python's -principal author, although it includes many contributions from others. - -In 1995, Guido continued his work on Python at the Corporation for -National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) -in Reston, Virginia where he released several versions of the -software. - -In May 2000, Guido and the Python core development team moved to -BeOpen.com to form the BeOpen PythonLabs team. In October of the same -year, the PythonLabs team moved to Digital Creations, which became -Zope Corporation. In 2001, the Python Software Foundation (PSF, see -https://www.python.org/psf/) was formed, a non-profit organization -created specifically to own Python-related Intellectual Property. -Zope Corporation was a sponsoring member of the PSF. - -All Python releases are Open Source (see http://www.opensource.org for -the Open Source Definition). Historically, most, but not all, Python -releases have also been GPL-compatible; the table below summarizes -the various releases. - - Release Derived Year Owner GPL- - from compatible? (1) - - 0.9.0 thru 1.2 1991-1995 CWI yes - 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes - 1.6 1.5.2 2000 CNRI no - 2.0 1.6 2000 BeOpen.com no - 1.6.1 1.6 2001 CNRI yes (2) - 2.1 2.0+1.6.1 2001 PSF no - 2.0.1 2.0+1.6.1 2001 PSF yes - 2.1.1 2.1+2.0.1 2001 PSF yes - 2.1.2 2.1.1 2002 PSF yes - 2.1.3 2.1.2 2002 PSF yes - 2.2 and above 2.1.1 2001-now PSF yes - -Footnotes: - -(1) GPL-compatible doesn't mean that we're distributing Python under - the GPL. All Python licenses, unlike the GPL, let you distribute - a modified version without making your changes open source. The - GPL-compatible licenses make it possible to combine Python with - other software that is released under the GPL; the others don't. - -(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, - because its license has a choice of law clause. According to - CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 - is "not incompatible" with the GPL. - -Thanks to the many outside volunteers who have worked under Guido's -direction to make these releases possible. - - -B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON -=============================================================== - -Python software and documentation are licensed under the -Python Software Foundation License Version 2. - -Starting with Python 3.8.6, examples, recipes, and other code in -the documentation are dual licensed under the PSF License Version 2 -and the Zero-Clause BSD license. - -Some software incorporated into Python is under different licenses. -The licenses are listed with code falling under that license. - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 --------------------------------------------- - -1. This LICENSE AGREEMENT is between the Python Software Foundation -("PSF"), and the Individual or Organization ("Licensee") accessing and -otherwise using this software ("Python") in source or binary form and -its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, PSF hereby -grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, -analyze, test, perform and/or display publicly, prepare derivative works, -distribute, and otherwise use Python alone or in any derivative version, -provided, however, that PSF's License Agreement and PSF's notice of copyright, -i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Python Software Foundation; -All Rights Reserved" are retained in Python alone or in any derivative version -prepared by Licensee. - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python. - -4. PSF is making Python available to Licensee on an "AS IS" -basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. Nothing in this License Agreement shall be deemed to create any -relationship of agency, partnership, or joint venture between PSF and -Licensee. This License Agreement does not grant permission to use PSF -trademarks or trade name in a trademark sense to endorse or promote -products or services of Licensee, or any third party. - -8. By copying, installing or otherwise using Python, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 -------------------------------------------- - -BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 - -1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an -office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the -Individual or Organization ("Licensee") accessing and otherwise using -this software in source or binary form and its associated -documentation ("the Software"). - -2. Subject to the terms and conditions of this BeOpen Python License -Agreement, BeOpen hereby grants Licensee a non-exclusive, -royalty-free, world-wide license to reproduce, analyze, test, perform -and/or display publicly, prepare derivative works, distribute, and -otherwise use the Software alone or in any derivative version, -provided, however, that the BeOpen Python License is retained in the -Software, alone or in any derivative version prepared by Licensee. - -3. BeOpen is making the Software available to Licensee on an "AS IS" -basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE -SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS -AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY -DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -5. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -6. This License Agreement shall be governed by and interpreted in all -respects by the law of the State of California, excluding conflict of -law provisions. Nothing in this License Agreement shall be deemed to -create any relationship of agency, partnership, or joint venture -between BeOpen and Licensee. This License Agreement does not grant -permission to use BeOpen trademarks or trade names in a trademark -sense to endorse or promote products or services of Licensee, or any -third party. As an exception, the "BeOpen Python" logos available at -http://www.pythonlabs.com/logos.html may be used according to the -permissions granted on that web page. - -7. By copying, installing or otherwise using the software, Licensee -agrees to be bound by the terms and conditions of this License -Agreement. - - -CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 ---------------------------------------- - -1. This LICENSE AGREEMENT is between the Corporation for National -Research Initiatives, having an office at 1895 Preston White Drive, -Reston, VA 20191 ("CNRI"), and the Individual or Organization -("Licensee") accessing and otherwise using Python 1.6.1 software in -source or binary form and its associated documentation. - -2. Subject to the terms and conditions of this License Agreement, CNRI -hereby grants Licensee a nonexclusive, royalty-free, world-wide -license to reproduce, analyze, test, perform and/or display publicly, -prepare derivative works, distribute, and otherwise use Python 1.6.1 -alone or in any derivative version, provided, however, that CNRI's -License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) -1995-2001 Corporation for National Research Initiatives; All Rights -Reserved" are retained in Python 1.6.1 alone or in any derivative -version prepared by Licensee. Alternately, in lieu of CNRI's License -Agreement, Licensee may substitute the following text (omitting the -quotes): "Python 1.6.1 is made available subject to the terms and -conditions in CNRI's License Agreement. This Agreement together with -Python 1.6.1 may be located on the Internet using the following -unique, persistent identifier (known as a handle): 1895.22/1013. This -Agreement may also be obtained from a proxy server on the Internet -using the following URL: http://hdl.handle.net/1895.22/1013". - -3. In the event Licensee prepares a derivative work that is based on -or incorporates Python 1.6.1 or any part thereof, and wants to make -the derivative work available to others as provided herein, then -Licensee hereby agrees to include in any such work a brief summary of -the changes made to Python 1.6.1. - -4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" -basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR -IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND -DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS -FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT -INFRINGE ANY THIRD PARTY RIGHTS. - -5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON -1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS -A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, -OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - -6. This License Agreement will automatically terminate upon a material -breach of its terms and conditions. - -7. This License Agreement shall be governed by the federal -intellectual property law of the United States, including without -limitation the federal copyright law, and, to the extent such -U.S. federal law does not apply, by the law of the Commonwealth of -Virginia, excluding Virginia's conflict of law provisions. -Notwithstanding the foregoing, with regard to derivative works based -on Python 1.6.1 that incorporate non-separable material that was -previously distributed under the GNU General Public License (GPL), the -law of the Commonwealth of Virginia shall govern this License -Agreement only as to issues arising under or with respect to -Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this -License Agreement shall be deemed to create any relationship of -agency, partnership, or joint venture between CNRI and Licensee. This -License Agreement does not grant permission to use CNRI trademarks or -trade name in a trademark sense to endorse or promote products or -services of Licensee, or any third party. - -8. By clicking on the "ACCEPT" button where indicated, or by copying, -installing or otherwise using Python 1.6.1, Licensee agrees to be -bound by the terms and conditions of this License Agreement. - - ACCEPT - - -CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 --------------------------------------------------- - -Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION ----------------------------------------------------------------------- - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. --------------------------------------------------------------------------------------------------------- -4. Visual C++ Redistributable for Visual Studio - -MICROSOFT SOFTWARE LICENSE TERMS -MICROSOFT VISUAL STUDIO TEAM SYSTEM 2008 TEAM SUITE AND TRIAL EDITION -These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft -updates, -supplements, -Internet-based services, and -support services -for this software, unless other terms accompany those items. If so, those terms apply. -BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. INSTEAD, RETURN IT TO THE RETAILER FOR A REFUND OR CREDIT. If you cannot obtain a refund there, contact Microsoft or the Microsoft affiliate serving your country for information about Microsoft's refund policies. See www.microsoft.com/worldwide. In the United States and Canada, call (800) MICROSOFT or see www.microsoft.com/info/nareturns.htm. - -AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. - -IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW FOR EACH LICENSE YOU ACQUIRE. - -OVERVIEW. -Software. The software includes development tools, software programs and documentation. -License Model. The software is licensed on a per user basis. -INSTALLATION AND USE RIGHTS. -General. One user may install and use copies of the software to design, develop, test and demonstrate your programs. Testing does not include staging on a server in a production environment, such as loading content prior to production use. -Included Microsoft Programs. These license terms apply to all Microsoft programs included with the software. If the license terms with any of those programs give you other rights that do not expressly conflict with these license terms, you also have those rights. -Third Party Programs. The software contains third party programs. The license terms with those programs apply to your use of them. -ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. -User Testing. Your end users may access the software to perform acceptance tests on your programs. -Windows Server Terminal Services. Up to 200 anonymous users at a time may use the Terminal Services feature of the Windows Server software to access Internet demonstrations of your programs. Your demonstration must not use production data. -Utilities. The software contains certain components that are identified in the Utilities List located at http://go.microsoft.com/fwlink/?LinkId=100284. Depending on the specific edition of the software, the number of Utility files you receive with the software may not be equal to the number of Utilities listed in the Utilities List. You may copy and install the Utilities you receive with the software on to a total of five (5) machines at any one time. You may use these Utilities only to debug your programs you've developed with the software. You must delete all the Utilities installed onto a machine within the earlier of (i) when you have finished debugging your program; or (ii) thirty (30) days after installation of the Utilities onto that machine. -Distributable Code. The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below. -Right to Use and Distribute. The code and text files listed below are "Distributable Code." -REDIST.TXT Files. You may copy and distribute the object code form of code listed in REDIST.TXT files, plus any files listed on the REDIST list located at: http://go.microsoft.com/fwlink/?LinkID=100327&clcid=0x409. -Sample Code. You may modify, copy, and distribute the source and object code form of code marked as "sample." -Microsoft Merge Modules. You may copy and distribute the unmodified output of Microsoft Merge Modules. -MFCs, ATLs and CRTs. You may modify the source code form of Microsoft Foundation Classes (MFCs), Active Template Libraries (ATLs), and C runtimes (CRTs) to design, develop and test your programs, and copy and distribute the object code form of your modified files under a new name. -Image Library. You may copy and distribute images and animations in the Image Library as described in the software documentation. You may also modify that content. If you modify the content, it must be for use that is consistent with the permitted use of the unmodified content. -Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. -Distribution Requirements. For any Distributable Code you distribute, you must -add significant primary functionality to it in your programs; -for any Distributable Code having a filename extension of .lib, distribute only the results of running such Distributable Code through a linker with your program; -distribute Distributable Code included in a setup program only as part of that setup program without modification; -require distributors and external end users to agree to terms that protect it at least as much as this agreement; -display your valid copyright notice on your programs; and -indemnify, defend, and hold harmless Microsoft from any claims, including attorneys' fees, related to the distribution or use of your programs. -Distribution Restrictions. You may not -alter any copyright, trademark or patent notice in the Distributable Code; -use Microsoft's trademarks in your programs' names or in a way that suggests your programs come from or are endorsed by Microsoft; -distribute Distributable Code to run on a platform other than Microsoft operating systems, run-time technologies or application platforms; -include Distributable Code in malicious, deceptive or unlawful programs; or -modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that -the code be disclosed or distributed in source code form; or -others have the right to modify it. -INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. It may change or cancel them at any time. -Consent for Internet-Based Services. The software features described below connect to Microsoft or service provider computer systems over the Internet. In some cases, you will not receive a separate notice when they connect. BY USING THESE FEATURES, YOU CONSENT TO THE TRANSMISSION OF THIS INFORMATION. Microsoft does not use the information to identify or contact you. -Computer Information. The following features use Internet protocols, which send to the appropriate systems computer information, such as your Internet protocol address, the type of operating system, browser and name and version of the software you are using, and the language code of the device where you installed the software. Microsoft uses this information to make the Internet-based services available to you. - -Windows Update Feature. You may connect new hardware to the device where you installed the software. Your device may not have the drivers needed to communicate with that hardware. If so, the update feature of the software can obtain the correct driver from Microsoft and install it on your device. You can switch off this update feature. -Web Content Features. Features in the software can retrieve related content from Microsoft and provide it to you. To provide the content, these features send to Microsoft the type of operating system, name and version of the software you are using, type of browser and language code of the device where you installed the software. Examples of these features are clip art, templates, online training, online assistance and Appshelp. You may choose not to use these web content features. -Real Simple Syndication ("RSS") Feed. This software start page contains updated content that is supplied by means of an RSS feed online from Microsoft. -Misuse of Internet-based Services. You may not use these services in any way that could harm them or impair anyone else's use of them. You may not use the services to try to gain unauthorized access to any service, data, account or network by any means. -TRIAL EDITION SOFTWARE TERMS. The following terms apply to the Trial Edition software even if there are terms to the contrary in other parts of this agreement: -TIME-SENSITIVE SOFTWARE. If the version of the software is a Trial Edition, the software will stop running ninety days after you install it. You will receive notice before it stops running. You may not be able to access data used with the software when it stops running. -DISCLAIMER OF WARRANTY. THE TRIAL EDITION SOFTWARE IS LICENSED "AS-IS." YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. -LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. FOR THE TRIAL EDITION SOFTWARE, YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. -This limitation applies to - -anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and -claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. -It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. - -PRODUCT KEYS. The software requires a key to install or access it. You are responsible for the use of keys assigned to you. You should not share the keys with third parties. -SQL SERVER BENCHMARK TESTING. You must obtain Microsoft's prior written approval to disclose to a third party the results of any benchmark test of the SQL Server software that accompanies this software. -.NET FRAMEWORK SOFTWARE. The software contains Microsoft .NET Framework software. This software is part of Windows. The license terms for Windows apply to your use of the .NET Framework software. -MICROSOFT .NET FRAMEWORK BENCHMARK TESTING. The software includes the .NET Framework component of the Windows operating systems (".NET Component"). You may conduct internal benchmark testing of the .NET Component. You may disclose the results of any benchmark test of the .NET Component, provided that you comply with the following terms: -you must disclose all the information necessary for replication of the tests, including complete and accurate details of your benchmark testing methodology, the test scripts/cases, tuning parameters applied, hardware and software platforms tested, the name and version number of any third party testing tool used to conduct the testing, and complete source code for the benchmark suite/harness that is developed by or for you and used to test both the .NET Component and the competing implementation(s); -you must disclose the date (s) that you conducted the benchmark tests, along with specific version information for all Microsoft software products tested, including the .NET Component; -your benchmark testing was performed using all performance tuning and best practice guidance set forth in the product documentation and/or on Microsoft's support web sites, and uses the latest updates, patches and fixes available for the .NET Component and the relevant Microsoft operating system; -it shall be sufficient if you make the disclosures provided for above at a publicly available location such as a website, so long as every public disclosure of the results of your benchmark test expressly identifies the public site containing all required disclosures; and -nothing in this provision shall be deemed to waive any other right that you may have to conduct benchmark testing. -The foregoing obligations shall not apply to your disclosure of the results of any customized benchmark test of the .NET Component, whereby such disclosure is made under confidentiality in conjunction with a bid request by a prospective customer, such customer's application(s) are specifically tested and the results are only disclosed to such specific customer. Notwithstanding any other agreement you may have with Microsoft, if you disclose such benchmark test results, Microsoft shall have the right to disclose the results of benchmark tests it conducts of your products that compete with the .NET Component, provided it complies with the same conditions above. - -SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. For more information, see www.microsoft.com/licensing/userights. You may not -work around any technical limitations in the software; -reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; -make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; -publish the software for others to copy; -rent, lease or lend the software; or -use the software for commercial software hosting services. -WINDOWS MOBILE COMPONENTS. -You may only use the Windows Mobile components located in the "\Program Files\Windows Mobile 5.0 SDK R2\" directory to create programs that run on Windows Mobile 5.0 software for Pocket PC or Windows Mobile 5.0 software for the Smartphone. -Program Application and Driver Limitations. You may not use or include any of the Windows Mobile components located in the "\Program Files\Windows Mobile 5.0 SDK R2\" directory, nor any components thereof, in the development of any program application, device or system in which a malfunction would result in a foreseeable risk of personal injury, death or severe physical or environmental damage. -BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. -DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. -NOT FOR RESALE SOFTWARE. You may not sell software marked as "NFR" or "Not for Resale." -ACADEMIC EDITION SOFTWARE. You must be a "Qualified Educational User" to use software marked as "Academic Edition" or "AE." If you do not know whether you are a Qualified Educational User, visit www.microsoft.com/education or contact the Microsoft affiliate serving your country. -UPGRADE. If this software is marked as an upgrade version, you may use it only if you have a license to use the software eligible for upgrade. If you upgrade, this software takes the place of the earlier version, and this agreement takes the place of the agreement for that earlier version. You may use the earlier version only as permitted in the Downgrade clause below. -DOWNGRADE. You may install and use this version and an earlier version of the software at the same time. This agreement applies to your use of the earlier version. If the earlier version includes different components, any terms for those components in the agreement that comes with the earlier version apply to your use of them. Microsoft is not obligated to supply earlier versions to you. -TRANSFER TO A THIRD PARTY. The first user of the software may transfer it, and this agreement, directly to a third party. Before the transfer, that party must agree that this agreement applies to the transfer and use of the software. The first user must uninstall the software before transferring it separately from the device. The first user may not retain any copies. -EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. -SUPPORT SERVICES. Microsoft provides support services for the software as described at www.support.microsoft.com/common/international.aspx. -ENTIRE AGREEMENT. This agreement (including the warranty below), and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. -APPLICABLE LAW. -United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. -Outside the United States. If you acquired the software in any other country, the laws of that country apply. -LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your state or country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your state or country if the laws of your state or country do not permit it to do so. -LIMITATION ON AND EXCLUSION OF DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO THE AMOUNT YOU PAID FOR THE SOFTWARE. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. -This limitation applies to - -anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and -claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. -It also applies even if - -repair, replacement or a refund for the software does not fully compensate you for any losses; or -Microsoft knew or should have known about the possibility of the damages. -Some states do not allow the exclusion or limitation of incidental or consequential damages, so the above limitation or exclusion may not apply to you. They also may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. - -LIMITED WARRANTY - -LIMITED WARRANTY. If you follow the instructions, the software will perform substantially as described in the Microsoft materials that you receive in or with the software. -TERM OF WARRANTY; WARRANTY RECIPIENT; LENGTH OF ANY IMPLIED WARRANTIES. THE LIMITED WARRANTY COVERS THE SOFTWARE FOR ONE YEAR AFTER ACQUIRED BY THE FIRST USER. IF YOU RECEIVE SUPPLEMENTS, UPDATES, OR REPLACEMENT SOFTWARE DURING THAT YEAR, THEY WILL BE COVERED FOR THE REMAINDER OF THE WARRANTY OR 30 DAYS, WHICHEVER IS LONGER. If the first user transfers the software, the remainder of the warranty will apply to the recipient. TO THE EXTENT PERMITTED BY LAW, ANY IMPLIED WARRANTIES, GUARANTEES OR CONDITIONS LAST ONLY DURING THE TERM OF THE LIMITED WARRANTY. Some states do not allow limitations on how long an implied warranty lasts, so these limitations may not apply to you. They also might not apply to you because some countries may not allow limitations on how long an implied warranty, guarantee or condition lasts. -EXCLUSIONS FROM WARRANTY. This warranty does not cover problems caused by your acts (or failures to act), the acts of others, or events beyond Microsoft's reasonable control. -REMEDY FOR BREACH OF WARRANTY. MICROSOFT WILL REPAIR OR REPLACE THE SOFTWARE AT NO CHARGE. IF MICROSOFT CANNOT REPAIR OR REPLACE IT, MICROSOFT WILL REFUND THE AMOUNT SHOWN ON YOUR RECEIPT FOR THE SOFTWARE. IT WILL ALSO REPAIR OR REPLACE SUPPLEMENTS, UPDATES AND REPLACEMENT SOFTWARE AT NO CHARGE. IF MICROSOFT CANNOT REPAIR OR REPLACE THEM, IT WILL REFUND THE AMOUNT YOU PAID FOR THEM, IF ANY. YOU MUST UNINSTALL THE SOFTWARE AND RETURN ANY MEDIA AND OTHER ASSOCIATED MATERIALS TO MICROSOFT WITH PROOF OF PURCHASE TO OBTAIN A REFUND. THESE ARE YOUR ONLY REMEDIES FOR BREACH OF THE LIMITED WARRANTY. -CONSUMER RIGHTS NOT AFFECTED. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS, WHICH THIS AGREEMENT CANNOT CHANGE. -WARRANTY PROCEDURES. You need proof of purchase for warranty service. -United States and Canada. For warranty service or information about how to obtain a refund for software acquired in the United States and Canada, contact Microsoft at -(800) MICROSOFT; -Microsoft Customer Service and Support, One Microsoft Way, Redmond, WA 98052-6399; or -visit www.microsoft.com/info/nareturns.htm. -Europe, Middle East and Africa. If you acquired the software in Europe, the Middle East or Africa, Microsoft Ireland Operations Limited makes this limited warranty. To make a claim under this warranty, you should contact either -Microsoft Ireland Operations Limited, Customer Care Centre, Atrium Building Block B, Carmanhall Road, Sandyford Industrial Estate, Dublin 18, Ireland; or -the Microsoft affiliate serving your country (see www.microsoft.com/worldwide). -Outside United States, Canada, Europe, Middle East and Africa. If you acquired the software outside the United States, Canada, Europe, the Middle East and Africa, contact the Microsoft affiliate serving your country (see www.microsoft.com/worldwide). -NO OTHER WARRANTIES. THE LIMITED WARRANTY IS THE ONLY DIRECT WARRANTY FROM MICROSOFT. MICROSOFT GIVES NO OTHER EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. WHERE ALLOWED BY YOUR LOCAL LAWS, MICROSOFT EXCLUDES IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. If your local laws give you any implied warranties, guarantees or conditions, despite this exclusion, your remedies are described in the Remedy for Breach of Warranty clause above, to the extent permitted by your local laws. -LIMITATION ON AND EXCLUSION OF DAMAGES FOR BREACH OF WARRANTY. THE LIMITATION ON AND EXCLUSION OF DAMAGES CLAUSE ABOVE APPLIES TO BREACHES OF THIS LIMITED WARRANTY. -THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS, AND YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM STATE TO STATE. YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM COUNTRY TO COUNTRY. ------------------------------------------------------------------------------------------------------------------------------ -5. Windows Server Core base OS LTSC 2019 - -MICROSOFT SOFTWARE SUPPLEMENTAL LICENSE FOR WINDOWS CONTAINER BASE IMAGE -This Supplemental License is for the Windows Container Base Image (“Container Image”). If you comply with the terms of this Supplemental License you may use the Container Image as described below. -CONTAINER OS IMAGE -The Container Image may only be used with a validly licensed copy of: -Windows Server Standard or Windows Server Datacenter software (collectively “Server Host Software”), or Microsoft Windows Operating System (version 10) software (“Client Host Software”), or Windows 10 IoT Enterprise and Windows 10 IoT Core (collectively “IoT Host Software”). The Server Host Software, Client Host Software, and IoT Host Software are collectively referred to as the “Host Software” and a license for Host Software is a "Host License". -You may not use the Container Image if you do not have a corresponding version and edition of the Host License. Certain restrictions and additional terms may apply, which are described herein. If licensing terms herein conflict with Host License, then this Supplemental License shall govern with respect to the Container Image. BY ACCEPTING THIS SUPPLEMENTAL LICENSE OR USING THE CONTAINER IMAGE, YOU AGREE TO ALL OF THESE TERMS. IF YOU DO NOT ACCEPT AND COMPLY WITH THESE TERMS, YOU MAY NOT USE THE CONTAINER IMAGE. -DEFINITIONS -Windows Server Container (without Hyper-V isolation) is a feature of Microsoft Windows Server software. -Windows Server Container with Hyper-V isolation. Section 2(k) of the Microsoft Windows Server license terms is hereby deleted in its entirety and replaced with the revised terms as shown in “UPDATED” below. -UPDATED: Windows Server Container with Hyper-V isolation (formerly known as Hyper-V Container) is a container technology in Windows Server which utilizes a virtual operating system environment to host one or more Windows Server Container(s). Each Hyper-V isolation instance used to host one or more Windows Server Container(s) is considered one virtual operating system environment. -LICENSE TERMS -Host License. The Host License terms apply to your use of the Container Image and any Windows container(s) created with the Container Image which are distinct and separate from a virtual machine. -Use Rights. The Container Image may be used to create an isolated virtualized Windows operating system environment that includes at least one application that adds primary and significant functionality. You may use the Container Image only to create, build, and run Windows container(s) on Host Software. Updates to the Host Software may not update the Container Image so you may re-create any Windows containers based on an updated Container Image. -Restrictions. You may not remove this Supplemental License document file from the Container Image. You may not enable remote access to the application(s) you run within your container to avoid applicable license fees. You may not reverse engineer, decompile, or disassemble the Container Image, or attempt to do so, except and only to the extent required by third party licensing terms governing the use of certain open-source components that may be included with the software. Additional restrictions in the Host License may apply. -ADDITIONAL TERMS -Client Host Software. When running a Container Image on Client Host Software you may run any number of the Container Image instantiated as Windows containers for test or development purposes only. You may not use these Windows containers in a production environment on Client Host Software. -IoT Host Software. When running a Container Image on IoT Host Software you may run any number of the Container Image instantiated as Windows containers for test or development purposes only. You may only use the Container Image in a production environment if you have agreed to the Microsoft Commercial Terms of Use for Windows 10 Core Runtime Images or the Windows 10 IoT Enterprise Device License (“Windows IoT Commercial Agreement”). Additional terms and restrictions in the Windows IoT Commercial Agreements apply to your use of Container Image in a production environment. -Third Party Software. The Container Image may include third party applications that are licensed to you under this Supplemental License or under their own terms. License terms, notices, and acknowledgements, if any, for the third-party applications may be accessible online at https://aka.ms/thirdpartynotices or in an accompanying notices file. Even if such applications are governed by other agreements, the disclaimer, limitations on, and exclusions of damages in the Host License also apply to the extent allowed by applicable law. -Open Source Components. The Container Image may contain third party copyrighted software licensed under open source licenses with source code availability obligations. Copies of those licenses are included in the ThirdPartyNotices file or other accompanying notices file. You may obtain the complete corresponding source code from Microsoft if and as required under the relevant open source license by sending a money order or check for $5.00 to: Source Code Compliance Team, Microsoft Corporation, 1 Microsoft Way, Redmond, WA 98052, USA. Please include the name “Microsoft Software Supplemental License for Windows Container base image,“ the open source component name and version number in the memo line of your payment. You may also find a copy of the source at https://aka.ms/getsource. --------------------------------------------------------------------------------------------------------------------------------- -Other names and brands may be claimed as the property of others. \ No newline at end of file diff --git a/configure_gpu_ubuntu20.md b/docs/configure_gpu_ubuntu20.md similarity index 100% rename from configure_gpu_ubuntu20.md rename to docs/configure_gpu_ubuntu20.md diff --git a/get-started.md b/docs/get-started.md similarity index 100% rename from get-started.md rename to docs/get-started.md diff --git a/generate.py b/generate.py new file mode 100644 index 00000000..1f3ec105 --- /dev/null +++ b/generate.py @@ -0,0 +1,103 @@ +import subprocess +import argparse +import json +import os + +from jinja2 import Environment, FileSystemLoader, ChainableUndefined + +from lib import config, package_filename + +TEMPLATE_ROOT = os.path.realpath(f"{__file__}/../templates") +jinjaenv = Environment(loader=FileSystemLoader(TEMPLATE_ROOT), undefined=ChainableUndefined) + +parser = argparse.ArgumentParser() +parser.add_argument("--config", help="Use pre-existing config to generate Dockerfile.") +parser.add_argument("--package_url", "--package-url", help="Generate config for given package url.") +parser.add_argument("--wheels_url", "--wheels-url", help="Also specify wheels url when generating the config.") +parser.add_argument("--os", help="Overwrite OS if package-url is given") +parser.add_argument("-p", "--preset", default="runtime", help="preset to build, e.g. 'dev' or 'runtime'") +parser.add_argument("--include-components", + help="list of components to forcefully enable (separated by comma)") +parser.add_argument("--exclude-components", help="list of components to forcefully disable " + "(separated by comma), Note: this option breaks component requirements") +parser.add_argument("-o", "--out", "--output", default="Dockerfile", + help="output file name to write Dockerfile to, defaults to 'Dockerfile'") +parser.add_argument("-j", action="store_true", help="Also output a json with information about the image.") +parser.add_argument("--tests", action="store_true", help="Also generate test.sh that will run tests for the image") + + +args = parser.parse_args() + +if args.config and args.package_url: + raise Exception("Mutually exclusive options: package_url and config") + +if not args.config and not args.package_url: + raise Exception("Either package_url or config must be specified") + + +if args.config: + context = config.default_env.load(args.config) +else: + package_info = package_filename.parse(args.package_url.rsplit("/", 1)[-1]) + package_version = package_info["version"] + if args.wheels_url: + # this is a pre-release then add extra version + package_version += "." + package_info["version_extra"] + config_data = { + "_based_on": args.os or package_info["os"], + "_template": "Dockerfile_default.j2", + "package": { + "url": args.package_url, + "version": package_version, + "distribution": package_info["dist"], + "wheels": { + "url": args.wheels_url, + } + } + } + context = config.default_env.from_dict(config_data) + +include_components = args.include_components.split(",") if args.include_components else () +exclude_components = args.exclude_components.split(",") if args.exclude_components else () + +context = config.process( + context, + args.preset, + include_components=include_components, + exclude_components=exclude_components +) + +template = context["_template"] +dockerfile = jinjaenv.get_template(template).render(context) + +with open(args.out, "w") as outfile: + outfile.write(dockerfile) + +image_name = f"{context['os_id']}_{args.preset}:{context['package']['version']}" + +if args.j: + with open("image_data.json", "w") as file: + json.dump({ + "image_name": image_name, + "base_image": context["base_image"], + "product_version": context["package"]["version"], + "wheels_version": None, + "distribution": args.preset, + "os": context["os_id"] + }, file) + +if args.tests: + testfile = open("test.sh", "w") + testfile.write("set -e\n") + testfile.write(f"IMAGE_NAME={image_name}\n") + testfile.write("TESTS_VOLUME=./refactor/tests/in_container:/tests\n") + testfile.write('crun() { docker run --rm -it -v $TESTS_VOLUME $IMAGE_NAME bash -c "$1"; }\n') + testfile.write('run_test() { echo TEST $1 $2; crun "/tests/$1 $2 2>&1 >/dev/null && echo SUCCESS || echo ERROR"; }\n') + testfile.write("docker build -t $IMAGE_NAME .\n") + for test in context["tests"]: + arg = None + try: + test, arg = test.split("@", 1) + except ValueError: + pass + testfile.write(f"run_test {test} {arg}\n") diff --git a/utils/__init__.py b/lib/__init__.py similarity index 100% rename from utils/__init__.py rename to lib/__init__.py diff --git a/lib/config.py b/lib/config.py new file mode 100644 index 00000000..78a219e9 --- /dev/null +++ b/lib/config.py @@ -0,0 +1,169 @@ +import json +import os + +from lib import package_filename + + +class _ConfDir: + def __init__(self, root_dir): + self.root_dir = root_dir + + def get(self, name): + with open(f"{self.root_dir}/{name}.json") as conf_file: + conf = json.load(conf_file) + assert isinstance(conf, dict), "Config must be dict" + return conf + + +class Env: + def __init__(self, product_dir, config_dir): + self.product_dir = product_dir + if isinstance(config_dir, _ConfDir): + self.config_dir = config_dir + else: + self.config_dir = _ConfDir(config_dir) + + @staticmethod + def merge_values(old, new): + if old is None: + return new + if new is None: + return old + if old.__class__ != new.__class__: + raise Exception(f"Config merge error: {old.__class__} and {new.__class__} are incompatible") + if isinstance(old, dict): + keys = list(old.keys()) + keys.extend([ + key + for key in new.keys() + if key not in old.keys() + ]) + return { + key: Env.merge_values(old.get(key), new.get(key)) + for key in keys + } + if isinstance(old, list): + print(f"Warning: lists are replaced, not merged: {old}") + return new + + + def _load(self, initial_conf): + base = initial_conf + cascade = [] + while base: + if "_based_on" in base: + new_base_name = base["_based_on"] + del base["_based_on"] + cascade.append(base) + base = self.config_dir.get(new_base_name) + else: + cascade.append(base) + base = None + result = {} + for item in cascade[::-1]: + result = self.merge_values(result, item) + return result + + def load(self, product): + # TODO: if valid path is given instead of a product, use it + with open(f"{self.product_dir}/{product}.json") as prodconf: + return self._load(json.load(prodconf)) + + def from_dict(self, data): + return self._load(data) + + def discover(self): + for product_name in os.scandir(self.product_dir): + if not product_name.is_dir(): + continue + for product_conf in os.scandir(product_name.path): + if not product_conf.name.endswith(".json"): + continue + yield f"{product_name.name}/{product_conf.name.rsplit('.', 1)[0]}" + +CONFIGS_ROOT = os.path.realpath(f"{__file__}/../../configs") +default_env = Env(f"{CONFIGS_ROOT}/releases", f"{CONFIGS_ROOT}/base") + + +def process(config, preset, include_components=(), exclude_components=()): + # enable --include-components + for component in include_components: + config["components"][component]["enable"] = True + + # enable components of the selected preset + for component in config["presets"][preset]: + config["components"][component]["enable"] = True + + # enable all subcomponents + def enable_recursively(components, cname): + components[cname]["enable"] = True + subcomponents = components[cname].get("requires") + if not subcomponents: + return + for subcomponent in subcomponents: + enable_recursively(components, subcomponent) + + for cname, component in config["components"].items(): + enabled = component.get("enable") + if not enabled: + continue + enable_recursively(config["components"], cname) + + # disable --exclude-components + for component in exclude_components: + config["components"][component]["enable"] = False + + + # collect apt packages + apt_packages = [] + apt_downloads = [] + for cname, component in config["components"].items(): + if not component.get("enable"): + continue + apt = component.get("apt") + if not apt: + continue + for package in apt: + if package.startswith("https://"): + filename = package.rsplit("/", 1)[-1] + filepath = "/tmp/apt_dl/{}".format(filename) + apt_downloads.append((package, filepath)) + else: + apt_packages.append(package) + + config["apt"] = { + "packages": apt_packages, + "downloads": apt_downloads, + "download_dir": "/tmp/apt_dl" + } + + # collect rpm packages + rpm_packages = [] + for cname, component in config["components"].items(): + if not component.get("enable"): + continue + rpm = component.get("rpm") + if not rpm: + continue + rpm_packages.extend(rpm) + + config["rpm"] = { + "packages": rpm_packages + } + + assert bool(config["rpm"]["packages"]) ^ \ + bool(config["apt"]["packages"] or config["apt"]["downloads"]), \ + "Can't be both rpm and apt based system. Something's wrong" + + # collect tests + tests = set() + for cname, component in config["components"].items(): + if not component.get("enable"): + continue + comp_tests = component.get("tests") + if comp_tests and isinstance(comp_tests, list): + tests.update(comp_tests) + + config["tests"] = list(tests) + + return config diff --git a/lib/package_filename.py b/lib/package_filename.py new file mode 100644 index 00000000..b4b22fa6 --- /dev/null +++ b/lib/package_filename.py @@ -0,0 +1,31 @@ +import re + +PACKAGE_FILENAME_RE = re.compile( + r"^([lmw])?_?openvino_(toolkit|genai|tokenizers)" + r"_?(dev|data_dev|runtime|ie_runtime)?" + r"_(centos\d+|debian\d+|raspbian|rhel\d+|ubuntu\d+|macos_\d+_\d+|osx|windows|)" + r"_?(arm|p|dev)?" + r"_(20\d\d\.\d\.\d+).?([\.\da-z]+)?" + r"_?(fpga_only|pot)?" + r"_?(x86_64|armhf|arm64)?" + r"\.(tgz|tar\.gz|zip)$" +) + +FIELDS = ( + "os_fam_hint", # l, w, m or None + "dist", # toolkit, genai or tokenizers + "_subdist", # deprecated; dev, data_dev, runtime or ie_runtime + "os", # centos*, debian*, raspbian, rhel*, ubuntu*, macos_*_*, osx, windows or "" + "_prefix", # deprecated; arm, p or dev + "version", # main version: three numbers + "version_extra", # extra version, no specific format + "_version_suffix", # deprecated; fpga_only or pot + "arch", # x86_64, armhf, arm64 or None + "ext", # tgz, tar.gz or zip +) + +def parse(filename) -> dict: + match = PACKAGE_FILENAME_RE.match(filename) + if not match: + return None + return dict(zip(FIELDS, match.groups())) diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index e00d8043..00000000 --- a/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -setuptools -docker!=5.0.0,!=5.0.1 # workarounds for https://github.com/docker/docker-py/issues/2807 and 2885 -jinja2 -pytest==7.1.3 -# https://github.com/pytest-dev/pytest/issues/10428 -pytest-html -pytest-metadata -pytest-xdist -requests diff --git a/requirements_dev.txt b/requirements_dev.txt deleted file mode 100644 index 0100fa8f..00000000 --- a/requirements_dev.txt +++ /dev/null @@ -1,37 +0,0 @@ -bandit < 1.7.3 # workaround for https://github.com/tylerwince/flake8-bandit/issues/21 -flake8==4.0.1 -flake8-annotations-complexity -flake8-bandit==2.1.2 -flake8-broken-line -flake8-bugbear -flake8-comprehensions -flake8-debugger -flake8-eradicate -flake8-executable -flake8-print -mypy -types-requests -flake8-string-format -flake8_builtins -flake8_coding -flake8_commas -flake8_pep3101 -flake8_quotes -import-order -naming -radon -flake8-rst-docstrings -more-itertools -packaging -pluggy -pytest==7.1.3 -# https://github.com/pytest-dev/pytest/issues/10428 -pytest-html -pytest-metadata -pytest-xdist -flake8-pytest-style -flake8-expression-complexity -flake8-class-attributes-order -flake8-variables-names -flake8-functions -Pep8-naming diff --git a/templates/Dockerfile_default.j2 b/templates/Dockerfile_default.j2 new file mode 100644 index 00000000..eabdf222 --- /dev/null +++ b/templates/Dockerfile_default.j2 @@ -0,0 +1,91 @@ +# Copyright (C) 2019-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +{#- + Single stage image for Ubuntu 20, 22 and OpenVINO 2024.* + Single stage image does not build OpenCV thus samples can be built only with limited support. + Arguments: + * base_image + * package + * url + * version + * [wheels_url] + * components + * python + ... + * apt + * packages (package names (without downloaded)) + * downloads ((url, name) for each package to download) + * download_dir +#} + +FROM {{ base_image }} + +# System package dependencies +{%- if apt.packages or apt.downloads %} +ARG DEBIAN_FRONTEND=noninteractive +RUN apt update && \ + apt upgrade -y && \ + {% if apt.packages -%} + apt install -y --no-install-recommends {{ apt.packages | join(" ") }} && \ + {% endif -%} + {% if apt.downloads -%} + mkdir -p {{ apt.download_dir }} && \ + cd {{ apt.download_dir }} && \ + {% for dl in apt.downloads -%} curl -L {{dl.0}} -o {{dl.1}} && \ + {% endfor -%} + apt install -y --no-install-recommends {{ apt.downloads | map(attribute=1) | join(" ") }} && \ + {% endif -%} + rm -rf {{ apt.download_dir }} /var/lib/apt/lists/* +{%- endif %} + +{%- if rpm.packages %} +RUN yum install -y {{ rpm.packages | join(" ") }} && \ + yum clean all && \ + rm -rf /var/cache/yum +{%- endif %} + +# User setup (is it needed?) +RUN sed -si "s/^UMASK.+/UMASK 000/g" /etc/login.defs +RUN useradd -ms /bin/bash -G users,video openvino + +# Package setup +ENV INTEL_OPENVINO_DIR=/opt/intel/openvino +RUN mkdir -p $INTEL_OPENVINO_DIR && \ + chmod a=rwx $INTEL_OPENVINO_DIR && \ + cd $INTEL_OPENVINO_DIR && \ + curl "{{ package.url }}" \ + | tar -xz --strip-components=1 --no-same-owner --owner=openvino --group=openvino + +# Package env setup +ENV PKG_CONFIG_PATH=$INTEL_OPENVINO_DIR/runtime/lib/intel64/pkgconfig +ENV TBB_DIR=$INTEL_OPENVINO_DIR/runtime/3rdparty/tbb/lib/cmake/TBB +ENV OpenVINO_DIR=$INTEL_OPENVINO_DIR/runtime/cmake +ENV PYTHONPATH=$INTEL_OPENVINO_DIR/python:$INTEL_OPENVINO_DIR/python/python3: +ENV LD_LIBRARY_PATH=$INTEL_OPENVINO_DIR/runtime/3rdparty/tbb/lib:$INTEL_OPENVINO_DIR/runtime/lib/intel64 + +{% if components.python.enable -%} +# Setup python venv dir, set permissive rights +ENV VIRTUAL_ENV=/opt/venv +RUN mkdir -p $VIRTUAL_ENV && chmod a=rwx $VIRTUAL_ENV +{%- endif %} + +USER openvino +WORKDIR ${INTEL_OPENVINO_DIR} + +{% if components.python.enable -%} +# Python setup +RUN {{ components.python.command or "python3" }} -m venv $VIRTUAL_ENV +ENV PATH=$VIRTUAL_ENV/bin:$PATH + +{%- set pyver = (package.wheels.version or package.version) %} +RUN pip install --no-cache-dir --upgrade pip setuptools wheel +RUN pip install --no-cache-dir "openvino=={{ pyver }}" +{%- if package.distribution == "genai" %} "openvino_genai~={{ pyver }}" "openvino_tokenizers~={{ pyver }}"{%- endif -%} +{%- if components.python.pin_packages %} {{components.python.pin_packages | join(" ")}}{%- endif -%} +{%- if components.openvino_dev.enable %} "openvino-dev[{{ components.openvino_dev.extras }}]=={{ pyver }}" +{#- Setting this extra index url stops nvidia cuda libraries from installing by default -#} +{#- #} --extra-index-url https://download.pytorch.org/whl/cpu {%- endif -%} +{%- if package.wheels.url %} --trusted-host=* --find-links {{ package.wheels.url }} {% endif %} + +{%- endif %} diff --git a/templates/rhel8/common/base.dockerfile.j2 b/templates/rhel8/common/base.dockerfile.j2 deleted file mode 100644 index 8ffb3b92..00000000 --- a/templates/rhel8/common/base.dockerfile.j2 +++ /dev/null @@ -1,262 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -{%- if 'docker' == rhel_platform %} -FROM registry.access.redhat.com/ubi8 AS base -{% else %} -FROM registry.access.redhat.com/ubi8 -LABEL name="rhel8_{{ distribution }}" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="{{ product_version }}" \ - release="{{ product_version }}" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the {{ distribution }} image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" -{% endif -%} - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -{% for pre_command in pre_commands %} -{{ pre_command|safe }} -{% endfor %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - -{% if distribution == 'dev' %} - -FROM base as opencv -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -{% if 'autobuild' != rhel_platform %} -COPY ./entitlement /etc/pki/entitlement -COPY ./rhsm-conf /etc/rhsm -COPY ./rhsm-ca /etc/rhsm/ca -{% endif %} - -RUN rm -f /etc/rhsm-host && subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms -RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && dnf clean all -RUN dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm && dnf clean all -# hadolint ignore=DL3033 -RUN yum install -y \ - gtk3-devel \ - gstreamer1-devel \ - gstreamer1-plugins-base-devel \ - ffmpeg-devel \ - libmfx-devel \ - cmake \ - git \ - python38-devel \ - python38-pip \ - gcc-c++ \ - gcc && yum clean all - -RUN rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" # 4.8 with a fix for building tests -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC2046 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_SAMPLES_SRC_INSTALL_PATH=samples \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && cmake -P cmake_install.cmake && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- - -{% endif %} - -{% if 'docker' == rhel_platform %} -# ----------------- -FROM registry.access.redhat.com/ubi8 AS ov_base - -LABEL name="rhel8_{{ distribution }}" \ - maintainer="openvino_docker@intel.com" \ - vendor="Intel Corporation" \ - version="{{ product_version }}" \ - release="{{ product_version }}" \ - summary="Provides the latest release of Intel(R) Distribution of OpenVINO(TM) toolkit." \ - description="This is the {{ distribution }} image for Intel(R) Distribution of OpenVINO(TM) toolkit on RHEL UBI 8" - -WORKDIR / -USER root - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -{% endif %} - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -{% if 'docker' == rhel_platform %} - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel -{% endif %} - -{% if 'runtime' == distribution %} -ARG LGPL_DEPS="bash" # no new packages -ARG INSTALL_PACKAGES="-c=python -c=core" -{% else %} -ARG LGPL_DEPS="gcc-c++ \ - glibc \ - libstdc++ \ - libgcc" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt -c=core -c=dev" -{% endif %} -ARG INSTALL_SOURCES="no" - -# hadolint ignore=SC2016 -RUN sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-devel-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-devel-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh && \ - sed -i -e 's|https://vault.centos.org/centos/8/PowerTools/$arch/os/Packages/gflags-2.1.2-6|http://mirror.centos.org/centos/8-stream/PowerTools/$arch/os/Packages/gflags-2.2.2-1|g' ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh - -WORKDIR /thirdparty -# hadolint ignore=DL3031, DL3033, SC2012 -{% if 'openshift' == rhel_platform -%} -RUN rm /etc/rhsm-host && rpm -qa --qf "%{name}\n" > base_packages.txt && \ -{%- else -%} -RUN rpm -qa --qf "%{name}\n" > base_packages.txt && \ -{%- endif %} - yum install -y ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y $INSTALL_PACKAGES && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - yum install -y yum-utils && \ - rpm -qa --qf "%{name}\n" > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - rpm -qa $package --qf "%{name}: %{license}\n" | grep GPL; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - yumdownloader --skip-broken --source -y $package; \ - fi \ - done && \ - yum autoremove -y yum-utils && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - yum clean all && rm -rf /var/cache/yum - -{% if 'autobuild' != rhel_platform %} -RUN rm -Rf /etc/pki/entitlement /etc/rhsm/ca /etc/rhsm/rhsm.conf -{% endif %} - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -WORKDIR /licenses -RUN cp -rf "${INTEL_OPENVINO_DIR}"/licensing /licenses - -{% for command in commands %} -{{ command|safe }} -{% endfor %} - -# Post-installation cleanup and setting up OpenVINO environment variables -{% if 'docker' == rhel_platform %} -RUN rm -rf /tmp && mkdir /tmp -{% elif 'openshift' == rhel_platform %} -RUN rm -rf /tmp && mkdir /tmp && rm -rf /etc/pki/entitlement && rm -rf /etc/rhsm -{% else %} -RUN rm -rf /tmp && mkdir /tmp -{% endif %} - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} - -CMD ["/bin/bash"] - -# Setup custom layers below -{% for layer in layers %} -{{ layer|safe }} -{% endfor %} diff --git a/templates/rhel8/dist/dev.dockerfile.j2 b/templates/rhel8/dist/dev.dockerfile.j2 deleted file mode 100644 index 067f249f..00000000 --- a/templates/rhel8/dist/dev.dockerfile.j2 +++ /dev/null @@ -1,50 +0,0 @@ -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102,DL3033 -RUN yum install -y cmake git && yum clean all && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="${OPENVINO_WHEELS_VERSION}" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu ; \ - fi - -# download source for PyPi LGPL packages -WORKDIR /thirdparty -RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \ - curl -L https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz --output chardet-4.0.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/81/41/e6cb9026374771e3bdb4c0fe8ac0c51c693a14b4f72f26275da15f7a4d8b/ethtool-0.14.tar.gz --output ethtool-0.14.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz --output gpg-1.10.0.tar.gz; \ - curl -L https://files.pythonhosted.org/packages/e0/e8/1e4f21800015a9ca153969e85fc29f7962f8f82fc5dbc1ecbdeb9dc54c75/PyGObject-3.28.3.tar.gz --output PyGObject-3.28.3.tar.gz; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt && \ - curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-dev.txt --output third-party-programs-docker-dev.txt - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies needed by OV::RemoteTensor -RUN yum install -y \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/opencl-headers-2.2-1.20180306gite986688.el8.noarch.rpm \ - https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/ocl-icd-devel-2.2.12-1.el8.x86_64.rpm \ - https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm && \ - yum clean all - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR "${INTEL_OPENVINO_DIR}"/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" diff --git a/templates/rhel8/dist/runtime.dockerfile.j2 b/templates/rhel8/dist/runtime.dockerfile.j2 deleted file mode 100644 index b738f74b..00000000 --- a/templates/rhel8/dist/runtime.dockerfile.j2 +++ /dev/null @@ -1,5 +0,0 @@ -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN curl -L https://raw.githubusercontent.com/openvinotoolkit/docker_ci/master/dockerfiles/rhel8/third-party-programs-docker-runtime.txt --output third-party-programs-docker-runtime.txt \ No newline at end of file diff --git a/templates/rhel8/env/dev_env.dockerfile.j2 b/templates/rhel8/env/dev_env.dockerfile.j2 deleted file mode 100644 index dcf972ec..00000000 --- a/templates/rhel8/env/dev_env.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig diff --git a/templates/rhel8/env/runtime_env.dockerfile.j2 b/templates/rhel8/env/runtime_env.dockerfile.j2 deleted file mode 100644 index 9eb25ba5..00000000 --- a/templates/rhel8/env/runtime_env.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig diff --git a/templates/rhel8/hw/cpu.dockerfile.j2 b/templates/rhel8/hw/cpu.dockerfile.j2 deleted file mode 100644 index f0a88068..00000000 --- a/templates/rhel8/hw/cpu.dockerfile.j2 +++ /dev/null @@ -1 +0,0 @@ -# for CPU \ No newline at end of file diff --git a/templates/rhel8/hw/gpu.dockerfile.j2 b/templates/rhel8/hw/gpu.dockerfile.j2 deleted file mode 100644 index c27f4639..00000000 --- a/templates/rhel8/hw/gpu.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# for GPU -RUN groupmod -g 44 video -# hadolint ignore=DL3041 -RUN dnf install -y libedit ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-gmmlib-22.3.1-i529.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-core-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-igc-opencl-1.0.12504.6-i537.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-opencl-22.43.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/intel-level-zero-gpu-1.3.24595.35-i538.el8.x86_64.rpm ; \ - rpm -ivh https://repositories.intel.com/graphics/rhel/8.6/level-zero-1.8.8-i524.el8.x86_64.rpm ; \ - rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm ; \ - dnf clean all diff --git a/templates/rhel8/install/copy.dockerfile.j2 b/templates/rhel8/install/copy.dockerfile.j2 deleted file mode 100644 index 5a2d9b87..00000000 --- a/templates/rhel8/install/copy.dockerfile.j2 +++ /dev/null @@ -1,27 +0,0 @@ -# install product by copying archive content - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -{% if 'autobuild' != rhel_platform %} -ARG TEMP_DIR=/tmp/openvino_installer -{% endif -%} -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -{% if 'openshift' == rhel_platform %} -WORKDIR ${TEMP_DIR} -{% endif %} -RUN tar -xzf "${TEMP_DIR}"/*.tgz && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${INTEL_OPENVINO_DIR}/tools/workbench" && rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" -{% if no_samples is defined %} -RUN rm -rf "${INTEL_OPENVINO_DIR}/samples" -{% endif %} diff --git a/templates/rhel8/install/install.dockerfile.j2 b/templates/rhel8/install/install.dockerfile.j2 deleted file mode 100644 index 47fe4855..00000000 --- a/templates/rhel8/install/install.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# install product by installation script -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# hadolint ignore=DL3031, DL3033, SC2211 -RUN chmod +x l_openvino*.sh && \ - ./l_openvino*.sh -a -s --eula accept && \ - mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \ - OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR} -{% if no_samples is defined %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/samples -{% endif %} \ No newline at end of file diff --git a/templates/rhel8/layers/benchmark.dockerfile.j2 b/templates/rhel8/layers/benchmark.dockerfile.j2 deleted file mode 100644 index f1af1614..00000000 --- a/templates/rhel8/layers/benchmark.dockerfile.j2 +++ /dev/null @@ -1,20 +0,0 @@ -# benchmark app package - -USER root - -RUN subscription-manager register --org=$SUBSCRIPTION_ORG --activationkey=$SUBSCRIPTION_KEY && subscription-manager attach && \ - subscription-manager release --set=`cat /etc/*release | grep VERSION_ID | cut -f2 -d'"'` - -RUN yum update -y --excludepkgs redhat-release && \ - yum install -y sudo && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y dev && \ - yum clean all && rm -rf /var/cache/yum - -RUN sed -i 's+$HOME/inference_engine_${samples_type}_samples_build+/opt/intel/openvino/samples/cpp/samples_build+g' /opt/intel/openvino/samples/cpp/build_samples.sh && \ - /opt/intel/openvino/samples/cpp/build_samples.sh - -# Post-installation cleanup -RUN rm -rf /tmp && mkdir /tmp && subscription-manager unregister - -USER openvino -WORKDIR /opt/intel/openvino/samples/cpp/samples_build/intel64/Release \ No newline at end of file diff --git a/templates/rhel8/layers/wheel.dockerfile.j2 b/templates/rhel8/layers/wheel.dockerfile.j2 deleted file mode 100644 index 7393deee..00000000 --- a/templates/rhel8/layers/wheel.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -# install custom wheel -USER root - -ARG wheel_url -ADD ${wheel_url} /tmp/custom_wheels/ -RUN python3 -m pip install --no-cache-dir /tmp/custom_wheels/* && \ - rm -rf /tmp/* - -USER openvino \ No newline at end of file diff --git a/templates/rhel8/python/python38.dockerfile.j2 b/templates/rhel8/python/python38.dockerfile.j2 deleted file mode 100644 index 15b0ed48..00000000 --- a/templates/rhel8/python/python38.dockerfile.j2 +++ /dev/null @@ -1,4 +0,0 @@ -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip diff --git a/templates/rhel8/source/local.dockerfile.j2 b/templates/rhel8/source/local.dockerfile.j2 deleted file mode 100644 index c144c82f..00000000 --- a/templates/rhel8/source/local.dockerfile.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# get product from local archive -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -{% if 'openshift' == rhel_platform %} -COPY ${package_url} ${TEMP_DIR}/ -{% else %} -WORKDIR ${TEMP_DIR} -COPY ${package_url} ${TEMP_DIR} -{% endif %} \ No newline at end of file diff --git a/templates/rhel8/source/url.dockerfile.j2 b/templates/rhel8/source/url.dockerfile.j2 deleted file mode 100644 index ed423e6e..00000000 --- a/templates/rhel8/source/url.dockerfile.j2 +++ /dev/null @@ -1,15 +0,0 @@ -# get product from URL -{%- if 'autobuild' == rhel_platform %} -ARG package_url={{ package_url }} -{% else %} -ARG package_url -{% endif -%} -ARG TEMP_DIR=/tmp/openvino_installer - -{% if 'openshift' == rhel_platform %} -COPY ${package_url} ${TEMP_DIR}/ -{% else %} -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} -{% endif %} \ No newline at end of file diff --git a/templates/ubuntu18/common/base.dockerfile.j2 b/templates/ubuntu18/common/base.dockerfile.j2 deleted file mode 100644 index 4a206312..00000000 --- a/templates/ubuntu18/common/base.dockerfile.j2 +++ /dev/null @@ -1,249 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:18.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - -{% for pre_command in pre_commands %} -{{ pre_command|safe }} -{% endfor %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - -{% if distribution == 'dev' %} - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3.8-dev \ - python3-pip \ - build-essential \ - cmake \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 -# hadolint ignore=DL3013 -RUN python3 -m pip install --upgrade pip setuptools --no-cache-dir -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="4.7.0" - - -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git --depth 1 -b ${OPENCV_BRANCH} - -WORKDIR /opt/repo/opencv/build -# hadolint ignore=SC2046 -RUN source "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=OFF \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - make -j$(nproc) && make install && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -{% endif %} - -FROM ubuntu:18.04 AS ov_base - -LABEL description="This is the {{ distribution }} image for {{ product_name }} on Ubuntu 18.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel /opt/intel - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" -{% if 'runtime' == distribution %} -ARG LGPL_DEPS= -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=cl_compiler -c=core" -{% elif 'dev' == distribution or 'dev_no_samples' == distribution %} -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=cl_compiler -c=core -c=dev" -{% else %} -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=opencv_req -c=python -c=opencv_opt -c=dlstreamer -c=cl_compiler" -{% endif %} - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get install -y ca-certificates --no-install-recommends && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -{% for command in commands %} -{{ command|safe }} -{% endfor %} - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below -{% for layer in layers %} -{{ layer|safe }} -{% endfor %} diff --git a/templates/ubuntu18/dist/dev.dockerfile.j2 b/templates/ubuntu18/dist/dev.dockerfile.j2 deleted file mode 100644 index 43b24165..00000000 --- a/templates/ubuntu18/dist/dev.dockerfile.j2 +++ /dev/null @@ -1,38 +0,0 @@ -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL - -RUN apt-get update && apt-get install -y --no-install-recommends git make && rm -rf /var/lib/apt/lists/* -# hadolint ignore=SC2102 -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b build && \ - cp -R build/intel64/Release samples_bin && cp build/intel64/Release/libformat_reader.so . && \ - rm -Rf build && mkdir -p build/intel64/Release/lib && mv libformat_reader.so build/intel64/Release/lib/ && rm -Rf samples_bin/lib/ - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from openvino.model_zoo import model_api" diff --git a/templates/ubuntu18/dist/dev_no_samples.dockerfile.j2 b/templates/ubuntu18/dist/dev_no_samples.dockerfile.j2 deleted file mode 100644 index 2dcd3f4b..00000000 --- a/templates/ubuntu18/dist/dev_no_samples.dockerfile.j2 +++ /dev/null @@ -1,18 +0,0 @@ -# dev no samples package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/ubuntu18/dist/runtime.dockerfile.j2 b/templates/ubuntu18/dist/runtime.dockerfile.j2 deleted file mode 100644 index 3a2381b8..00000000 --- a/templates/ubuntu18/dist/runtime.dockerfile.j2 +++ /dev/null @@ -1,14 +0,0 @@ -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/ubuntu18/env/dev_env.dockerfile.j2 b/templates/ubuntu18/env/dev_env.dockerfile.j2 deleted file mode 100644 index 13f0bb7d..00000000 --- a/templates/ubuntu18/env/dev_env.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig \ No newline at end of file diff --git a/templates/ubuntu18/env/dev_no_samples_env.dockerfile.j2 b/templates/ubuntu18/env/dev_no_samples_env.dockerfile.j2 deleted file mode 100644 index ca1f7ce7..00000000 --- a/templates/ubuntu18/env/dev_no_samples_env.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake diff --git a/templates/ubuntu18/env/proprietary_env.dockerfile.j2 b/templates/ubuntu18/env/proprietary_env.dockerfile.j2 deleted file mode 100644 index bc46ff13..00000000 --- a/templates/ubuntu18/env/proprietary_env.dockerfile.j2 +++ /dev/null @@ -1,17 +0,0 @@ -ENV GI_TYPELIB_PATH=/opt/intel/openvino/extras/gstreamer/lib/girepository-1.0 -ENV GST_PLUGIN_PATH=/opt/intel/openvino/extras/dl_streamer/lib:/opt/intel/openvino/extras/gstreamer/lib/gstreamer-1.0 -ENV GST_PLUGIN_SCANNER=/opt/intel/openvino/extras/gstreamer/bin/gstreamer-1.0/gst-plugin-scanner -ENV GST_SAMPLES_DIR=/opt/intel/openvino/extras/dl_streamer/samples -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LC_NUMERIC=C -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/dl_streamer/lib:/opt/intel/openvino/extras/gstreamer/lib:/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/lib/intel64 -ENV LIBRARY_PATH=/opt/intel/openvino/extras/dl_streamer/lib:/opt/intel/openvino/extras/gstreamer/lib: -ENV MODELS_PATH=/root/intel/dl_streamer/models -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/opt/intel/openvino/extras/gstreamer/bin:/opt/intel/openvino/extras/gstreamer/bin/gstreamer-1.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PKG_CONFIG_PATH=/opt/intel/openvino/extras/dl_streamer/lib/pkgconfig:/opt/intel/openvino/extras/gstreamer/lib/pkgconfig: -ENV PYTHONPATH=/opt/intel/openvino/python/python3.6:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/dl_streamer/python:/opt/intel/openvino/extras/gstreamer/lib/python3.8/site-packages:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake \ No newline at end of file diff --git a/templates/ubuntu18/env/runtime_env.dockerfile.j2 b/templates/ubuntu18/env/runtime_env.dockerfile.j2 deleted file mode 100644 index 0b8ca84d..00000000 --- a/templates/ubuntu18/env/runtime_env.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig \ No newline at end of file diff --git a/templates/ubuntu18/hw/cpu.dockerfile.j2 b/templates/ubuntu18/hw/cpu.dockerfile.j2 deleted file mode 100644 index f0a88068..00000000 --- a/templates/ubuntu18/hw/cpu.dockerfile.j2 +++ /dev/null @@ -1 +0,0 @@ -# for CPU \ No newline at end of file diff --git a/templates/ubuntu18/hw/gpu.dockerfile.j2 b/templates/ubuntu18/hw/gpu.dockerfile.j2 deleted file mode 100644 index 55477398..00000000 --- a/templates/ubuntu18/hw/gpu.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# for GPU -ARG TEMP_DIR=/tmp/opencl - -WORKDIR ${INTEL_OPENVINO_DIR}/install_dependencies -RUN ./install_NEO_OCL_driver.sh --no_numa -y && \ - rm -rf /var/lib/apt/lists/* diff --git a/templates/ubuntu18/hw/hddl.dockerfile.j2 b/templates/ubuntu18/hw/hddl.dockerfile.j2 deleted file mode 100644 index ec9c6fd5..00000000 --- a/templates/ubuntu18/hw/hddl.dockerfile.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# for HDDL -WORKDIR /tmp -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - libboost-filesystem1.65-dev \ - libboost-program-options1.65-dev \ - libboost-thread1.65-dev \ - libjson-c3 libxxf86vm-dev && \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* \ No newline at end of file diff --git a/templates/ubuntu18/hw/pre_vpu.dockerfile.j2 b/templates/ubuntu18/hw/pre_vpu.dockerfile.j2 deleted file mode 100644 index e62f9bf3..00000000 --- a/templates/ubuntu18/hw/pre_vpu.dockerfile.j2 +++ /dev/null @@ -1,20 +0,0 @@ -# for VPU -ARG BUILD_DEPENDENCIES="autoconf \ - automake \ - build-essential \ - libtool \ - unzip" - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${BUILD_DEPENDENCIES} && \ - rm -rf /var/lib/apt/lists/* - -WORKDIR /opt -RUN curl -L https://github.com/libusb/libusb/archive/v1.0.22.zip --output v1.0.22.zip && \ - unzip v1.0.22.zip && rm -rf v1.0.22.zip - -WORKDIR /opt/libusb-1.0.22 -RUN ./bootstrap.sh && \ - ./configure --disable-udev --enable-shared && \ - make -j4 \ No newline at end of file diff --git a/templates/ubuntu18/hw/vpu.dockerfile.j2 b/templates/ubuntu18/hw/vpu.dockerfile.j2 deleted file mode 100644 index c9f6b8ed..00000000 --- a/templates/ubuntu18/hw/vpu.dockerfile.j2 +++ /dev/null @@ -1,44 +0,0 @@ -# for VPU -ARG LGPL_DEPS=udev - -WORKDIR /thirdparty - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > no_vpu_packages.txt && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > vpu_packages.txt && \ - grep -v -f no_vpu_packages.txt vpu_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm -rf /var/lib/apt/lists/* - -COPY --from=base /opt/libusb-1.0.22 /opt/libusb-1.0.22 - -# libglib2.0-dev package that is required to build dl_streamer samples -WORKDIR /opt/libusb-1.0.22/libusb -RUN apt-get update && \ - apt-get install -y --no-install-recommends binutils && \ - /bin/mkdir -p '/usr/local/lib' && \ - /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' && \ - /bin/mkdir -p '/usr/local/include/libusb-1.0' && \ - /usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0' && \ - /bin/mkdir -p '/usr/local/lib/pkgconfig' &&\ - apt-get autoremove -y binutils && \ - apt-get install libglib2.0-dev g++ -y --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/libusb-1.0.22/ -RUN /usr/bin/install -c -m 644 libusb-1.0.pc '/usr/local/lib/pkgconfig' && \ - cp ${INTEL_OPENVINO_DIR}/install_dependencies/97-myriad-usbboot.rules /etc/udev/rules.d/ && \ - ldconfig \ No newline at end of file diff --git a/templates/ubuntu18/install/copy.dockerfile.j2 b/templates/ubuntu18/install/copy.dockerfile.j2 deleted file mode 100644 index 0ac650a4..00000000 --- a/templates/ubuntu18/install/copy.dockerfile.j2 +++ /dev/null @@ -1,21 +0,0 @@ -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN find "${TEMP_DIR}" -name "*.tgz" -o -name "*.tar.gz" -exec tar -xzf {} \; && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo $OV_BUILD | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf ${TEMP_DIR} && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" -{% if no_samples is defined or 'dev_no_samples' == distribution %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/samples -{% endif %} \ No newline at end of file diff --git a/templates/ubuntu18/install/install.dockerfile.j2 b/templates/ubuntu18/install/install.dockerfile.j2 deleted file mode 100644 index 97b0caad..00000000 --- a/templates/ubuntu18/install/install.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# install product by installation script -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# hadolint ignore=DL3008, SC2211 -RUN chmod +x l_openvino*.sh && \ - ./l_openvino*.sh -a -s --eula accept && \ - mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \ - OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR} -{% if no_samples is defined or 'dev_no_samples' == distribution %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/samples -{% endif %} \ No newline at end of file diff --git a/templates/ubuntu18/layers/benchmark.dockerfile.j2 b/templates/ubuntu18/layers/benchmark.dockerfile.j2 deleted file mode 100644 index 1bdae213..00000000 --- a/templates/ubuntu18/layers/benchmark.dockerfile.j2 +++ /dev/null @@ -1,17 +0,0 @@ -# benchmark app package - -USER root - -RUN apt-get update && \ - apt install -y sudo && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y dev && \ - rm -rf /var/lib/apt/lists/* - -RUN sed -i 's+$HOME/inference_engine_${samples_type}_samples_build+/opt/intel/openvino/samples/cpp/samples_build+g' /opt/intel/openvino/samples/cpp/build_samples.sh && \ - /opt/intel/openvino/samples/cpp/build_samples.sh - -# Post-installation cleanup -RUN rm -rf /tmp && mkdir /tmp - -USER openvino -WORKDIR /opt/intel/openvino/samples/cpp/samples_build/intel64/Release \ No newline at end of file diff --git a/templates/ubuntu18/layers/wheel.dockerfile.j2 b/templates/ubuntu18/layers/wheel.dockerfile.j2 deleted file mode 100644 index 7393deee..00000000 --- a/templates/ubuntu18/layers/wheel.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -# install custom wheel -USER root - -ARG wheel_url -ADD ${wheel_url} /tmp/custom_wheels/ -RUN python3 -m pip install --no-cache-dir /tmp/custom_wheels/* && \ - rm -rf /tmp/* - -USER openvino \ No newline at end of file diff --git a/templates/ubuntu18/python/python38.dockerfile.j2 b/templates/ubuntu18/python/python38.dockerfile.j2 deleted file mode 100644 index d1e007db..00000000 --- a/templates/ubuntu18/python/python38.dockerfile.j2 +++ /dev/null @@ -1,5 +0,0 @@ -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip setuptools -RUN update-alternatives --install /usr/bin/python3 python /usr/bin/python3.8 2 \ No newline at end of file diff --git a/templates/ubuntu18/source/local.dockerfile.j2 b/templates/ubuntu18/source/local.dockerfile.j2 deleted file mode 100644 index 78dff09e..00000000 --- a/templates/ubuntu18/source/local.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# get product from local archive -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -COPY ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/ubuntu18/source/url.dockerfile.j2 b/templates/ubuntu18/source/url.dockerfile.j2 deleted file mode 100644 index 3b3685d2..00000000 --- a/templates/ubuntu18/source/url.dockerfile.j2 +++ /dev/null @@ -1,7 +0,0 @@ -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/ubuntu20/common/base.dockerfile.j2 b/templates/ubuntu20/common/base.dockerfile.j2 deleted file mode 100644 index d6308672..00000000 --- a/templates/ubuntu20/common/base.dockerfile.j2 +++ /dev/null @@ -1,259 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:20.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - -{% for pre_command in pre_commands %} -{{ pre_command|safe }} -{% endfor %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - -{% if distribution == 'dev' %} - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libavresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" # 4.8 with a fix for building tests -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=OFF \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -{% endif %} - -FROM ubuntu:20.04 AS ov_base - -LABEL description="This is the {{ distribution }} image for {{ product_name }} on Ubuntu 20.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" -{% if 'runtime' == distribution %} -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" -{% elif 'dev' == distribution or 'dev_no_samples' == distribution %} -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" -{% else %} -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python" -{% endif %} - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -{% for command in commands %} -{{ command|safe }} -{% endfor %} - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below -{% for layer in layers %} -{{ layer|safe }} -{% endfor %} diff --git a/templates/ubuntu20/dist/dev.dockerfile.j2 b/templates/ubuntu20/dist/dev.dockerfile.j2 deleted file mode 100644 index 5a5e5d72..00000000 --- a/templates/ubuntu20/dist/dev.dockerfile.j2 +++ /dev/null @@ -1,42 +0,0 @@ -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino-tokenizers=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino-genai=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="${OPENVINO_WHEELS_VERSION}" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino-tokenizers=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino-genai=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" diff --git a/templates/ubuntu20/dist/dev_no_samples.dockerfile.j2 b/templates/ubuntu20/dist/dev_no_samples.dockerfile.j2 deleted file mode 100644 index 2dcd3f4b..00000000 --- a/templates/ubuntu20/dist/dev_no_samples.dockerfile.j2 +++ /dev/null @@ -1,18 +0,0 @@ -# dev no samples package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/ubuntu20/dist/runtime.dockerfile.j2 b/templates/ubuntu20/dist/runtime.dockerfile.j2 deleted file mode 100644 index d7e9780e..00000000 --- a/templates/ubuntu20/dist/runtime.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/ubuntu20/env/dev_env.dockerfile.j2 b/templates/ubuntu20/env/dev_env.dockerfile.j2 deleted file mode 100644 index 481a0712..00000000 --- a/templates/ubuntu20/env/dev_env.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV OV_TOKENIZER_PREBUILD_EXTENSION_PATH=/opt/intel/openvino/runtime/lib/intel64/libopenvino_tokenizers.so -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig diff --git a/templates/ubuntu20/env/dev_no_samples_env.dockerfile.j2 b/templates/ubuntu20/env/dev_no_samples_env.dockerfile.j2 deleted file mode 100644 index 63696ad7..00000000 --- a/templates/ubuntu20/env/dev_no_samples_env.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake \ No newline at end of file diff --git a/templates/ubuntu20/env/runtime_env.dockerfile.j2 b/templates/ubuntu20/env/runtime_env.dockerfile.j2 deleted file mode 100644 index 476d274d..00000000 --- a/templates/ubuntu20/env/runtime_env.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV OV_TOKENIZER_PREBUILD_EXTENSION_PATH=/opt/intel/openvino/runtime/lib/intel64/libopenvino_tokenizers.so -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig diff --git a/templates/ubuntu20/hw/cpu.dockerfile.j2 b/templates/ubuntu20/hw/cpu.dockerfile.j2 deleted file mode 100644 index f0a88068..00000000 --- a/templates/ubuntu20/hw/cpu.dockerfile.j2 +++ /dev/null @@ -1 +0,0 @@ -# for CPU \ No newline at end of file diff --git a/templates/ubuntu20/hw/gpu.dockerfile.j2 b/templates/ubuntu20/hw/gpu.dockerfile.j2 deleted file mode 100644 index 91ec8a37..00000000 --- a/templates/ubuntu20/hw/gpu.dockerfile.j2 +++ /dev/null @@ -1,14 +0,0 @@ -# for GPU - -RUN apt-get update && apt-get install -y --no-install-recommends gpg gpg-agent && \ - curl https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg && \ - echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal-legacy main' | tee /etc/apt/sources.list.d/intel.gpu.focal.list && \ - apt-get update && \ - apt-get install -y --no-install-recommends \ - intel-opencl-icd=22.43.24595.35+i538~20.04 \ - intel-level-zero-gpu=1.3.24595.35+i538~20.04 \ - level-zero=1.8.8+i524~u20.04 \ - ocl-icd-libopencl1 && \ - apt-get purge gpg gpg-agent --yes && apt-get --yes autoremove && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* diff --git a/templates/ubuntu20/hw/hddl.dockerfile.j2 b/templates/ubuntu20/hw/hddl.dockerfile.j2 deleted file mode 100644 index 3f520b98..00000000 --- a/templates/ubuntu20/hw/hddl.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -# for HDDL -WORKDIR /tmp -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - libboost-filesystem-dev \ - libboost-program-options-dev \ - libboost-thread-dev \ - libjson-c4 \ - libxxf86vm-dev && \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* \ No newline at end of file diff --git a/templates/ubuntu20/hw/pre_vpu.dockerfile.j2 b/templates/ubuntu20/hw/pre_vpu.dockerfile.j2 deleted file mode 100644 index e62f9bf3..00000000 --- a/templates/ubuntu20/hw/pre_vpu.dockerfile.j2 +++ /dev/null @@ -1,20 +0,0 @@ -# for VPU -ARG BUILD_DEPENDENCIES="autoconf \ - automake \ - build-essential \ - libtool \ - unzip" - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${BUILD_DEPENDENCIES} && \ - rm -rf /var/lib/apt/lists/* - -WORKDIR /opt -RUN curl -L https://github.com/libusb/libusb/archive/v1.0.22.zip --output v1.0.22.zip && \ - unzip v1.0.22.zip && rm -rf v1.0.22.zip - -WORKDIR /opt/libusb-1.0.22 -RUN ./bootstrap.sh && \ - ./configure --disable-udev --enable-shared && \ - make -j4 \ No newline at end of file diff --git a/templates/ubuntu20/hw/vpu.dockerfile.j2 b/templates/ubuntu20/hw/vpu.dockerfile.j2 deleted file mode 100644 index fd162106..00000000 --- a/templates/ubuntu20/hw/vpu.dockerfile.j2 +++ /dev/null @@ -1,38 +0,0 @@ -# for VPU -ARG LGPL_DEPS=udev - -WORKDIR /thirdparty - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > no_vpu_packages.txt && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > vpu_packages.txt && \ - grep -v -f no_vpu_packages.txt vpu_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm -rf /var/lib/apt/lists/* - -COPY --from=base /opt/libusb-1.0.22 /opt/libusb-1.0.22 - -WORKDIR /opt/libusb-1.0.22/libusb -RUN /bin/mkdir -p '/usr/local/lib' && \ - /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' && \ - /bin/mkdir -p '/usr/local/include/libusb-1.0' && \ - /usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0' && \ - /bin/mkdir -p '/usr/local/lib/pkgconfig' - -WORKDIR /opt/libusb-1.0.22/ -RUN /usr/bin/install -c -m 644 libusb-1.0.pc '/usr/local/lib/pkgconfig' && \ - cp ${INTEL_OPENVINO_DIR}/install_dependencies/97-myriad-usbboot.rules /etc/udev/rules.d/ && \ - ldconfig \ No newline at end of file diff --git a/templates/ubuntu20/install/copy.dockerfile.j2 b/templates/ubuntu20/install/copy.dockerfile.j2 deleted file mode 100644 index 377e21c6..00000000 --- a/templates/ubuntu20/install/copy.dockerfile.j2 +++ /dev/null @@ -1,21 +0,0 @@ -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN find "${TEMP_DIR}" \( -name "*.tgz" -o -name "*.tar.gz" \) -exec tar -xzf {} \; && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" -{% if no_samples is defined or 'dev_no_samples' == distribution %} -RUN rm -rf "${INTEL_OPENVINO_DIR}/samples" -{% endif %} diff --git a/templates/ubuntu20/install/install.dockerfile.j2 b/templates/ubuntu20/install/install.dockerfile.j2 deleted file mode 100644 index 97b0caad..00000000 --- a/templates/ubuntu20/install/install.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# install product by installation script -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# hadolint ignore=DL3008, SC2211 -RUN chmod +x l_openvino*.sh && \ - ./l_openvino*.sh -a -s --eula accept && \ - mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \ - OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR} -{% if no_samples is defined or 'dev_no_samples' == distribution %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/samples -{% endif %} \ No newline at end of file diff --git a/templates/ubuntu20/layers/benchmark.dockerfile.j2 b/templates/ubuntu20/layers/benchmark.dockerfile.j2 deleted file mode 100644 index 1bdae213..00000000 --- a/templates/ubuntu20/layers/benchmark.dockerfile.j2 +++ /dev/null @@ -1,17 +0,0 @@ -# benchmark app package - -USER root - -RUN apt-get update && \ - apt install -y sudo && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y dev && \ - rm -rf /var/lib/apt/lists/* - -RUN sed -i 's+$HOME/inference_engine_${samples_type}_samples_build+/opt/intel/openvino/samples/cpp/samples_build+g' /opt/intel/openvino/samples/cpp/build_samples.sh && \ - /opt/intel/openvino/samples/cpp/build_samples.sh - -# Post-installation cleanup -RUN rm -rf /tmp && mkdir /tmp - -USER openvino -WORKDIR /opt/intel/openvino/samples/cpp/samples_build/intel64/Release \ No newline at end of file diff --git a/templates/ubuntu20/layers/wheel.dockerfile.j2 b/templates/ubuntu20/layers/wheel.dockerfile.j2 deleted file mode 100644 index 7393deee..00000000 --- a/templates/ubuntu20/layers/wheel.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -# install custom wheel -USER root - -ARG wheel_url -ADD ${wheel_url} /tmp/custom_wheels/ -RUN python3 -m pip install --no-cache-dir /tmp/custom_wheels/* && \ - rm -rf /tmp/* - -USER openvino \ No newline at end of file diff --git a/templates/ubuntu20/python/python38.dockerfile.j2 b/templates/ubuntu20/python/python38.dockerfile.j2 deleted file mode 100644 index 74c59635..00000000 --- a/templates/ubuntu20/python/python38.dockerfile.j2 +++ /dev/null @@ -1,4 +0,0 @@ -# setup Python -ENV PYTHON_VER python3.8 - -RUN ${PYTHON_VER} -m pip install --upgrade pip \ No newline at end of file diff --git a/templates/ubuntu20/source/local.dockerfile.j2 b/templates/ubuntu20/source/local.dockerfile.j2 deleted file mode 100644 index 78dff09e..00000000 --- a/templates/ubuntu20/source/local.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# get product from local archive -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -COPY ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/ubuntu20/source/url.dockerfile.j2 b/templates/ubuntu20/source/url.dockerfile.j2 deleted file mode 100644 index 3b3685d2..00000000 --- a/templates/ubuntu20/source/url.dockerfile.j2 +++ /dev/null @@ -1,7 +0,0 @@ -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/ubuntu22/common/base.dockerfile.j2 b/templates/ubuntu22/common/base.dockerfile.j2 deleted file mode 100644 index 8e97db33..00000000 --- a/templates/ubuntu22/common/base.dockerfile.j2 +++ /dev/null @@ -1,265 +0,0 @@ -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM ubuntu:22.04 AS base - -# hadolint ignore=DL3002 -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# hadolint ignore=DL3008 -RUN apt-get update && \ - apt-get install -y --no-install-recommends curl tzdata ca-certificates && \ - rm -rf /var/lib/apt/lists/* - -{% for pre_command in pre_commands %} -{{ pre_command|safe }} -{% endfor %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/.distribution && mkdir ${INTEL_OPENVINO_DIR}/.distribution && \ - touch ${INTEL_OPENVINO_DIR}/.distribution/docker -# ----------------- - -{% if distribution == 'dev' %} - -FROM base AS opencv - -LABEL description="This is the dev image for OpenCV building with OpenVINO Runtime backend" -LABEL vendor="Intel Corporation" - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -# hadolint ignore=DL3008 -RUN apt-get update; \ - apt-get install -y --no-install-recommends \ - git \ - python3-dev \ - python3-pip \ - build-essential \ - cmake \ - ninja-build \ - libgtk-3-dev \ - libpng-dev \ - libjpeg-dev \ - libwebp-dev \ - libtiff5-dev \ - libopenexr-dev \ - libopenblas-dev \ - libx11-dev \ - libavutil-dev \ - libavcodec-dev \ - libavformat-dev \ - libswscale-dev \ - libswresample-dev \ - libtbb2 \ - libssl-dev \ - libva-dev \ - libmfx-dev \ - libgstreamer1.0-dev \ - libgstreamer-plugins-base1.0-dev && \ - rm -rf /var/lib/apt/lists/* - -RUN python3 -m pip install --no-cache-dir numpy==1.23.1 - -ARG OPENCV_BRANCH="377be68d923e40900ac5526242bcf221e3f355e5" # 4.8 with a fix for building tests -WORKDIR /opt/repo -RUN git clone https://github.com/opencv/opencv.git -WORKDIR /opt/repo/opencv -RUN git checkout ${OPENCV_BRANCH} -WORKDIR /opt/repo/opencv/build - -# hadolint ignore=SC1091 -RUN . "${INTEL_OPENVINO_DIR}"/setupvars.sh; \ - cmake -G Ninja \ - -D BUILD_INFO_SKIP_EXTRA_MODULES=ON \ - -D BUILD_EXAMPLES=OFF \ - -D BUILD_JASPER=OFF \ - -D BUILD_JAVA=OFF \ - -D BUILD_JPEG=ON \ - -D BUILD_APPS_LIST=version \ - -D BUILD_opencv_apps=ON \ - -D BUILD_opencv_java=OFF \ - -D BUILD_OPENEXR=OFF \ - -D BUILD_PNG=ON \ - -D BUILD_TBB=OFF \ - -D BUILD_WEBP=OFF \ - -D BUILD_ZLIB=ON \ - -D BUILD_TESTS=ON \ - -D WITH_1394=OFF \ - -D WITH_CUDA=OFF \ - -D WITH_EIGEN=OFF \ - -D WITH_GPHOTO2=OFF \ - -D WITH_GSTREAMER=ON \ - -D OPENCV_GAPI_GSTREAMER=OFF \ - -D WITH_GTK_2_X=OFF \ - -D WITH_IPP=ON \ - -D WITH_JASPER=OFF \ - -D WITH_LAPACK=OFF \ - -D WITH_MATLAB=OFF \ - -D WITH_MFX=ON \ - -D WITH_OPENCLAMDBLAS=OFF \ - -D WITH_OPENCLAMDFFT=OFF \ - -D WITH_OPENEXR=OFF \ - -D WITH_OPENJPEG=OFF \ - -D WITH_QUIRC=OFF \ - -D WITH_TBB=OFF \ - -D WITH_TIFF=OFF \ - -D WITH_VTK=OFF \ - -D WITH_WEBP=OFF \ - -D CMAKE_USE_RELATIVE_PATHS=ON \ - -D CMAKE_SKIP_INSTALL_RPATH=ON \ - -D ENABLE_BUILD_HARDENING=ON \ - -D ENABLE_CONFIG_VERIFICATION=ON \ - -D ENABLE_PRECOMPILED_HEADERS=OFF \ - -D ENABLE_CXX11=ON \ - -D INSTALL_PDB=ON \ - -D INSTALL_TESTS=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D INSTALL_PYTHON_EXAMPLES=OFF \ - -D CMAKE_INSTALL_PREFIX=install \ - -D OPENCV_SKIP_PKGCONFIG_GENERATION=ON \ - -D OPENCV_SKIP_PYTHON_LOADER=OFF \ - -D OPENCV_SKIP_CMAKE_ROOT_CONFIG=ON \ - -D OPENCV_GENERATE_SETUPVARS=OFF \ - -D OPENCV_BIN_INSTALL_PATH=bin \ - -D OPENCV_INCLUDE_INSTALL_PATH=include \ - -D OPENCV_LIB_INSTALL_PATH=lib \ - -D OPENCV_CONFIG_INSTALL_PATH=cmake \ - -D OPENCV_3P_LIB_INSTALL_PATH=3rdparty \ - -D OPENCV_DOC_INSTALL_PATH=doc \ - -D OPENCV_OTHER_INSTALL_PATH=etc \ - -D OPENCV_LICENSES_INSTALL_PATH=etc/licenses \ - -D OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT=ON \ - -D BUILD_opencv_world=OFF \ - -D BUILD_opencv_python2=OFF \ - -D BUILD_opencv_python3=ON \ - -D BUILD_opencv_dnn=OFF \ - -D BUILD_opencv_gapi=OFF \ - -D PYTHON3_PACKAGES_PATH=install/python/python3 \ - -D PYTHON3_LIMITED_API=ON \ - -D HIGHGUI_PLUGIN_LIST=all \ - -D OPENCV_PYTHON_INSTALL_PATH=python \ - -D CPU_BASELINE=SSE4_2 \ - -D OPENCV_IPP_GAUSSIAN_BLUR=ON \ - -D WITH_INF_ENGINE=ON \ - -D InferenceEngine_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D ngraph_DIR="${INTEL_OPENVINO_DIR}"/runtime/cmake/ \ - -D INF_ENGINE_RELEASE=2022010000 \ - -D VIDEOIO_PLUGIN_LIST=ffmpeg,gstreamer,mfx \ - -D CMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \ - -D CMAKE_BUILD_TYPE=Release /opt/repo/opencv && \ - ninja -j "$(nproc)" && cmake --install . && \ - rm -Rf install/bin install/etc/samples - -WORKDIR /opt/repo/opencv/build/install -CMD ["/bin/bash"] -# ------------------------------------------------------------------------------------------------- -{% endif %} - -FROM ubuntu:22.04 AS ov_base - -LABEL description="This is the {{ distribution }} image for {{ product_name }} on Ubuntu 22.04 LTS" -LABEL vendor="Intel Corporation" - -USER root -WORKDIR / - -SHELL ["/bin/bash", "-xo", "pipefail", "-c"] - -ENV DEBIAN_FRONTEND=noninteractive - -# Creating user openvino and adding it to groups "video" and "users" to use GPU and VPU -RUN sed -ri -e 's@^UMASK[[:space:]]+[[:digit:]]+@UMASK 000@g' /etc/login.defs && \ - grep -E "^UMASK" /etc/login.defs && useradd -ms /bin/bash -G video,users openvino && \ - chown openvino -R /home/openvino - -RUN mkdir /opt/intel - -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -COPY --from=base /opt/intel/ /opt/intel/ - -WORKDIR /thirdparty - -ARG INSTALL_SOURCES="no" - -ARG DEPS="tzdata \ - curl" -{% if 'runtime' == distribution %} -ARG LGPL_DEPS="" -ARG INSTALL_PACKAGES="-c=python -c=core" -{% elif 'dev' == distribution or 'dev_no_samples' == distribution %} -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" -{% else %} -ARG LGPL_DEPS="g++ \ - gcc \ - libc6-dev" -ARG INSTALL_PACKAGES="-c=python" -{% endif %} - -# hadolint ignore=DL3008 -RUN apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > base_packages.txt && \ - apt-get install -y --no-install-recommends ${DEPS} && \ - rm -rf /var/lib/apt/lists/* - -RUN apt-get update && apt-get reinstall -y ca-certificates && rm -rf /var/lib/apt/lists/* && update-ca-certificates - -# hadolint ignore=DL3008, SC2012 -RUN apt-get update && \ - apt-get install -y --no-install-recommends ${LGPL_DEPS} && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y ${INSTALL_PACKAGES} && \ - if [ "$INSTALL_SOURCES" = "yes" ]; then \ - sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \ - apt-get update && \ - dpkg --get-selections | grep -v deinstall | awk '{print $1}' > all_packages.txt && \ - grep -v -f base_packages.txt all_packages.txt | while read line; do \ - package=$(echo $line); \ - name=(${package//:/ }); \ - grep -l GPL /usr/share/doc/${name[0]}/copyright; \ - exit_status=$?; \ - if [ $exit_status -eq 0 ]; then \ - apt-get source -q --download-only $package; \ - fi \ - done && \ - echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; fi && \ - rm /usr/lib/python3.*/lib-dynload/readline.cpython-3*-gnu.so && rm -rf /var/lib/apt/lists/* - -RUN curl -L -O https://github.com/oneapi-src/oneTBB/releases/download/v2021.9.0/oneapi-tbb-2021.9.0-lin.tgz && \ - tar -xzf oneapi-tbb-2021.9.0-lin.tgz&& \ - cp oneapi-tbb-2021.9.0/lib/intel64/gcc4.8/libtbb.so* /opt/intel/openvino/runtime/lib/intel64/ && \ - rm -Rf oneapi-tbb-2021.9.0* - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -RUN if [ "$INSTALL_SOURCES" = "no" ]; then \ - echo "This image doesn't contain source for 3d party components under LGPL/GPL licenses. They are stored in https://storage.openvinotoolkit.org/repositories/openvino/ci_dependencies/container_gpl_sources/." > DockerImage_readme.txt ; \ - fi - -{% for command in commands %} -{{ command|safe }} -{% endfor %} - -# Post-installation cleanup and setting up OpenVINO environment variables -ENV LIBVA_DRIVER_NAME=iHD -ENV GST_VAAPI_ALL_DRIVERS=1 -ENV LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri - -RUN apt-get update && \ - apt-get autoremove -y gfortran && \ - rm -rf /var/lib/apt/lists/* - -USER openvino -WORKDIR ${INTEL_OPENVINO_DIR} -ENV DEBIAN_FRONTEND=noninteractive - -CMD ["/bin/bash"] - -# Setup custom layers below -{% for layer in layers %} -{{ layer|safe }} -{% endfor %} diff --git a/templates/ubuntu22/dist/dev.dockerfile.j2 b/templates/ubuntu22/dist/dev.dockerfile.j2 deleted file mode 100644 index b3f8c61d..00000000 --- a/templates/ubuntu22/dist/dev.dockerfile.j2 +++ /dev/null @@ -1,42 +0,0 @@ -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN apt-get update && apt-get install -y --no-install-recommends cmake make git && rm -rf /var/lib/apt/lists/* && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino-tokenizers=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino-genai=="${OPENVINO_WHEELS_VERSION}" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="${OPENVINO_WHEELS_VERSION}" --extra-index-url https://download.pytorch.org/whl/cpu; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino-tokenizers=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino-genai=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="${OPENVINO_WHEELS_VERSION}" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" --extra-index-url https://download.pytorch.org/whl/cpu; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing - -COPY --from=opencv /opt/repo/opencv/build/install ${INTEL_OPENVINO_DIR}/extras/opencv -RUN echo "export OpenCV_DIR=${INTEL_OPENVINO_DIR}/extras/opencv/cmake" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh"; \ - echo "export LD_LIBRARY_PATH=${INTEL_OPENVINO_DIR}/extras/opencv/lib:\$LD_LIBRARY_PATH" | tee -a "${INTEL_OPENVINO_DIR}/extras/opencv/setupvars.sh" - -# Install dependencies for OV::RemoteTensor -RUN apt-get update && apt-get install -y --no-install-recommends opencl-headers ocl-icd-opencl-dev && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* - -# build samples into ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin -WORKDIR ${INTEL_OPENVINO_DIR}/samples/cpp -RUN ./build_samples.sh -b /tmp/build -i ${INTEL_OPENVINO_DIR}/samples/cpp/samples_bin && \ - rm -Rf /tmp/build - -# add Model API package -# hadolint ignore=DL3013 -RUN git clone https://github.com/openvinotoolkit/open_model_zoo && \ - sed -i '/opencv-python/d' open_model_zoo/demos/common/python/requirements.txt && \ - pip3 --no-cache-dir install open_model_zoo/demos/common/python/ && \ - rm -Rf open_model_zoo && \ - python3 -c "from model_zoo import model_api" diff --git a/templates/ubuntu22/dist/dev_no_samples.dockerfile.j2 b/templates/ubuntu22/dist/dev_no_samples.dockerfile.j2 deleted file mode 100644 index 2dcd3f4b..00000000 --- a/templates/ubuntu22/dist/dev_no_samples.dockerfile.j2 +++ /dev/null @@ -1,18 +0,0 @@ -# dev no samples package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -# hadolint ignore=SC2102 -RUN ${PYTHON_VER} -m pip install --no-cache-dir cmake && \ - if [ -z "$OPENVINO_WHEELS_URL" ]; then \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino=="$OPENVINO_WHEELS_VERSION" && \ - ${PYTHON_VER} -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" ; \ - else \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" && \ - ${PYTHON_VER} -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]=="$OPENVINO_WHEELS_VERSION" --trusted-host=* --find-links "$OPENVINO_WHEELS_URL" ; \ - fi - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-dev.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-dev.txt ${INTEL_OPENVINO_DIR}/licensing -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/ubuntu22/dist/runtime.dockerfile.j2 b/templates/ubuntu22/dist/runtime.dockerfile.j2 deleted file mode 100644 index d7e9780e..00000000 --- a/templates/ubuntu22/dist/runtime.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# Install OpenVINO python API dependency -RUN ${PYTHON_VER} -m pip install --no-cache-dir numpy==1.24.4 - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles/{{os}}/third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/ubuntu22/env/dev_env.dockerfile.j2 b/templates/ubuntu22/env/dev_env.dockerfile.j2 deleted file mode 100644 index 3c29bc5a..00000000 --- a/templates/ubuntu22/env/dev_env.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/extras/opencv/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV OV_TOKENIZER_PREBUILD_EXTENSION_PATH=/opt/intel/openvino/runtime/lib/intel64/libopenvino_tokenizers.so -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig diff --git a/templates/ubuntu22/env/dev_no_samples_env.dockerfile.j2 b/templates/ubuntu22/env/dev_no_samples_env.dockerfile.j2 deleted file mode 100644 index 63696ad7..00000000 --- a/templates/ubuntu22/env/dev_no_samples_env.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -ENV HDDL_INSTALL_DIR=/opt/intel/openvino/runtime/3rdparty/hddl -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/extras/opencv/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/3rdparty/hddl/lib -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python/python3.8:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake \ No newline at end of file diff --git a/templates/ubuntu22/env/runtime_env.dockerfile.j2 b/templates/ubuntu22/env/runtime_env.dockerfile.j2 deleted file mode 100644 index 8f6f8a28..00000000 --- a/templates/ubuntu22/env/runtime_env.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -ENV InferenceEngine_DIR=/opt/intel/openvino/runtime/cmake -ENV LD_LIBRARY_PATH=/opt/intel/openvino/runtime/3rdparty/hddl/lib:/opt/intel/openvino/runtime/3rdparty/tbb/lib:/opt/intel/openvino/runtime/lib/intel64:/opt/intel/openvino/tools/compile_tool -ENV OpenCV_DIR=/opt/intel/openvino/extras/opencv/cmake -ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -ENV PYTHONPATH=/opt/intel/openvino/python:/opt/intel/openvino/python/python3:/opt/intel/openvino/extras/opencv/python -ENV TBB_DIR=/opt/intel/openvino/runtime/3rdparty/tbb/cmake -ENV ngraph_DIR=/opt/intel/openvino/runtime/cmake -ENV OpenVINO_DIR=/opt/intel/openvino/runtime/cmake -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino -ENV OV_TOKENIZER_PREBUILD_EXTENSION_PATH=/opt/intel/openvino/runtime/lib/intel64/libopenvino_tokenizers.so -ENV PKG_CONFIG_PATH=/opt/intel/openvino/runtime/lib/intel64/pkgconfig diff --git a/templates/ubuntu22/hw/cpu.dockerfile.j2 b/templates/ubuntu22/hw/cpu.dockerfile.j2 deleted file mode 100644 index f0a88068..00000000 --- a/templates/ubuntu22/hw/cpu.dockerfile.j2 +++ /dev/null @@ -1 +0,0 @@ -# for CPU \ No newline at end of file diff --git a/templates/ubuntu22/hw/gpu.dockerfile.j2 b/templates/ubuntu22/hw/gpu.dockerfile.j2 deleted file mode 100644 index 8c442bf7..00000000 --- a/templates/ubuntu22/hw/gpu.dockerfile.j2 +++ /dev/null @@ -1,13 +0,0 @@ -# for GPU -RUN apt-get update && \ - apt-get install -y --no-install-recommends ocl-icd-libopencl1 && \ - apt-get clean ; \ - rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* -# hadolint ignore=DL3003 -RUN mkdir /tmp/gpu_deps && cd /tmp/gpu_deps && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.05.25593.11/libigdgmm12_22.3.0_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-core_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13700.14/intel-igc-opencl_1.0.13700.14_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/intel-opencl-icd_23.13.26032.30_amd64.deb && \ - curl -L -O https://github.com/intel/compute-runtime/releases/download/23.13.26032.30/libigdgmm12_22.3.0_amd64.deb && \ - dpkg -i ./*.deb && rm -Rf /tmp/gpu_deps diff --git a/templates/ubuntu22/install/copy.dockerfile.j2 b/templates/ubuntu22/install/copy.dockerfile.j2 deleted file mode 100644 index 377e21c6..00000000 --- a/templates/ubuntu22/install/copy.dockerfile.j2 +++ /dev/null @@ -1,21 +0,0 @@ -# install product by copying archive content -ARG TEMP_DIR=/tmp/openvino_installer -ENV INTEL_OPENVINO_DIR=/opt/intel/openvino - -# Creating user openvino and adding it to groups"users" -RUN useradd -ms /bin/bash -G users openvino - -RUN find "${TEMP_DIR}" \( -name "*.tgz" -o -name "*.tar.gz" \) -exec tar -xzf {} \; && \ - OV_BUILD="$(find . -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d.\d+')" && \ - OV_YEAR="$(echo "$OV_BUILD" | grep -oP '^[^\d]*(\d+)')" && \ - OV_FOLDER="$(find . -maxdepth 1 -type d -name "*openvino*")" && \ - mkdir -p /opt/intel/openvino_"$OV_BUILD"/ && \ - cp -rf "$OV_FOLDER"/* /opt/intel/openvino_"$OV_BUILD"/ && \ - rm -rf "${TEMP_DIR:?}"/"$OV_FOLDER" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD"/ /opt/intel/openvino_"$OV_YEAR" && \ - rm -rf "${TEMP_DIR}" && \ - chown -R openvino /opt/intel/openvino_"$OV_BUILD" -{% if no_samples is defined or 'dev_no_samples' == distribution %} -RUN rm -rf "${INTEL_OPENVINO_DIR}/samples" -{% endif %} diff --git a/templates/ubuntu22/install/install.dockerfile.j2 b/templates/ubuntu22/install/install.dockerfile.j2 deleted file mode 100644 index 97b0caad..00000000 --- a/templates/ubuntu22/install/install.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# install product by installation script -ENV INTEL_OPENVINO_DIR /opt/intel/openvino - -# hadolint ignore=DL3008, SC2211 -RUN chmod +x l_openvino*.sh && \ - ./l_openvino*.sh -a -s --eula accept && \ - mv /opt/intel/openvino/installer /opt/intel/openvino_installer && rmdir /opt/intel/openvino && \ - OV_BUILD="$(find /opt/intel -maxdepth 1 -type d -name "*openvino*" | grep -oP '(?<=_)\d+.\d+.\d+.\d+')" && \ - ln --symbolic /opt/intel/openvino_"$OV_BUILD" /opt/intel/openvino && rm -rf ${TEMP_DIR} -{% if no_samples is defined or 'dev_no_samples' == distribution %} -RUN rm -rf ${INTEL_OPENVINO_DIR}/samples -{% endif %} \ No newline at end of file diff --git a/templates/ubuntu22/layers/benchmark.dockerfile.j2 b/templates/ubuntu22/layers/benchmark.dockerfile.j2 deleted file mode 100644 index 1bdae213..00000000 --- a/templates/ubuntu22/layers/benchmark.dockerfile.j2 +++ /dev/null @@ -1,17 +0,0 @@ -# benchmark app package - -USER root - -RUN apt-get update && \ - apt install -y sudo && \ - ${INTEL_OPENVINO_DIR}/install_dependencies/install_openvino_dependencies.sh -y dev && \ - rm -rf /var/lib/apt/lists/* - -RUN sed -i 's+$HOME/inference_engine_${samples_type}_samples_build+/opt/intel/openvino/samples/cpp/samples_build+g' /opt/intel/openvino/samples/cpp/build_samples.sh && \ - /opt/intel/openvino/samples/cpp/build_samples.sh - -# Post-installation cleanup -RUN rm -rf /tmp && mkdir /tmp - -USER openvino -WORKDIR /opt/intel/openvino/samples/cpp/samples_build/intel64/Release \ No newline at end of file diff --git a/templates/ubuntu22/layers/wheel.dockerfile.j2 b/templates/ubuntu22/layers/wheel.dockerfile.j2 deleted file mode 100644 index 7393deee..00000000 --- a/templates/ubuntu22/layers/wheel.dockerfile.j2 +++ /dev/null @@ -1,9 +0,0 @@ -# install custom wheel -USER root - -ARG wheel_url -ADD ${wheel_url} /tmp/custom_wheels/ -RUN python3 -m pip install --no-cache-dir /tmp/custom_wheels/* && \ - rm -rf /tmp/* - -USER openvino \ No newline at end of file diff --git a/templates/ubuntu22/python/python310.dockerfile.j2 b/templates/ubuntu22/python/python310.dockerfile.j2 deleted file mode 100644 index 881b13f9..00000000 --- a/templates/ubuntu22/python/python310.dockerfile.j2 +++ /dev/null @@ -1,4 +0,0 @@ -# setup Python -ENV PYTHON_VER python3.10 - -RUN ${PYTHON_VER} -m pip install --upgrade pip diff --git a/templates/ubuntu22/source/local.dockerfile.j2 b/templates/ubuntu22/source/local.dockerfile.j2 deleted file mode 100644 index 78dff09e..00000000 --- a/templates/ubuntu22/source/local.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# get product from local archive -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -COPY ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/ubuntu22/source/url.dockerfile.j2 b/templates/ubuntu22/source/url.dockerfile.j2 deleted file mode 100644 index 3b3685d2..00000000 --- a/templates/ubuntu22/source/url.dockerfile.j2 +++ /dev/null @@ -1,7 +0,0 @@ -# get product from URL -ARG package_url -ARG TEMP_DIR=/tmp/openvino_installer - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/windows20h2/cmake/cmake314.dockerfile.j2 b/templates/windows20h2/cmake/cmake314.dockerfile.j2 deleted file mode 100644 index 0d1b1e19..00000000 --- a/templates/windows20h2/cmake/cmake314.dockerfile.j2 +++ /dev/null @@ -1,15 +0,0 @@ -# setup CMake -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.14.7/cmake-3.14.7-win64-x64.msi -Proxy %HTTPS_PROXY% -OutFile %TMP%\\cmake-3.14.7-win64-x64.msi ; ` - Start-Process %TMP%\\cmake-3.14.7-win64-x64.msi -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.14.7-win64-x64.msi -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.14.7/cmake-3.14.7-win64-x64.msi -OutFile %TMP%\\cmake-3.14.7-win64-x64.msi ; ` - Start-Process %TMP%\\cmake-3.14.7-win64-x64.msi -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.14.7-win64-x64.msi -Force -{% endif %} -RUN SETX /M PATH "C:\Program Files\CMake\Bin;%PATH%" diff --git a/templates/windows20h2/cmake/cmake34.dockerfile.j2 b/templates/windows20h2/cmake/cmake34.dockerfile.j2 deleted file mode 100644 index ee3d7b4a..00000000 --- a/templates/windows20h2/cmake/cmake34.dockerfile.j2 +++ /dev/null @@ -1,15 +0,0 @@ -# setup CMake -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.4.3/cmake-3.4.3-win32-x86.exe -Proxy %HTTPS_PROXY% -OutFile %TMP%\\cmake-3.4.3-win32-x86.exe ; ` - Start-Process %TMP%\\cmake-3.4.3-win32-x86.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.4.3-win32-x86.exe -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.4.3/cmake-3.4.3-win32-x86.exe -OutFile %TMP%\\cmake-3.4.3-win32-x86.exe ; ` - Start-Process %TMP%\\cmake-3.4.3-win32-x86.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.4.3-win32-x86.exe -Force -{% endif %} -RUN SETX /M PATH "C:\Program Files\CMake\Bin;%PATH%" diff --git a/templates/windows20h2/common/base.dockerfile.j2 b/templates/windows20h2/common/base.dockerfile.j2 deleted file mode 100644 index cf567285..00000000 --- a/templates/windows20h2/common/base.dockerfile.j2 +++ /dev/null @@ -1,64 +0,0 @@ -# escape=` -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM mcr.microsoft.com/windows:20H2 AS base - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - -{% if HTTPS_PROXY is defined %} -ARG HTTPS_PROXY -{% endif %} - -{% for command in pre_commands %} -{{ command|safe }} -{% endfor %} - -# ----------------- -FROM mcr.microsoft.com/windows:20H2 AS ov_base - -LABEL description="This is the {{ distribution }} image for {{ product_name }} on Windows OS 20H2" -LABEL vendor="Intel Corporation" - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - -{% if HTTPS_PROXY is defined %} -ARG HTTPS_PROXY -{% endif %} - -{% for command in commands %} -{{ command|safe }} -{% endfor %} - -# install opencv -WORKDIR ${INTEL_OPENVINO_DIR} -RUN cmd /S /C curl -kL --output opencv-4.6.0-vc14_vc15.exe ` - https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe && ` - powershell.exe -Command Start-Process C:\intel\openvino\opencv-4.6.0-vc14_vc15.exe ` - -ArgumentList '-o"C:\\\\intel\\\\openvino\\\\extras\\\\" -y /quiet /norestart' -Wait && ` - del opencv-4.6.0-vc14_vc15.exe -ENV OpenCV_DIR C:\intel\openvino\extras\opencv\build - -RUN rmdir /s /q %INTEL_OPENVINO_DIR%\.distribution & mkdir %INTEL_OPENVINO_DIR%\.distribution && ` - copy /b NUL %INTEL_OPENVINO_DIR%\.distribution\docker - -WORKDIR ${INTEL_OPENVINO_DIR} - -# Post-installation cleanup -RUN powershell Remove-Item -Force -Recurse "%TEMP%\*" && ` - powershell Remove-Item -Force -Recurse "%TEMP_DIR%" && ` - rmdir /S /Q "%ProgramData%\Package Cache" - -USER ContainerUser - -CMD ["cmd.exe"] - -# Setup custom layers below -{% for layer in layers %} -{{ layer|safe }} -{% endfor %} \ No newline at end of file diff --git a/templates/windows20h2/dist/dev.dockerfile.j2 b/templates/windows20h2/dist/dev.dockerfile.j2 deleted file mode 100644 index 3f6ef629..00000000 --- a/templates/windows20h2/dist/dev.dockerfile.j2 +++ /dev/null @@ -1,11 +0,0 @@ -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% && ` - python -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --use-deprecated=legacy-resolver ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% && ` - python -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) diff --git a/templates/windows20h2/dist/runtime.dockerfile.j2 b/templates/windows20h2/dist/runtime.dockerfile.j2 deleted file mode 100644 index b2d77a00..00000000 --- a/templates/windows20h2/dist/runtime.dockerfile.j2 +++ /dev/null @@ -1,13 +0,0 @@ -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles\{{os}}\third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/windows20h2/hw/cpu.dockerfile.j2 b/templates/windows20h2/hw/cpu.dockerfile.j2 deleted file mode 100644 index f0a88068..00000000 --- a/templates/windows20h2/hw/cpu.dockerfile.j2 +++ /dev/null @@ -1 +0,0 @@ -# for CPU \ No newline at end of file diff --git a/templates/windows20h2/install/copy.dockerfile.j2 b/templates/windows20h2/install/copy.dockerfile.j2 deleted file mode 100644 index 90d230bf..00000000 --- a/templates/windows20h2/install/copy.dockerfile.j2 +++ /dev/null @@ -1,19 +0,0 @@ -# install product by copying archive content -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command ` - Expand-Archive -Path "./*.zip" -DestinationPath . -Force ; ` - $OV_FOLDER=(Get-ChildItem -Filter "*openvino*" -Directory).FullName ; ` - New-Item -Path C:\intel\ -ItemType Directory -Name openvino_%build_id% ; ` - Move-Item -Path $OV_FOLDER\* -Destination %INTEL_OPENVINO_DIR% ; ` - Remove-Item @("""./*.zip""",$OV_FOLDER) -Force -Recurse - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - }` - if ( -not (Test-Path -Path C:\intel\openvino_{{year}}) ) ` - {` - New-Item -Path C:\intel\openvino_{{year}} -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } \ No newline at end of file diff --git a/templates/windows20h2/install/install.dockerfile.j2 b/templates/windows20h2/install/install.dockerfile.j2 deleted file mode 100644 index 98798611..00000000 --- a/templates/windows20h2/install/install.dockerfile.j2 +++ /dev/null @@ -1,13 +0,0 @@ -# install product by installation script -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel - -RUN powershell.exe -Command ` - Start-Process "./*.exe" -ArgumentList '-s -f %INTEL_OPENVINO_DIR%\openvino_installer -a --silent --eula accept --install-dir %INTEL_OPENVINO_DIR%' -Wait - -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } \ No newline at end of file diff --git a/templates/windows20h2/msbuild/msbuild2019.dockerfile.j2 b/templates/windows20h2/msbuild/msbuild2019.dockerfile.j2 deleted file mode 100644 index e1ee5ec2..00000000 --- a/templates/windows20h2/msbuild/msbuild2019.dockerfile.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# setup MSBuild 2019 -ARG VS_DIR=/temp/msbuild2019 - -WORKDIR ${VS_DIR} -COPY scripts\msbuild2019\ ${VS_DIR} -RUN vs_buildtools.exe --quiet --norestart --wait --nocache --noUpdateInstaller --noWeb ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --channelUri C:\doesntExist.chman && powershell set-executionpolicy remotesigned diff --git a/templates/windows20h2/msbuild/msbuild2019_online.dockerfile.j2 b/templates/windows20h2/msbuild/msbuild2019_online.dockerfile.j2 deleted file mode 100644 index 783cb92b..00000000 --- a/templates/windows20h2/msbuild/msbuild2019_online.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned diff --git a/templates/windows20h2/python/pre_python38.dockerfile.j2 b/templates/windows20h2/python/pre_python38.dockerfile.j2 deleted file mode 100644 index 1d0493a1..00000000 --- a/templates/windows20h2/python/pre_python38.dockerfile.j2 +++ /dev/null @@ -1,26 +0,0 @@ -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip -Proxy %HTTPS_PROXY% ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip -Proxy %HTTPS_PROXY% ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip -Proxy %HTTPS_PROXY% ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force -{% endif %} - -RUN C:\cpython-3.8.12\PCbuild\get_externals.bat --python c:\python-38-10\python.exe && ` - rmdir /s /q C:\cpython-3.8.12\externals\libffi && mkdir C:\cpython-3.8.12\externals\libffi && ` - xcopy /s /y c:\cpython-bin-deps-1cf06233e3ceb49dc0a73c55e04b1174b436b632\* c:\cpython-3.8.12\externals\libffi\ && ` - break > C:\cpython-3.8.12\PCbuild\get_externals.bat - -RUN C:\cpython-3.8.12\PCbuild\build.bat -p x64 diff --git a/templates/windows20h2/python/python37.dockerfile.j2 b/templates/windows20h2/python/python37.dockerfile.j2 deleted file mode 100644 index a0df9829..00000000 --- a/templates/windows20h2/python/python37.dockerfile.j2 +++ /dev/null @@ -1,16 +0,0 @@ -# setup Python -ARG PYTHON_VER=python3.7 - -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe -Proxy %HTTPS_PROXY% -OutFile %TMP%\\python-3.7.exe ; ` - Start-Process %TMP%\\python-3.7.exe -ArgumentList '/passive InstallAllUsers=1 PrependPath=1 TargetDir=c:\\Python37' -Wait ; ` - Remove-Item %TMP%\\python-3.7.exe -Force -{% else %} -RUN powershell.exe -Command ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe -OutFile %TMP%\\python-3.7.exe ; ` - Start-Process %TMP%\\python-3.7.exe -ArgumentList '/passive InstallAllUsers=1 PrependPath=1 TargetDir=c:\\Python37' -Wait ; ` - Remove-Item %TMP%\\python-3.7.exe -Force -{% endif %} -# hadolint ignore=DL3013 -RUN python -m pip install --no-cache-dir --upgrade pip diff --git a/templates/windows20h2/python/python38.dockerfile.j2 b/templates/windows20h2/python/python38.dockerfile.j2 deleted file mode 100644 index e2b03dc8..00000000 --- a/templates/windows20h2/python/python38.dockerfile.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# setup Python -ARG PYTHON_VER=python3.8 - -COPY --from=base C:\cpython-3.8.12\PCbuild\amd64 c:\Python38 -COPY --from=base c:\cpython-3.8.12\Lib c:\Python38\Lib - -RUN setx /M path "%path%;C:\Python38;C:\Python38\Scripts" -# hadolint ignore=DL3013 -RUN python -m ensurepip --upgrade --default-pip && ` - python -m pip install --no-cache-dir --upgrade pip diff --git a/templates/windows20h2/redist/vs.dockerfile.j2 b/templates/windows20h2/redist/vs.dockerfile.j2 deleted file mode 100644 index c70ddd0a..00000000 --- a/templates/windows20h2/redist/vs.dockerfile.j2 +++ /dev/null @@ -1,14 +0,0 @@ -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -Proxy %HTTPS_PROXY% -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force -{% endif %} diff --git a/templates/windows20h2/source/local.dockerfile.j2 b/templates/windows20h2/source/local.dockerfile.j2 deleted file mode 100644 index 446f0ec0..00000000 --- a/templates/windows20h2/source/local.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# get product from local path -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -COPY ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/windows20h2/source/url.dockerfile.j2 b/templates/windows20h2/source/url.dockerfile.j2 deleted file mode 100644 index 24144b4e..00000000 --- a/templates/windows20h2/source/url.dockerfile.j2 +++ /dev/null @@ -1,7 +0,0 @@ -# download package from external URL -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/winserver2019/cmake/cmake314.dockerfile.j2 b/templates/winserver2019/cmake/cmake314.dockerfile.j2 deleted file mode 100644 index 0d1b1e19..00000000 --- a/templates/winserver2019/cmake/cmake314.dockerfile.j2 +++ /dev/null @@ -1,15 +0,0 @@ -# setup CMake -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.14.7/cmake-3.14.7-win64-x64.msi -Proxy %HTTPS_PROXY% -OutFile %TMP%\\cmake-3.14.7-win64-x64.msi ; ` - Start-Process %TMP%\\cmake-3.14.7-win64-x64.msi -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.14.7-win64-x64.msi -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.14.7/cmake-3.14.7-win64-x64.msi -OutFile %TMP%\\cmake-3.14.7-win64-x64.msi ; ` - Start-Process %TMP%\\cmake-3.14.7-win64-x64.msi -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.14.7-win64-x64.msi -Force -{% endif %} -RUN SETX /M PATH "C:\Program Files\CMake\Bin;%PATH%" diff --git a/templates/winserver2019/cmake/cmake34.dockerfile.j2 b/templates/winserver2019/cmake/cmake34.dockerfile.j2 deleted file mode 100644 index ee3d7b4a..00000000 --- a/templates/winserver2019/cmake/cmake34.dockerfile.j2 +++ /dev/null @@ -1,15 +0,0 @@ -# setup CMake -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.4.3/cmake-3.4.3-win32-x86.exe -Proxy %HTTPS_PROXY% -OutFile %TMP%\\cmake-3.4.3-win32-x86.exe ; ` - Start-Process %TMP%\\cmake-3.4.3-win32-x86.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.4.3-win32-x86.exe -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.4.3/cmake-3.4.3-win32-x86.exe -OutFile %TMP%\\cmake-3.4.3-win32-x86.exe ; ` - Start-Process %TMP%\\cmake-3.4.3-win32-x86.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item %TMP%\\cmake-3.4.3-win32-x86.exe -Force -{% endif %} -RUN SETX /M PATH "C:\Program Files\CMake\Bin;%PATH%" diff --git a/templates/winserver2019/common/base.dockerfile.j2 b/templates/winserver2019/common/base.dockerfile.j2 deleted file mode 100644 index 7d33e131..00000000 --- a/templates/winserver2019/common/base.dockerfile.j2 +++ /dev/null @@ -1,64 +0,0 @@ -# escape=` -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS base - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - -{% if HTTPS_PROXY is defined %} -ARG HTTPS_PROXY -{% endif %} - -{% for command in pre_commands %} -{{ command|safe }} -{% endfor %} - -# ----------------- -FROM mcr.microsoft.com/windows/servercore:ltsc2019 AS ov_base - -LABEL description="This is the {{ distribution }} image for {{ product_name }} on Windows Server LTSC 2019" -LABEL vendor="Intel Corporation" - -# Restore the default Windows shell for correct batch processing. -SHELL ["cmd", "/S", "/C"] - -USER ContainerAdministrator - -{% if HTTPS_PROXY is defined %} -ARG HTTPS_PROXY -{% endif %} - -{% for command in commands %} -{{ command|safe }} -{% endfor %} - -# install opencv -WORKDIR ${INTEL_OPENVINO_DIR} -RUN cmd /S /C curl -kL --output opencv-4.6.0-vc14_vc15.exe ` - https://github.com/opencv/opencv/releases/download/4.6.0/opencv-4.6.0-vc14_vc15.exe && ` - powershell.exe -Command Start-Process C:\intel\openvino\opencv-4.6.0-vc14_vc15.exe ` - -ArgumentList '-o"C:\\\\intel\\\\openvino\\\\extras\\\\" -y /quiet /norestart' -Wait && ` - del opencv-4.6.0-vc14_vc15.exe -ENV OpenCV_DIR C:\intel\openvino\extras\opencv\build - -RUN rmdir /s /q %INTEL_OPENVINO_DIR%\.distribution & mkdir %INTEL_OPENVINO_DIR%\.distribution && ` - copy /b NUL %INTEL_OPENVINO_DIR%\.distribution\docker - -WORKDIR ${INTEL_OPENVINO_DIR} - -# Post-installation cleanup -RUN powershell Remove-Item -Force -Recurse "%TEMP%\*" && ` - powershell Remove-Item -Force -Recurse "%TEMP_DIR%" && ` - rmdir /S /Q "%ProgramData%\Package Cache" - -USER ContainerUser - -CMD ["cmd.exe"] - -# Setup custom layers below -{% for layer in layers %} -{{ layer|safe }} -{% endfor %} \ No newline at end of file diff --git a/templates/winserver2019/dist/dev.dockerfile.j2 b/templates/winserver2019/dist/dev.dockerfile.j2 deleted file mode 100644 index 9348d338..00000000 --- a/templates/winserver2019/dist/dev.dockerfile.j2 +++ /dev/null @@ -1,14 +0,0 @@ -# dev package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% && ` - python -m pip install --no-cache-dir openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --use-deprecated=legacy-resolver ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% && ` - python -m pip install --no-cache-dir --pre openvino_dev[caffe,kaldi,mxnet,onnx,pytorch,tensorflow2]==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) -# hadolint ignore=DL3013 -RUN python -m pip uninstall -y opencv-python && ` - python -m pip install --no-cache-dir opencv-python-headless diff --git a/templates/winserver2019/dist/runtime.dockerfile.j2 b/templates/winserver2019/dist/runtime.dockerfile.j2 deleted file mode 100644 index b2d77a00..00000000 --- a/templates/winserver2019/dist/runtime.dockerfile.j2 +++ /dev/null @@ -1,13 +0,0 @@ -# runtime package -WORKDIR ${INTEL_OPENVINO_DIR} -ARG OPENVINO_WHEELS_VERSION={{ product_version }} -ARG OPENVINO_WHEELS_URL -RUN IF not defined OPENVINO_WHEELS_URL ( ` - python -m pip install --no-cache-dir openvino==%OPENVINO_WHEELS_VERSION% ` - ) ELSE ( ` - python -m pip install --no-cache-dir --pre openvino==%OPENVINO_WHEELS_VERSION% --trusted-host=* --find-links %OPENVINO_WHEELS_URL% ` - ) - -WORKDIR ${INTEL_OPENVINO_DIR}/licensing -# Please use `third-party-programs-docker-runtime.txt` short path to 3d party file if you use the Dockerfile directly from docker_ci/dockerfiles repo folder -COPY dockerfiles\{{os}}\third-party-programs-docker-runtime.txt ${INTEL_OPENVINO_DIR}/licensing \ No newline at end of file diff --git a/templates/winserver2019/hw/cpu.dockerfile.j2 b/templates/winserver2019/hw/cpu.dockerfile.j2 deleted file mode 100644 index f0a88068..00000000 --- a/templates/winserver2019/hw/cpu.dockerfile.j2 +++ /dev/null @@ -1 +0,0 @@ -# for CPU \ No newline at end of file diff --git a/templates/winserver2019/install/copy.dockerfile.j2 b/templates/winserver2019/install/copy.dockerfile.j2 deleted file mode 100644 index 90d230bf..00000000 --- a/templates/winserver2019/install/copy.dockerfile.j2 +++ /dev/null @@ -1,19 +0,0 @@ -# install product by copying archive content -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command ` - Expand-Archive -Path "./*.zip" -DestinationPath . -Force ; ` - $OV_FOLDER=(Get-ChildItem -Filter "*openvino*" -Directory).FullName ; ` - New-Item -Path C:\intel\ -ItemType Directory -Name openvino_%build_id% ; ` - Move-Item -Path $OV_FOLDER\* -Destination %INTEL_OPENVINO_DIR% ; ` - Remove-Item @("""./*.zip""",$OV_FOLDER) -Force -Recurse - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - }` - if ( -not (Test-Path -Path C:\intel\openvino_{{year}}) ) ` - {` - New-Item -Path C:\intel\openvino_{{year}} -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } \ No newline at end of file diff --git a/templates/winserver2019/install/install.dockerfile.j2 b/templates/winserver2019/install/install.dockerfile.j2 deleted file mode 100644 index 98798611..00000000 --- a/templates/winserver2019/install/install.dockerfile.j2 +++ /dev/null @@ -1,13 +0,0 @@ -# install product by installation script -ARG build_id -ENV INTEL_OPENVINO_DIR C:\intel - -RUN powershell.exe -Command ` - Start-Process "./*.exe" -ArgumentList '-s -f %INTEL_OPENVINO_DIR%\openvino_installer -a --silent --eula accept --install-dir %INTEL_OPENVINO_DIR%' -Wait - -ENV INTEL_OPENVINO_DIR C:\intel\openvino_${build_id} - -RUN powershell.exe -Command if ( -not (Test-Path -Path C:\intel\openvino) ) ` - {` - New-Item -Path C:\intel\openvino -ItemType SymbolicLink -Value %INTEL_OPENVINO_DIR%` - } \ No newline at end of file diff --git a/templates/winserver2019/msbuild/msbuild2019.dockerfile.j2 b/templates/winserver2019/msbuild/msbuild2019.dockerfile.j2 deleted file mode 100644 index e1ee5ec2..00000000 --- a/templates/winserver2019/msbuild/msbuild2019.dockerfile.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# setup MSBuild 2019 -ARG VS_DIR=/temp/msbuild2019 - -WORKDIR ${VS_DIR} -COPY scripts\msbuild2019\ ${VS_DIR} -RUN vs_buildtools.exe --quiet --norestart --wait --nocache --noUpdateInstaller --noWeb ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --channelUri C:\doesntExist.chman && powershell set-executionpolicy remotesigned diff --git a/templates/winserver2019/msbuild/msbuild2019_online.dockerfile.j2 b/templates/winserver2019/msbuild/msbuild2019_online.dockerfile.j2 deleted file mode 100644 index 783cb92b..00000000 --- a/templates/winserver2019/msbuild/msbuild2019_online.dockerfile.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# setup MSBuild 2019 -RUN powershell.exe -Command $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -URI https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile %TMP%\\vs_buildtools.exe - -RUN %TMP%\\vs_buildtools.exe --quiet --norestart --wait --nocache ` - --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` - --add Microsoft.VisualStudio.Workload.MSBuildTools ` - --add Microsoft.VisualStudio.Workload.UniversalBuildTools ` - --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` - --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` - --remove Microsoft.VisualStudio.Component.Windows81SDK || IF "%ERRORLEVEL%"=="3010" EXIT 0 && powershell set-executionpolicy remotesigned diff --git a/templates/winserver2019/python/pre_python38.dockerfile.j2 b/templates/winserver2019/python/pre_python38.dockerfile.j2 deleted file mode 100644 index 1d0493a1..00000000 --- a/templates/winserver2019/python/pre_python38.dockerfile.j2 +++ /dev/null @@ -1,26 +0,0 @@ -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip -Proxy %HTTPS_PROXY% ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip -Proxy %HTTPS_PROXY% ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip -Proxy %HTTPS_PROXY% ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://github.com/python/cpython/archive/refs/tags/v3.8.12.zip -OutFile %TMP%\\python.zip ; ` - Expand-Archive -Path %TMP%\\python.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\python.zip -Force ; ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile %TMP%\\python-for-build.zip ; ` - Expand-Archive -Path %TMP%\\python-for-build.zip -DestinationPath c:\\python-38-10 -Force ; Remove-Item %TMP%\\python-for-build.zip -Force ; ` - Invoke-WebRequest -URI https://github.com/python/cpython-bin-deps/archive/1cf06233e3ceb49dc0a73c55e04b1174b436b632.zip -OutFile %TMP%\\libffi.zip ; ` - Expand-Archive -Path %TMP%\\libffi.zip -DestinationPath c:\\ -Force ; Remove-Item %TMP%\\libffi.zip -Force -{% endif %} - -RUN C:\cpython-3.8.12\PCbuild\get_externals.bat --python c:\python-38-10\python.exe && ` - rmdir /s /q C:\cpython-3.8.12\externals\libffi && mkdir C:\cpython-3.8.12\externals\libffi && ` - xcopy /s /y c:\cpython-bin-deps-1cf06233e3ceb49dc0a73c55e04b1174b436b632\* c:\cpython-3.8.12\externals\libffi\ && ` - break > C:\cpython-3.8.12\PCbuild\get_externals.bat - -RUN C:\cpython-3.8.12\PCbuild\build.bat -p x64 diff --git a/templates/winserver2019/python/python37.dockerfile.j2 b/templates/winserver2019/python/python37.dockerfile.j2 deleted file mode 100644 index a0df9829..00000000 --- a/templates/winserver2019/python/python37.dockerfile.j2 +++ /dev/null @@ -1,16 +0,0 @@ -# setup Python -ARG PYTHON_VER=python3.7 - -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe -Proxy %HTTPS_PROXY% -OutFile %TMP%\\python-3.7.exe ; ` - Start-Process %TMP%\\python-3.7.exe -ArgumentList '/passive InstallAllUsers=1 PrependPath=1 TargetDir=c:\\Python37' -Wait ; ` - Remove-Item %TMP%\\python-3.7.exe -Force -{% else %} -RUN powershell.exe -Command ` - Invoke-WebRequest -URI https://www.python.org/ftp/python/3.7.9/python-3.7.9-amd64.exe -OutFile %TMP%\\python-3.7.exe ; ` - Start-Process %TMP%\\python-3.7.exe -ArgumentList '/passive InstallAllUsers=1 PrependPath=1 TargetDir=c:\\Python37' -Wait ; ` - Remove-Item %TMP%\\python-3.7.exe -Force -{% endif %} -# hadolint ignore=DL3013 -RUN python -m pip install --no-cache-dir --upgrade pip diff --git a/templates/winserver2019/python/python38.dockerfile.j2 b/templates/winserver2019/python/python38.dockerfile.j2 deleted file mode 100644 index e2b03dc8..00000000 --- a/templates/winserver2019/python/python38.dockerfile.j2 +++ /dev/null @@ -1,10 +0,0 @@ -# setup Python -ARG PYTHON_VER=python3.8 - -COPY --from=base C:\cpython-3.8.12\PCbuild\amd64 c:\Python38 -COPY --from=base c:\cpython-3.8.12\Lib c:\Python38\Lib - -RUN setx /M path "%path%;C:\Python38;C:\Python38\Scripts" -# hadolint ignore=DL3013 -RUN python -m ensurepip --upgrade --default-pip && ` - python -m pip install --no-cache-dir --upgrade pip diff --git a/templates/winserver2019/redist/vs.dockerfile.j2 b/templates/winserver2019/redist/vs.dockerfile.j2 deleted file mode 100644 index c70ddd0a..00000000 --- a/templates/winserver2019/redist/vs.dockerfile.j2 +++ /dev/null @@ -1,14 +0,0 @@ -# Setup Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 -{% if HTTPS_PROXY is defined %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -Proxy %HTTPS_PROXY% -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force -{% else %} -RUN powershell.exe -Command ` - $ProgressPreference = 'SilentlyContinue' ; ` - Invoke-WebRequest -URI https://aka.ms/vs/16/release/vc_redist.x64.exe -OutFile "%TMP%\vc_redist.x64.exe" ; ` - Start-Process %TMP%\\vc_redist.x64.exe -ArgumentList '/quiet /norestart' -Wait ; ` - Remove-Item "%TMP%\vc_redist.x64.exe" -Force -{% endif %} diff --git a/templates/winserver2019/source/local.dockerfile.j2 b/templates/winserver2019/source/local.dockerfile.j2 deleted file mode 100644 index 446f0ec0..00000000 --- a/templates/winserver2019/source/local.dockerfile.j2 +++ /dev/null @@ -1,6 +0,0 @@ -# get product from local path -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -COPY ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/templates/winserver2019/source/url.dockerfile.j2 b/templates/winserver2019/source/url.dockerfile.j2 deleted file mode 100644 index 24144b4e..00000000 --- a/templates/winserver2019/source/url.dockerfile.j2 +++ /dev/null @@ -1,7 +0,0 @@ -# download package from external URL -ARG package_url -ARG TEMP_DIR=/temp - -WORKDIR ${TEMP_DIR} -# hadolint ignore=DL3020 -ADD ${package_url} ${TEMP_DIR} \ No newline at end of file diff --git a/utils/arg_parser.py b/utils/arg_parser.py deleted file mode 100644 index 4566e11a..00000000 --- a/utils/arg_parser.py +++ /dev/null @@ -1,722 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""CLI arguments parser for this framework""" -import argparse -import contextlib -import pathlib -import re -import subprocess # nosec -import sys -import typing -import logging - -from utils.loader import INTEL_OPENVINO_VERSION -from utils.utilities import check_internal_local_path, check_printable_utf8_chars - -logger = logging.getLogger(__name__) - - -class DockerCIArgumentParser(argparse.ArgumentParser): - """CLI argument parser for this framework""" - - SUPPORTED_OS: typing.List = [ - "ubuntu18", - "ubuntu20", - "ubuntu22", - "winserver2019", - "windows20h2", - "rhel8", - ] - - def __init__(self, prog: typing.Optional[str] = None, description: typing.Optional[str] = None): - super().__init__( - prog=prog, - description=description, - formatter_class=argparse.RawTextHelpFormatter, - add_help=True, - ) - - @staticmethod - def set_default_subparser(name: str): - """Set default subparser""" - if not sys.argv[1:]: - sys.argv.insert(1, name) - - @staticmethod - def add_image_args(parser: argparse.ArgumentParser): - """Adding args needed to manage the built Docker image""" - parser.add_argument( - "-t", - "--tags", - metavar="IMAGE_NAME:TAG", - action="append", - required=" test" in parser.prog, - help="Source image name and optionally a tags in the 'IMAGE_NAME:TAG' format. " - "Default is _: and latest. You can specify some tags.", - ) - - parser.add_argument( - "--tag_postfix", - metavar="_NAME", - default="", - help="Add special postfix to the end of tag image. " - "Image name will be like this _:", - ) - - @staticmethod - def add_linter_check_args(parser: argparse.ArgumentParser): - parser.add_argument( - "--linter_check", - metavar="NAME", - action="append", - default=[], - help="Enable linter check for image and dockerfile. " - "It installs additional 3d-party docker images or executable files. " - "Available tests: " - "hadolint (https://github.com/hadolint/hadolint), " - "dive (https://github.com/wagoodman/dive)", - ) - - @staticmethod - def add_build_args(parser: argparse.ArgumentParser): - """Adding args needed to build the Docker image""" - parser.add_argument( - "--wheels_url", - metavar="URL", - default="", - help="URL to HTML page with links or local path relative to openvino folder to search for OpenVINO wheels " - "(will be used in a dockerfile as pip install --find-links value). " - "By default, openvino and openvino_dev will be installed from PyPi", - ) - - parser.add_argument( - "--image_json_path", - help="Provide path to save image data in .json format file. " - "By default, it is stored in the logs folder.", - ) - - parser.add_argument( - "--dockerfile_name", - metavar="NAME", - help="Name of the Dockerfile, that will be generated from templates. " - "Format is 'openvino___.dockerfile'", - ) - - parser.add_argument( - "-d", - "--device", - metavar="NAME", - action="append", - help="Target inference hardware: cpu, gpu, vpu, hddl. Default is all. " - "Dockerfile name format has the first letter from device name, " - "e.g. for CPU, HDDL it will be openvino_ch__.dockerfile", - ) - - parser.add_argument( - "-py", - "--python", - choices=["python37", "python38", "python310"], - help="Python interpreter for docker image, currently default is python38", - ) - - parser.add_argument( - "--cmake", - choices=["cmake34", "cmake314"], - default="cmake314", - help="CMake for Windows docker image, default CMake 3.14. For Linux images it is used default for OS.", - ) - - parser.add_argument( - "--msbuild", - choices=["msbuild2019", "msbuild2019_online"], - help="MSBuild Tools for Windows docker image." - "MSBuild Tools are licensed as a supplement your existing Visual Studio license. " - "Please don’t share the image with MSBuild 2019 on a public Docker Hub.", - ) - - parser.add_argument( - "--pre_stage_msbuild", - choices=["msbuild2019", "msbuild2019_online"], - help="MSBuild Tools for Windows docker image to use on the first stage. " - "Can be required to build some thirdparty dependencies from source code. " - "MSBuild Tools are licensed as a supplement your existing Visual Studio license. ", - ) - - parser.add_argument( - "-l", - "--layers", - metavar="NAME", - action="append", - default=[], - help="Setup your layer. Use name of .dockerfile.j2 file located in " - "/templates//layers folder. " - "Layer will be added to the end of product dockerfile.", - ) - - parser.add_argument( - "--build_arg", - metavar="VAR_NAME=VALUE", - action="append", - default=[], - help="Specify build or template arguments for your layer. " - "You can use 'no_samples=True' to remove OMZ, IE samples and demos from final docker image. " - "Set 'INSTALL_SOURCES=yes' to download source for 3d party LGPL/GPL dependencies.", - ) - - parser.add_argument( - "--no-cache", - dest="no_cache", - action="store_true", - help="Specify if image should be built without cache. False by default.", - ) - - @staticmethod - def add_test_args(parser: argparse.ArgumentParser): - """Adding args needed to run tests on the built Docker image""" - parser.add_argument( - "-k", - metavar="EXPRESSION", - default="", - dest="test_expression", - help="Run tests which match the given substring expression for pytest -k.", - ) - parser.add_argument( - "-m", - metavar="MARKEXPR", - default="", - dest="test_mark_expression", - help="Run tests which matching given mark expression for pytest -m", - ) - - parser.add_argument( - "--sdl_check", - metavar="NAME", - action="append", - default=[], - help="Enable SDL check for docker host and image. " - "It installs additional 3d-party docker images or executable files. " - "Available tests: " - "snyk (https://github.com/snyk/snyk), " - "bench_security (https://github.com/docker/docker-bench-security)", - ) - - parser.add_argument( - "--nightly", - action="store_true", - default=False, - help=argparse.SUPPRESS, # Skip tests for regular builds - ) - - @staticmethod - def add_deploy_args(parser: argparse.ArgumentParser): - """Adding args needed to publish the built Docker image to a repository""" - parser.add_argument( - "-r", - "--registry", - metavar="URL:PORT", - required=True, - help="Registry host and optionally a port in the 'host:port' format", - ) - - parser.add_argument( - "--nightly_save_path", - default="", - help=argparse.SUPPRESS, # Setup saving docker image as a binary file - ) - - @classmethod - def add_dist_args(cls, parser: argparse.ArgumentParser): - """Adding arg needed to customize the generated dockerfile""" - parser.add_argument( - "-os", - choices=cls.SUPPORTED_OS, - default="", - help="Operation System for docker image.", - ) - - parser.add_argument( - "-dist", - "--distribution", - choices=["base", "runtime", "dev", "dev_no_samples", "custom"], - required=" test" in parser.prog, - help="Distribution type: dev, dev_no_samples, runtime or " - "base (with CPU only and without installing dependencies). " - "Using key --file and " - "-p are mandatory to build base distribution image." - "base dockerfiles are stored in /dockerfiles/ folder.", - ) - - parser.add_argument( - "-p", - "--product_version", - default="", - help="Product version in format: YYYY.U[.BBB], where BBB - build number is optional.", - ) - - parser.add_argument( - "-w", - "--wheels_version", - default="", - help="Version specifier of OpenVINO wheels to install (will be passed to pip install). " - "Will be equal to product version by default.", - ) - - parser.add_argument( - "-s", - "--source", - choices=["url", "local"], - default="url", - help="Source of the package: external URL or relative local path. By default: url.", - ) - - parser.add_argument( - "-u", - "--package_url", - metavar="URL", - default="", - help="Package external or local url, use http://, https://, ftp:// access scheme or " - "relative local path", - ) - - parser.add_argument( - "-f", - "--file", - metavar="NAME", - help="Name of the Dockerfile, that uses to build an image.", - ) - - -def fail_if_product_version_not_supported(product_version: str, parser: DockerCIArgumentParser): - if product_version is None: - parser.error("Product version is not specified.") - elif product_version < "2022.1": - parser.error( - "This version of the DockerHub CI framework does not support OpenVINO releases earlier than " - f"2022.1.0. Current detected product version {product_version}. Please use previous versions " - "of the DockerHub CI." - ) - - -def parse_args(name: str, description: str): # noqa - """Parse all the args set up above""" - parser = DockerCIArgumentParser(name, description) - - subparsers = parser.add_subparsers(dest="mode") - - gen_dockerfile_subparser = subparsers.add_parser( - "gen_dockerfile", help="Generate a dockerfile to " "dockerfiles/ folder" - ) - parser.add_build_args(gen_dockerfile_subparser) - parser.add_linter_check_args(gen_dockerfile_subparser) - parser.add_dist_args(gen_dockerfile_subparser) - rhel_platform_group = gen_dockerfile_subparser.add_mutually_exclusive_group() - rhel_platform_group.add_argument( - "--rhel_platform", - choices=["docker", "openshift", "autobuild"], - default="docker", - help="Specify target platform to generate RHEL dockerfiles (default is docker). " - "Choose autobuild option for Red Hat portal Build System.", - ) - rhel_platform_group.add_argument( - "--openshift", - action="store_const", - dest="rhel_platform", - const="openshift", - default=False, - help="Create a dockerfile intended to build on Red Hat OpenShift Container Platform (RHEL images only). " - "Alias for --rhel_platform=openshift", - ) - - build_subparser = subparsers.add_parser("build", help="Build a docker image") - parser.add_build_args(build_subparser) - parser.add_linter_check_args(build_subparser) - parser.add_dist_args(build_subparser) - parser.add_image_args(build_subparser) - - build_test_subparser = subparsers.add_parser("build_test", help="Build and test a docker image") - parser.add_build_args(build_test_subparser) - parser.add_linter_check_args(build_test_subparser) - parser.add_dist_args(build_test_subparser) - parser.add_image_args(build_test_subparser) - parser.add_test_args(build_test_subparser) - - test_subparser = subparsers.add_parser("test", help="Test a local docker image") - parser.add_linter_check_args(test_subparser) - parser.add_dist_args(test_subparser) - parser.add_image_args(test_subparser) - parser.add_test_args(test_subparser) - test_subparser.add_argument( - "-r", - "--registry", - metavar="URL:PORT", - default="", - help="Registry host and optionally a port in the 'host:port' format. " - "Will be used to pull the image if it does not exist", - ) - - deploy_subparser = subparsers.add_parser("deploy", help="Deploy a docker image") - parser.add_image_args(deploy_subparser) - parser.add_deploy_args(deploy_subparser) - - all_subparser = subparsers.add_parser( - "all", help="Build, test and deploy a docker image. [Default option]" - ) - parser.add_build_args(all_subparser) - parser.add_linter_check_args(all_subparser) - parser.add_dist_args(all_subparser) - parser.add_image_args(all_subparser) - parser.add_test_args(all_subparser) - parser.add_deploy_args(all_subparser) - - parser.set_default_subparser("all") - - args = parser.parse_args() - - for key in vars(args): - arg_val = getattr(args, key) - if isinstance(arg_val, (list, tuple)): - for elem in arg_val: - check_printable_utf8_chars(elem) - elif isinstance(arg_val, str): - check_printable_utf8_chars(arg_val) - - for attr_name in ("package_url", "file", "image_json_path"): - if hasattr(args, attr_name) and getattr(args, attr_name): - check_internal_local_path(getattr(args, attr_name)) - - if ( - args.mode != "deploy" - and args.package_url - and args.source == "local" - and not args.package_url.startswith(("http://", "https://", "ftp://")) - ): - args.package_url = str(pathlib.Path(args.package_url).as_posix()) - - if ( - args.mode not in ("test", "deploy") - and hasattr(args, "distribution") - and args.distribution == "custom" - ): - parser.error("For a custom distribution, only test and deploy modes are available.") - - if ( - hasattr(args, "sdl_check") - and args.sdl_check - and ("snyk" not in args.sdl_check and "bench_security" not in args.sdl_check) - ): - parser.error("Incorrect arguments for --sdl_check. Available tests: snyk, bench_security") - - if ( - hasattr(args, "linter_check") - and args.linter_check - and ("hadolint" not in args.linter_check and "dive" not in args.linter_check) - ): - parser.error("Incorrect arguments for --linter_check. Available tests: hadolint, dive") - - if ( - args.mode in ("build", "build_test", "all") - and args.distribution == "base" - and not args.file - ): - parser.error("The following argument is required: -f/--file") - - if args.mode == "deploy" and not args.tags: - parser.error("The following argument is required: -t/--tags") - - if hasattr(args, "os") and not args.os: - possible_os: typing.Set[str] = set() - if args.package_url: - possible_os.update(filter(lambda os: os in args.package_url, parser.SUPPORTED_OS)) - if hasattr(args, "tags") and args.tags: - for tag in args.tags: - possible_os.update(filter(lambda os: os in tag, parser.SUPPORTED_OS)) # noqa: B023 - if len(possible_os) == 1: - args.os = possible_os.pop() - else: - parser.error( - "Can not get image OS from package URL or tags. " "Please specify -os directly" - ) - - if ( - args.mode in ("gen_dockerfile", "build", "build_test", "all") - and args.distribution == "dev_no_samples" - and "ubuntu" not in args.os - ): - parser.error("Distribution dev_no_samples is available only for Ubuntu operation system") - - if args.mode == "gen_dockerfile" and args.distribution == "base": - parser.error( - "Generating dockerfile for base distribution is not available. " - "Use generated base dockerfiles are stored in /dockerfiles/ folder" - ) - - if args.mode == "test" and not (args.tags and args.distribution): - parser.error( - "Options --tags and --distribution are mandatory. Image operation system is 'ubuntu18'" - " by default." - ) - - if args.mode == "test" and "runtime" in args.distribution and not args.package_url: - logger.info( - "\nYou can run samples/demos on runtime docker image. " - "Please provide --package_url key with path to dev distribution package in " - "http/https/ftp access scheme or a local file in the project location as dependent package " - "to run all available tests.\n" - ) - - if args.mode in ("deploy", "all") and not hasattr(args, "registry"): - parser.error("Option --registry is mandatory for this mode.") - - if hasattr(args, "image_json_path") and args.image_json_path: - args.image_json_path = pathlib.Path(args.image_json_path).absolute() - if args.image_json_path.is_symlink(): - parser.error( - "Do not use symlink and hard link for --image_json_path key. It is an insecure way." - ) - - if hasattr(args, "file") and args.file: - args.file = pathlib.Path(args.file).absolute() - if args.file.is_symlink(): - parser.error("Do not use symlink and hard link for --file key. It is an insecure way. ") - if not args.file.exists(): - parser.error(f"Cannot find specified Dockerfile: {str(args.file)}.") - - if not hasattr(args, "rhel_platform"): - args.rhel_platform = "docker" - if args.rhel_platform != "docker" and args.os != "rhel8": - parser.error( - "Dockerfile generation intended for non-Docker platforms " - "is supported only for RHEL-based images" - ) - - if hasattr(args, "product_version") and args.product_version: - logger.info(f"Found product version {args.product_version} in arguments.") - fail_if_product_version_not_supported(args.product_version, parser) - product_version = re.search(r"^\d{4}\.\d$", args.product_version) - if product_version: - # save product version YYYY.U as YYYY.U.0 - args.product_version = f"{product_version.group()}.0" - - if args.mode in ("gen_dockerfile", "build", "build_test", "all"): - if args.package_url and not args.package_url.startswith(("http://", "https://", "ftp://")): - if args.source == "local" and not pathlib.Path(args.package_url).exists(): - parser.error( - "Provided local path of the package should be relative to folder " - f"or should be an http/https/ftp access scheme: {args.package_url}" - ) - elif args.source == "url" and args.distribution != "base": - parser.error( - "Provided URL is not supported, use http://, https:// or ftp:// access scheme" - ) - elif args.source == "local" and pathlib.Path(args.package_url).is_symlink(): - parser.error( - "Do not use symlink and hard link to specify local package url. " - "It is an insecure way." - ) - - if not args.python: - if args.os in "ubuntu22": - args.python = "python310" - else: - args.python = "python38" - - if args.python == "python38" and "win" in args.os: - if not hasattr(args, "pre_stage_msbuild") or not args.pre_stage_msbuild: - parser.error( - "Option --pre_stage_msbuild is required for Windows images to build the latest version " - "of Python 3.8" - ) - - if not args.distribution and args.package_url: - if "_runtime_" in args.package_url: - args.distribution = "runtime" - elif "_dev_" in args.package_url: - args.distribution = "dev" - else: - parser.error( - f"Cannot get distribution type from the package URL provided. {args.package_url} " - "Please specify --distribution directly." - ) - # set installation method for the package - args.install_type = "copy" - - # workaround for https://bugs.python.org/issue16399 issue - if not args.device and "win" not in args.os: - if args.distribution == "base": - args.device = ["cpu"] - elif args.os == "rhel8": - args.device = ["cpu", "gpu"] - else: - args.device = ["cpu", "gpu"] # 2022.3 v/h not supported - elif not args.device: - args.device = ["cpu"] - - if not args.package_url and not args.product_version: - latest_public_version = max(INTEL_OPENVINO_VERSION.__iter__()) - args.product_version = ( - "2022.2.0" if latest_public_version <= "2022.2.0" else latest_public_version - ) - args.build_id = "" - - if not args.package_url and args.distribution not in ("base",): - if not args.distribution or not args.product_version: - parser.error( - "Insufficient arguments. Provide --package_url " - "or --distribution (with optional --product_version) arguments" - ) - if args.mode != "gen_dockerfile" or args.rhel_platform == "autobuild": - dev_version = re.search(r"^\d{4}\.(?:\d\.){2,3}dev\d{8}$", args.product_version) - if dev_version: - args.product_version = dev_version.group() - else: - lts_version = re.search(r"(\d{4}\.\d\.\d)", args.product_version) - if lts_version: - args.product_version = lts_version.group() # save product version YYYY.U.V - else: - parser.error(f"Cannot find package url for {args.product_version} version") - with contextlib.suppress(KeyError): - args.package_url = INTEL_OPENVINO_VERSION[args.product_version][args.os][ - args.distribution - ] - if not args.package_url: - parser.error( - f"Cannot find package url for {args.product_version} version " - f"and {args.distribution} distribution. Please specify --package_url directly." - ) - - if args.package_url and not args.build_id: - logger.info(f"Parsing product version in the package_url {args.package_url}...") - dev_version = re.search(r"_(\d{4}\.(?:\d\.){2,3}dev\d{8})_", args.package_url) - if dev_version: - # save product version and build version as YYYY.U.V.devYYYYMMDD - args.product_version = dev_version.group(1) - args.build_id = args.product_version - else: - build_id = re.search(r"_(\d{4}\.(?:\d\.){2,3}\d*)", args.package_url) - if build_id: - # save product version YYYY.U.V.BBB - args.build_id = ".".join(build_id.groups()) - # save product version YYYY.U.V - args.product_version = build_id.group(1) - else: - args.build_id = args.product_version - - if not args.dockerfile_name: - devices = "".join([d[0] for d in args.device]) - layers = "_".join(args.layers) - openshift = "openshift_" if args.rhel_platform == "openshift" else "" - version = args.product_version - if layers: - args.dockerfile_name = f"openvino_{openshift}{layers}_{version}.dockerfile" - else: - args.dockerfile_name = ( - f"openvino_{devices}_{openshift}{args.distribution}_{version}.dockerfile" - ) - - if not hasattr(args, "wheels_version") or not args.wheels_version: - args.wheels_version = ( - args.product_version - if args.build_id == args.product_version - else f"{args.product_version}.*" - ) - - if not hasattr(args, "tags") or not args.tags: - layers = "_".join(args.layers) - tgl_postfix = "" - - if layers: - args.tags = [ - f"{args.os}_{layers}:" - f"{args.build_id if args.build_id else args.product_version}{tgl_postfix}", - f"{args.os}_{layers}:latest", - ] - if hasattr(args, "tag_postfix") and args.tag_postfix: - args.tags.append( - f"{args.os}_{layers}:{args.build_id if args.build_id else args.product_version}" - f"{tgl_postfix}{args.tag_postfix}" - ) - elif args.distribution == "base": - args.tags = [ - f"{args.os}_{args.distribution}_cpu:" f"{args.product_version}", - f"{args.os}_{args.distribution}_cpu:latest", - ] - if hasattr(args, "tag_postfix") and args.tag_postfix: - args.tags.append( - f"{args.os}_{args.distribution}_cpu:" - f"{args.product_version}{args.tag_postfix}" - ) - else: - args.tags = [ - f"{args.os}_{args.distribution}:" - f"{args.build_id if args.build_id else args.product_version}{tgl_postfix}", - f"{args.os}_{args.distribution}:latest", - ] - if hasattr(args, "tag_postfix") and args.tag_postfix: - args.tags.append( - f"{args.os}_{args.distribution}:" - f"{args.build_id if args.build_id else args.product_version}" - f"{tgl_postfix}{args.tag_postfix}" - ) - - if args.mode not in ("test", "deploy"): - if args.build_id: - args.year = args.build_id[:4] - elif args.product_version: - args.year = args.product_version[:4] - else: - args.year = None - - if args.mode == "test" and not args.product_version: - match = re.search(r":(\d{4}\.\d\.\d)", str(args.tags)) - if not match and args.package_url: - match = re.search(r"_(\d{4}\.\d\.\d)", args.package_url) - if match: - # save product version YYYY.U.V - args.product_version = match.group(1) - elif args.distribution == "custom": - latest_public_version = list(INTEL_OPENVINO_VERSION.keys())[-1] - args.product_version = ( - "2022.2.0" if latest_public_version <= "2022.2.0" else latest_public_version - ) - else: - parser.error( - "Cannot get product_version from the package URL and docker image. " - "Please specify --product_version directly." - ) - - if args.mode in "test" and (not hasattr(args, "wheels_version") or not args.wheels_version): - latest_public_version = max(INTEL_OPENVINO_VERSION.__iter__()) - latest_public_version = ( - "2022.2.0" if latest_public_version <= "2022.2.0" else latest_public_version - ) - args.wheels_version = ( - args.product_version if hasattr(args, "product_version") else latest_public_version - ) - - if hasattr(args, "product_version"): - fail_if_product_version_not_supported(args.product_version, parser) - - if hasattr(args, "distribution") and args.distribution == "custom": - if ( - subprocess.call( # nosec B603 B607 - ["docker", "run", "--rm", args.tags[0], "ls", "extras/opencv"], # nosec B603 B607 - stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, - ) - != 0 - ): - args.distribution = "custom-no-cv" - else: - args.distribution = "custom-full" - - if hasattr(args, "distribution"): - if not args.package_url and args.mode == "test" and args.distribution == "custom-no-cv": - if args.product_version in INTEL_OPENVINO_VERSION: - args.package_url = INTEL_OPENVINO_VERSION[args.product_version][args.os]["dev"] - else: - parser.error( - f"Cannot find URL to package with test dependencies for {args.product_version} release. " - f"Please specify --package_url directly" - ) - return args diff --git a/utils/builder.py b/utils/builder.py deleted file mode 100644 index 362d345e..00000000 --- a/utils/builder.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Module handling Docker image building""" -import logging -import pathlib -import typing - -from docker.errors import APIError -from docker.models.images import Image - -from utils import logger -from utils.docker_api import DockerAPI - -log = logging.getLogger('docker_ci') - - -class DockerImageBuilder(DockerAPI): - """Wrapper for docker.api.client implementing customized build command and logging""" - - def build_docker_image(self, - dockerfile: typing.Union[str, pathlib.Path], - tag: str, - directory: typing.Optional[str] = None, - build_args: typing.Optional[typing.Dict[str, str]] = None, - logfile: typing.Optional[pathlib.Path] = None, - no_cache: typing.Optional[bool] = False) -> typing.Optional[Image]: - """Build Docker image""" - if not build_args: - build_args = {} - if not directory: - directory = str(self.location) - if not logfile: - logfile = pathlib.Path(directory) / 'logs' / tag / 'build.log' - - directory = str(pathlib.Path(directory).as_posix()) - dockerfile = str(pathlib.Path(dockerfile).as_posix()) - - logfile.parent.mkdir(exist_ok=True, parents=True) - - try: - logger.switch_to_custom(logfile, str(logfile.parent)) - log.info(f'build command: docker build {directory} -f {dockerfile} ' - f'{"".join([f"--build-arg {k}={v} " for k, v in build_args.items()])}') - log_generator = self.client.api.build(path=directory, - tag=tag, - dockerfile=dockerfile, - rm=True, - use_config_proxy=True, - nocache=no_cache, - pull=True, - buildargs=build_args, - decode=True) - - for line in log_generator: - for key, value in line.items(): - log.info(f'{key} {value}') - if key == 'error': - logger.switch_to_summary() - log.error(f'{value}') - return None - logger.switch_to_summary() - return self.client.images.get(tag) - - except APIError as error: - logger.switch_to_summary() - log.error(f'Docker server error: {error}') - - return None diff --git a/utils/docker_api.py b/utils/docker_api.py deleted file mode 100644 index e7889f29..00000000 --- a/utils/docker_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Module for handling connection with Docker daemon/service""" -import logging -import os -import pathlib -import sys - -import docker -import requests - -from utils.exceptions import FailedStepError - -if sys.platform == 'win32': - import pywintypes - -log = logging.getLogger('docker_ci') - - -class DockerAPI: - """Wrapper for docker.api.client""" - - def __init__(self): - # custom timeout to use Image.save() on large images - https://github.com/docker/docker-py/issues/2077 - self.client = docker.from_env(timeout=300) - self.location = pathlib.Path(os.path.realpath(__file__)).parent.parent - try: - self.client.ping() - except requests.exceptions.ConnectionError: - raise FailedStepError('Docker Engine is not running. Please start the docker daemon.') - except pywintypes.error as ex: - if ex.winerror == 2 and ex.funcname in ('WaitNamedPipe', 'CreateFile'): - raise FailedStepError('Docker Engine is not running. Please start the docker daemon.') - raise ex - - def version(self): - """Logging-friendly Docker version getter""" - vers = self.client.version() - for name in ('Version', 'ApiVersion', 'MinAPIVersion', 'Os', 'Arch', 'KernelVersion'): - log.info(f'{name}: {vers.get(name, "Unknown")}') - - def __del__(self): - """Custom __del__ needed to manually close connection to client""" - self.client.close() diff --git a/utils/exceptions.py b/utils/exceptions.py deleted file mode 100644 index 895bbb27..00000000 --- a/utils/exceptions.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Custom exceptions for this framework""" - - -class FailedStepError(Exception): - """Generic non-specific exception""" - pass - - -class FailedBuildError(Exception): - """Exception on failed Docker image build""" - pass - - -class FailedDeployError(Exception): - """Exception on failed Docker image push""" - pass - - -class FailedTestError(Exception): - """Exception on failed Docker image test""" - pass - - -class LayerNotFoundError(Exception): - """Exception on missing layer template for Dockerfile render""" - pass - - -class InputNotValidError(Exception): - """Exception on invalid UTF-8 string""" - pass diff --git a/utils/loader.py b/utils/loader.py deleted file mode 100644 index 1484abd1..00000000 --- a/utils/loader.py +++ /dev/null @@ -1,542 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Auxiliary structure for simplifying build process - -Supports released/supported versions of product/its dependencies -""" -INTEL_OPENVINO_VERSION = { - '2020.1': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.1/' - 'w_openvino_toolkit_dev_p_2020.1.033.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.1/' - 'w_openvino_toolkit_runtime_p_2020.1.033.zip', - }, - 'ubuntu18': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.1/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2020.1.023.tgz', - }, - }, - '2020.2': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.2/' - 'w_openvino_toolkit_dev_p_2020.2.117.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.2/' - 'w_openvino_toolkit_runtime_p_2020.2.117.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.2/' - 'w_openvino_toolkit_data_dev_p_2020.2.117.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.2/' - 'l_openvino_toolkit_dev_ubuntu18_p_2020.2.120.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.2/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2020.2.120.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.2/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2020.2.120.tgz', - }, - }, - '2020.3': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/' - 'w_openvino_toolkit_dev_p_2020.3.194.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/' - 'w_openvino_toolkit_runtime_p_2020.3.194.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/' - 'w_openvino_toolkit_data_dev_p_2020.3.194.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/' - 'l_openvino_toolkit_dev_ubuntu18_p_2020.3.194.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2020.3.194.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2020.3.194.tgz', - }, - }, - '2020.3.1': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.1/' - 'w_openvino_toolkit_dev_p_2020.3.341.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.1/' - 'w_openvino_toolkit_runtime_p_2020.3.341.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.1/' - 'w_openvino_toolkit_data_dev_p_2020.3.341.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.1/' - 'l_openvino_toolkit_dev_ubuntu18_p_2020.3.341.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.1/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2020.3.341.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.1/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2020.3.341.tgz', - }, - }, - '2020.3.2': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'w_openvino_toolkit_dev_p_2020.3.355.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'w_openvino_toolkit_runtime_p_2020.3.355.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'w_openvino_toolkit_data_dev_p_2020.3.355.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'l_openvino_toolkit_dev_ubuntu18_p_2020.3.355.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2020.3.355.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2020.3.355.tgz', - }, - 'centos7': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.3.2/' - 'l_openvino_toolkit_runtime_centos7_p_2020.3.355.tgz', - }, - }, - '2020.4': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.4/' - 'w_openvino_toolkit_dev_p_2020.4.287.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.4/' - 'w_openvino_toolkit_runtime_p_2020.4.287.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.4/' - 'w_openvino_toolkit_data_dev_p_2020.4.287.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.4/' - 'l_openvino_toolkit_dev_ubuntu18_p_2020.4.287.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.4/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2020.4.287.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2020.4/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2020.4.287.tgz', - }, - }, - '2021.1': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'w_openvino_toolkit_dev_p_2021.1.110.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'w_openvino_toolkit_runtime_p_2021.1.110.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'w_openvino_toolkit_data_dev_p_2021.1.110.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'l_openvino_toolkit_dev_ubuntu18_p_2021.1.110.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2021.1.110.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2021.1.110.tgz', - }, - 'ubuntu20': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'l_openvino_toolkit_runtime_ubuntu20_p_2021.1.110.tgz', - }, - 'centos7': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.1/' - 'l_openvino_toolkit_runtime_centos7_p_2021.1.110.tgz', - }, - }, - '2021.2': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'w_openvino_toolkit_dev_p_2021.2.185.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'w_openvino_toolkit_runtime_p_2021.2.185.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'w_openvino_toolkit_data_dev_p_2021.2.185.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'l_openvino_toolkit_dev_ubuntu18_p_2021.2.185.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2021.2.185.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2021.2.185.tgz', - }, - 'ubuntu20': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'l_openvino_toolkit_runtime_ubuntu20_p_2021.2.185.tgz', - }, - 'centos7': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'l_openvino_toolkit_runtime_centos7_p_2021.2.185.tgz', - }, - 'rhel8': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.2/' - 'l_openvino_toolkit_runtime_rhel8_p_2021.2.185.tgz', - }, - }, - '2021.3': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'w_openvino_toolkit_dev_p_2021.3.394.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'w_openvino_toolkit_runtime_p_2021.3.394.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'w_openvino_toolkit_data_dev_p_2021.3.394.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_dev_ubuntu18_p_2021.3.394.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2021.3.394.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2021.3.394.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_dev_ubuntu20_p_2021.3.394.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_runtime_ubuntu20_p_2021.3.394.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_data_dev_ubuntu20_p_2021.3.394.tgz', - }, - 'centos7': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_runtime_centos7_p_2021.3.394.tgz', - }, - 'rhel8': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.3/' - 'l_openvino_toolkit_runtime_rhel8_p_2021.3.394.tgz', - }, - }, - '2021.4': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'w_openvino_toolkit_dev_p_2021.4.582.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'w_openvino_toolkit_runtime_p_2021.4.582.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'w_openvino_toolkit_data_dev_p_2021.4.582.zip', - }, - 'windows20h2': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'w_openvino_toolkit_dev_p_2021.4.582.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'w_openvino_toolkit_runtime_p_2021.4.582.zip', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'w_openvino_toolkit_data_dev_p_2021.4.582.zip', - }, - 'ubuntu18': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2021.4.582.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'l_openvino_toolkit_data_dev_ubuntu18_p_2021.4.582.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'l_openvino_toolkit_dev_ubuntu20_p_2021.4.582.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'l_openvino_toolkit_runtime_ubuntu20_p_2021.4.582.tgz', - 'data_dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'l_openvino_toolkit_data_dev_ubuntu20_p_2021.4.582.tgz', - }, - 'rhel8': - { - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2021.4/' - 'l_openvino_toolkit_runtime_rhel8_p_2021.4.582.tgz', - }, - }, - '2022.1.0': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'w_openvino_toolkit_dev_p_2022.1.0.643.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'w_openvino_toolkit_runtime_p_2022.1.0.643.zip', - }, - 'windows20h2': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'w_openvino_toolkit_dev_p_2022.1.0.643.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'w_openvino_toolkit_runtime_p_2022.1.0.643.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'l_openvino_toolkit_dev_ubuntu18_p_2022.1.0.643.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'l_openvino_toolkit_runtime_ubuntu18_p_2022.1.0.643.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'l_openvino_toolkit_dev_ubuntu20_p_2022.1.0.643.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'l_openvino_toolkit_runtime_ubuntu20_p_2022.1.0.643.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'l_openvino_toolkit_dev_rhel8_p_2022.1.0.643.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.1/' - 'l_openvino_toolkit_runtime_rhel8_p_2022.1.0.643.tgz', - }, - }, - '2022.2.0': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'windows/w_openvino_toolkit_windows_2022.2.0.7713.af16ea1d79a_x86_64.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'windows/w_openvino_toolkit_windows_2022.2.0.7713.af16ea1d79a_x86_64.zip', - }, - 'windows20h2': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'windows/w_openvino_toolkit_windows_2022.2.0.7713.af16ea1d79a_x86_64.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'windows/w_openvino_toolkit_windows_2022.2.0.7713.af16ea1d79a_x86_64.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'linux/l_openvino_toolkit_ubuntu18_2022.2.0.7713.af16ea1d79a_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'linux/l_openvino_toolkit_ubuntu18_2022.2.0.7713.af16ea1d79a_x86_64.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'linux/l_openvino_toolkit_ubuntu20_2022.2.0.7713.af16ea1d79a_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'linux/l_openvino_toolkit_ubuntu20_2022.2.0.7713.af16ea1d79a_x86_64.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'linux/l_openvino_toolkit_rhel8_2022.2.0.7713.af16ea1d79a_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.2/' - 'linux/l_openvino_toolkit_rhel8_2022.2.0.7713.af16ea1d79a_x86_64.tgz', - }, - }, - '2022.3.0': { - 'winserver2019': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'windows/w_openvino_toolkit_windows_2022.3.0.9052.9752fafe8eb_x86_64.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'windows/w_openvino_toolkit_windows_2022.3.0.9052.9752fafe8eb_x86_64.zip', - }, - 'windows20h2': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'windows/w_openvino_toolkit_windows_2022.3.0.9052.9752fafe8eb_x86_64.zip', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'windows/w_openvino_toolkit_windows_2022.3.0.9052.9752fafe8eb_x86_64.zip', - }, - 'ubuntu18': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'linux/l_openvino_toolkit_ubuntu18_2022.3.0.9052.9752fafe8eb_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'linux/l_openvino_toolkit_ubuntu18_2022.3.0.9052.9752fafe8eb_x86_64.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'linux/l_openvino_toolkit_ubuntu20_2022.3.0.9052.9752fafe8eb_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'linux/l_openvino_toolkit_ubuntu20_2022.3.0.9052.9752fafe8eb_x86_64.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'linux/l_openvino_toolkit_rhel8_2022.3.0.9052.9752fafe8eb_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2022.3/' - 'linux/l_openvino_toolkit_rhel8_2022.3.0.9052.9752fafe8eb_x86_64.tgz', - }, - }, - '2023.0.0': { - 'ubuntu22': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0/' - 'linux/l_openvino_toolkit_ubuntu22_2023.0.0.10926.b4452d56304_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0/' - 'linux/l_openvino_toolkit_ubuntu22_2023.0.0.10926.b4452d56304_x86_64.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0/' - 'linux/l_openvino_toolkit_ubuntu20_2023.0.0.10926.b4452d56304_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0/' - 'linux/l_openvino_toolkit_ubuntu20_2023.0.0.10926.b4452d56304_x86_64.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0/' - 'linux/l_openvino_toolkit_rhel8_2023.0.0.10926.b4452d56304_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.0/' - 'linux/l_openvino_toolkit_rhel8_2023.0.0.10926.b4452d56304_x86_64.tgz', - }, - }, - '2023.2.0': { - 'ubuntu22': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.2/' - 'linux/l_openvino_toolkit_ubuntu22_2023.2.0.13089.cfd42bd2cb0_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.2/' - 'linux/l_openvino_toolkit_ubuntu22_2023.2.0.13089.cfd42bd2cb0_x86_64.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.2/' - 'linux/l_openvino_toolkit_ubuntu20_2023.2.0.13089.cfd42bd2cb0_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.2/' - 'linux/l_openvino_toolkit_ubuntu20_2023.2.0.13089.cfd42bd2cb0_x86_64.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.2/' - 'linux/l_openvino_toolkit_rhel8_2023.2.0.13089.cfd42bd2cb0_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.2/' - 'linux/l_openvino_toolkit_rhel8_2023.2.0.13089.cfd42bd2cb0_x86_64.tgz', - }, - }, - '2023.3.0': { - 'ubuntu22': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/' - 'linux/l_openvino_toolkit_ubuntu22_2023.3.0.13775.ceeafaf64f3_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/' - 'linux/l_openvino_toolkit_ubuntu22_2023.3.0.13775.ceeafaf64f3_x86_64.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/' - 'linux/l_openvino_toolkit_ubuntu20_2023.3.0.13775.ceeafaf64f3_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/' - 'linux/l_openvino_toolkit_ubuntu20_2023.3.0.13775.ceeafaf64f3_x86_64.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/' - 'linux/l_openvino_toolkit_rhel8_2023.3.0.13775.ceeafaf64f3_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2023.3/' - 'linux/l_openvino_toolkit_rhel8_2023.3.0.13775.ceeafaf64f3_x86_64.tgz', - }, - }, - '2024.0.0': { - 'ubuntu22': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/' - 'linux/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/' - 'linux/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64.tgz', - }, - 'ubuntu20': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/' - 'linux/l_openvino_toolkit_ubuntu20_2024.0.0.14509.34caeefd078_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/' - 'linux/l_openvino_toolkit_ubuntu20_2024.0.0.14509.34caeefd078_x86_64.tgz', - }, - 'rhel8': - { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/' - 'linux/l_openvino_toolkit_rhel8_2024.0.0.14509.34caeefd078_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/' - 'linux/l_openvino_toolkit_rhel8_2024.0.0.14509.34caeefd078_x86_64.tgz', - }, - }, - '2024.1.0': { - 'ubuntu22': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/' - 'linux/l_openvino_toolkit_ubuntu22_2024.1.0.15008.f4afc983258_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/' - 'linux/l_openvino_toolkit_ubuntu22_2024.1.0.15008.f4afc983258_x86_64.tgz', - }, - 'ubuntu20': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/' - 'linux/l_openvino_toolkit_ubuntu20_2024.1.0.15008.f4afc983258_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/' - 'linux/l_openvino_toolkit_ubuntu20_2024.1.0.15008.f4afc983258_x86_64.tgz', - }, - 'rhel8': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/' - 'linux/l_openvino_toolkit_rhel8_2024.1.0.15008.f4afc983258_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/' - 'linux/l_openvino_toolkit_rhel8_2024.1.0.15008.f4afc983258_x86_64.tgz', - }, - }, - '2024.2.0': { - 'ubuntu20': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/' - 'linux/l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/' - 'linux/l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_x86_64.tgz', - }, - 'ubuntu22': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/' - 'linux/l_openvino_toolkit_ubuntu22_2024.2.0.15519.5c0f38f83f6_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/' - 'linux/l_openvino_toolkit_ubuntu22_2024.2.0.15519.5c0f38f83f6_x86_64.tgz', - }, - 'rhel8': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/' - 'linux/l_openvino_toolkit_rhel8_2024.2.0.15519.5c0f38f83f6_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/' - 'linux/l_openvino_toolkit_rhel8_2024.2.0.15519.5c0f38f83f6_x86_64.tgz', - }, - }, - '2024.3.0': { - 'ubuntu20': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_ubuntu20_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_ubuntu20_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - }, - 'ubuntu22': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_ubuntu22_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_ubuntu22_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - }, - 'rhel8': { - 'dev': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_rhel8_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - 'runtime': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_rhel8_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - }, - }, -} -DIVE_URL = { - 'windows': 'https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_windows_amd64.zip', -} -SNYK_URL = { - 'windows': 'https://github.com/snyk/snyk/releases/download/v1.658.0/snyk-win.exe', -} diff --git a/utils/logger.py b/utils/logger.py deleted file mode 100644 index 6090f264..00000000 --- a/utils/logger.py +++ /dev/null @@ -1,201 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Custom logger for this framework based on logging package from standard Python library""" -import inspect -import logging -import logging.config -import pathlib -import typing - -LINE_SINGLE = '-' * 79 -LINE_DOUBLE = '=' * 79 - -log = logging.getLogger('docker_ci') - - -def init_logger(logdir: pathlib.Path = None) -> pathlib.Path: - """Initializing the logger""" - if logdir is None: - logfile = pathlib.Path(__file__).parent.parent / 'logs' / 'summary.log' - else: - logfile = logdir / 'summary.log' - - if not logfile.parent.exists(): - logfile.parent.mkdir() - - logger_config = { - 'version': 1, - 'disable_existing_loggers': True, - 'formatters': { - 'default': { - 'format': '[%(asctime)s] %(levelname)-8s %(message)s', - 'datefmt': '%Y-%m-%d %H:%M:%S', - }, - 'custom': { - '()': 'utils.logger.CustomFormatter', - }, - }, - 'handlers': { - 'console': { - 'level': 'INFO', - 'class': 'logging.StreamHandler', - 'formatter': 'custom', - }, - 'summary': { - 'level': 'DEBUG', - 'class': 'logging.FileHandler', - 'filename': logfile, - 'encoding': 'utf-8', - 'formatter': 'custom', - 'mode': 'w', - }, - }, - 'loggers': { - 'docker_ci': { - 'handlers': ['summary', 'console'], - 'level': 'DEBUG', - 'propagate': True, - }, - }, - } - - logging.config.dictConfig(logger_config) - - # need for indentation in logs - decorate_logger(logging.Logger, getattr(logging.Logger, '_log')) - - return logfile - - -def decorate_logger(logger: typing.Type[logging.Logger], func: typing.Callable[..., None]): - """Handling custom indentations in logger""" - - def my_decorator(self, level, msg, args, exc_info=None, extra=None): - msg = ' ' * self._indent + str(msg) - func(self, level, msg, args, exc_info, extra) - - def increase_indent(self, inc=2): - self._indent += inc - - def decrease_indent(self, inc=2): - self._indent -= inc - - logger._indent = 0 - logger.increase_indent = increase_indent - logger.decrease_indent = decrease_indent - logger._log = my_decorator - logger._main_handlers = log.handlers[:] - - -def switch_to_custom(name: typing.Union[str, pathlib.Path], logdir: typing.Optional[str] = 'logs'): - """Switching between additional loggers""" - remove_summary() - remove_customs() - - handler: UniqueFileHandler = UniqueFileHandler(name, logdir) - log.addHandler(handler) - - -def add_summary(): - """Adding main logger""" - if hasattr(log, '_main_handlers'): - main_handlers = getattr(log, '_main_handlers') - for handler in main_handlers: - log.addHandler(handler) - - -def remove_summary(): - """Removing main logger""" - handlers = log.handlers[:] - for handler in handlers: - name = getattr(handler, '_name') - if name in ('summary', 'console'): - log.removeHandler(handler) - - -def remove_customs(): - """Removing custom logger""" - handlers = log.handlers[:] - for handler in handlers: - if isinstance(handler, UniqueFileHandler): - log.removeHandler(handler) - - -def switch_to_summary(): - """Switching from custom logger to main logger""" - remove_customs() - add_summary() - - -class UniqueFileHandler(logging.FileHandler): - """Custom file handler that supports log file creation""" - - def __init__(self, filename, dir_=None, **kwargs): - if not dir_: - dir_ = pathlib.Path(__file__).parent / 'logs' - if not pathlib.Path(dir_).exists(): - pathlib.Path(dir_).mkdir(parents=True) - super().__init__(str(pathlib.Path(dir_) / filename)) - kwargs['filename'] = pathlib.Path(dir_) / filename - kwargs['mode'] = 'w+' - - self._handler = logging.FileHandler(**kwargs) - self._handler.setFormatter(CustomFormatter(set_time=False)) - self._handler.setLevel(logging.DEBUG) - - def __getattr__(self, attr): - """Custom attribute handler for correct attribute access redirecting""" - if hasattr(self._handler, attr): - return getattr(self._handler, attr) - raise AttributeError - - -class CustomFormatter(logging.Formatter): - """Custom wrapper for logging.Formatter""" - - def __init__(self, set_time: typing.Optional[bool] = True, fmt: typing.Optional[str] = None, - datefmt: typing.Optional[str] = None): - super().__init__(fmt, datefmt) - self.baseline = len(inspect.stack()) - self.has_time = set_time - - def format(self, record: logging.LogRecord) -> str: # noqa ignore=A003 - record.indent = '' - record.message = record.getMessage().split('\n') - output = '' - for i in record.message: - if len(i.strip()) > 0: - msg = ' ' * 10 + '| ' + i if len(record.message) > 1 else i - if self.has_time: - format_time = f'[{self.formatTime(record, "%Y-%m-%d %H:%M:%S")}]' - level = record.levelname.ljust(8) - else: - format_time = '' - level = '' - output += f'{format_time} {level} {record.indent} {msg}\n' - output = output[:-1] - if record.exc_info: - # Cache the traceback text to avoid converting it multiple times - # (it's constant anyway) - if not record.exc_text: - exc_text = self.formatException(record.exc_info) - record.exc_text = self.format_exception_better(exc_text) - if record.exc_text: - if output[-1:] != '\n': - output += '\n' - output += record.exc_text - if record.stack_info: - if output[-1:] != '\n': - output += '\n' - output += self.formatStack(record.stack_info) - - return output - - @staticmethod - def format_exception_better(text: str) -> str: - """Custom exception output formatter""" - output = '' - for i in text.split('\n'): - output += ' ' * 10 + f'| {i}\n' - return output[:-1] diff --git a/utils/render.py b/utils/render.py deleted file mode 100644 index c3fb1208..00000000 --- a/utils/render.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Module handling Dockerfile generating""" -import argparse -import logging -import os -import pathlib -import typing - -import jinja2 - -from utils.exceptions import LayerNotFoundError -from utils.utilities import get_folder_structure_recursively - -log = logging.getLogger('docker_ci') - - -class DockerFileRender: - """Handles the creation of dockerfile based on templates and CLI parameters""" - - def __init__(self, os_target: str): - self.log = jinja2.make_logging_undefined(logger=log) - self.location = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) - self.os_target = os_target - self.templates_folders = get_folder_structure_recursively(os.path.join(self.location, 'templates', os_target), - ('.*j2',)) - self.env = jinja2.Environment(loader=jinja2.FileSystemLoader(self.templates_folders), autoescape=True) - - def get_base_template(self) -> jinja2.environment.Template: - """Getting base template, above which all additional layers will be applied""" - return self.env.get_template('base.dockerfile.j2') - - def get_template(self, name: str, kwargs: typing.Dict[str, str]) -> jinja2.environment.Template: - """Getting needed template file""" - try: - return self.env.get_template(f'{name}.dockerfile.j2', globals=kwargs) - except jinja2.exceptions.TemplateNotFound: - raise LayerNotFoundError(f'Layer {name}.dockerfile.j2 was not found. ' - f'Please add your layer.dockerfile.j2 to ' - f'/templates//layers folder') - - def generate_dockerfile(self, args: argparse.Namespace, save_to_dir: pathlib.Path, - kwargs: typing.Dict[str, str]) -> pathlib.Path: - """Creating of dockerfile based on templates and CLI parameters""" - pre_stage = [] - main_stage = [] - if 'win' in args.os: - if args.python == 'python38': - pre_stage.append(args.pre_stage_msbuild) - pre_stage.append('vs') - pre_stage.append('pre_python38') - if args.msbuild: - main_stage.append(args.msbuild) - main_stage.append(args.cmake) - main_stage.append('vs') - main_stage.extend([args.python, args.source, args.install_type, *args.device, args.distribution]) - else: - env = f'{args.distribution}_env' - pre_device_settings = [] - pre_devices = ['vpu'] - for device in pre_devices: - if device in args.device: - pre_device_settings.append(f'pre_{device}') - pre_stage.extend([args.source, args.install_type, env, *pre_device_settings]) - main_stage.extend([env, args.python, args.distribution, *args.device]) - - pre_commands = [self.get_template(arg, kwargs).render() for arg in pre_stage] - commands = [self.get_template(arg, kwargs).render() for arg in main_stage] - layers = [self.get_template(arg, kwargs).render() for arg in args.layers] - if args.rhel_platform != 'docker': - save_to_dir /= args.rhel_platform - if not save_to_dir.exists(): - save_to_dir.mkdir() - save_to = save_to_dir / args.dockerfile_name - self.get_base_template().stream(pre_commands=pre_commands, commands=commands, - layers=layers, **kwargs).dump(str(save_to)) - log.info('Dockerfile was generated successfully') - log.info(f'Generated dockerfile location {str(save_to)}') - return save_to diff --git a/utils/tester.py b/utils/tester.py deleted file mode 100644 index 6191e8c1..00000000 --- a/utils/tester.py +++ /dev/null @@ -1,177 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Module that handles running tests on Docker image""" -import logging -import pathlib -import typing - -from docker.errors import APIError, ImageNotFound -from docker.models.containers import Container -from docker.models.images import Image - -from utils import logger -from utils.docker_api import DockerAPI -from utils.exceptions import FailedTestError -from utils.utilities import get_system_proxy - -log = logging.getLogger('docker_ci') - - -class DockerImageTesterBase(DockerAPI): - """Wrapper for docker.api.client implementing custom docker.image.run execution and logging""" - - def __init__(self, registry=''): - super().__init__() - self.container: typing.Optional[Container] = None - self.registry = registry - log.setLevel(logging.DEBUG) - - def stop(self): - """Stop the container""" - if self.container: - self.container.stop() - - def _get_logfile_path(self, image_tag, name): - """Get path to logfile for specified test name""" - file_tag = image_tag.replace('/', '_').replace(':', '_') - return pathlib.Path(self.location) / 'logs' / file_tag / f'{name}.log' - - def _exec_and_log_output(self, commands: typing.List[str], logfile: pathlib.Path, prefix: str): - """Run specified commands in the container and write output to the log""" - if not self.container: - raise FailedTestError(f'{prefix}: container is not running before commands execution') - output_total = [] - for command in commands: - output_total.append(f' === executing command: {command} ===') - exit_code, output = self.container.exec_run(cmd=command) - output_total.append(output.decode('utf-8')) - if exit_code != 0: - log.error(f'- {prefix}: command {command} have returned non-zero exit code {exit_code}') - log.error(f'Failed command stdout: {output_total[-1]}') - logger.switch_to_custom(logfile, str(logfile.parent)) - for output in output_total: - log.error(str(output)) - logger.switch_to_summary() - raise FailedTestError(f'{prefix}: command {command} ' - f'have returned non-zero exit code {exit_code}') - self.container.reload() - if self.container.status != 'running': - raise FailedTestError(f'{prefix}: command exit code is 0, ' - 'but container status != "running" after this command') - logger.switch_to_custom(logfile, str(logfile.parent)) - for output in output_total: - log.info(str(output)) - logger.switch_to_summary() - - def __del__(self): - """Custom __del__ to manually stop (but not remove) testing container""" - self.stop() - super().__del__() - - -class DockerImageTester(DockerImageTesterBase): - def __init__(self, registry=''): - super().__init__(registry) - - def test_docker_image(self, - image: typing.Tuple[Image, str], - commands: typing.List[str], test_name: str, - is_cached: bool = False, **kwargs: typing.Optional[typing.Dict]): - """Running list of commands inside the container, logging the output and handling possible exceptions""" - if isinstance(image, Image): - image_tag = image.tags[0] - elif isinstance(image, str): - image_tag = image - else: - raise FailedTestError(f'{image} is not a proper image, must be of "str" or "docker.models.images.Image"') - logfile = self._get_logfile_path(image_tag, test_name) - - run_kwargs = {'auto_remove': True, - 'detach': True, - 'use_config_proxy': True, - 'environment': get_system_proxy(), - 'stdin_open': True, - 'tty': True, - 'user': 'root'} - if kwargs is not None: - run_kwargs.update(kwargs) - - try: - if self.container and image not in self.container.image.tags: - self.container.stop() - self.container = None - if self.container and not is_cached: - self.container.stop() - if not self.container or not is_cached: - try: - self.client.images.get(image_tag) - except ImageNotFound: - image_tag_full = f'{self.registry}{"/" if self.registry else ""}{image_tag}' - log.warning(f'Image {image_tag_full} not found. Trying to pull it...') - self.client.images.pull(image_tag_full) - self.client.images.get(image_tag_full).tag(image_tag) - self.container = self.client.containers.run(image=image, **run_kwargs) - except APIError as err: - raise FailedTestError(f'Docker daemon API error while starting the container: {err}') - - if not self.container: - raise FailedTestError('Cannot create/start the container') - - try: - self._exec_and_log_output(commands, logfile, f'Test {test_name}') - except APIError as err: - raise FailedTestError(f'Docker daemon API error while executing test {test_name}: {err}') - - -class DockerImageTesterSharedContainer(DockerImageTesterBase): - def __init__(self, image, container_name, init_commands: typing.List[str], registry='', - **init_kwargs: typing.Optional[typing.Dict]): - super().__init__(registry) - - if isinstance(image, Image): - image_tag = image.tags[0] - elif isinstance(image, str): - image_tag = image - else: - raise FailedTestError(f'{image} is not a proper image, must be of "str" or "docker.models.images.Image"') - - self.container_name: str = container_name - self.image_tag: str = image_tag - - logfile = self._get_logfile_path(self.image_tag, container_name) - - run_kwargs = {'auto_remove': True, - 'detach': True, - 'use_config_proxy': True, - 'environment': get_system_proxy(), - 'stdin_open': True, - 'tty': True, - 'user': 'root'} - if init_kwargs is not None: - run_kwargs.update(init_kwargs) - - try: - self.container = self.client.containers.run(image=image, **run_kwargs) - except APIError as err: - raise FailedTestError(f'Docker daemon API error while starting the container: {err}') - if not self.container: - raise FailedTestError('Cannot create/start the container') - - try: - self._exec_and_log_output(init_commands, logfile, f'Init {container_name}') - except APIError as err: - raise FailedTestError(f'Docker daemon API error while initializing container {container_name}: {err}') - - def run_test(self, commands: typing.List[str], test_name: str): - """Running list of commands inside the container, logging the output and handling possible exceptions""" - - logfile = self._get_logfile_path(self.image_tag, test_name) - - if not self.container: - raise FailedTestError('The container is not running') - - try: - self._exec_and_log_output(commands, logfile, f'Test {test_name}') - except APIError as err: - raise FailedTestError(f'Docker daemon API error while executing test {test_name}: {err}') diff --git a/utils/tests/__init__.py b/utils/tests/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/utils/tests/check_loader_links.py b/utils/tests/check_loader_links.py deleted file mode 100644 index 8940ee17..00000000 --- a/utils/tests/check_loader_links.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Utility to check URLs of the release packages embedded inside loader.py""" -import argparse -import os -import sys -import typing -from urllib.request import Request, urlopen -from urllib.error import URLError -from ..loader import INTEL_OPENVINO_VERSION -import logging - -logger = logging.getLogger(__name__) - - -def check_and_print_error(cond, error_msg: str) -> bool: - """Check condition and print specified error message if it false""" - if not cond: - logger.info(error_msg) - return bool(cond) - - -def check_release_links(product_version: str) -> typing.Set[bool]: - """Check some conditions for package URLs of specified release - - Examples: - * URL must contain the version of the corresponding release with correct distribution - * Files must be available - """ - is_minor_release = product_version.count('.') >= 2 - major_version = product_version.rpartition('.')[0] if is_minor_release else product_version - packages = INTEL_OPENVINO_VERSION[product_version] - - results: typing.Set[bool] = set() - for image_os in packages: - for dist in packages[image_os]: - url = packages[image_os][dist] - prefix = f'{image_os} {dist}: {url} -' - # check version and distribution suffixes - if product_version == '2020.1' and image_os == 'ubuntu18' and dist == 'dev': - results.add(check_and_print_error(url.count(major_version) == 1, f'{prefix} wrong release')) - results.add(check_and_print_error(dist in url, f'{prefix} wrong distribution in url')) - elif major_version >= '2022.2': - # Staring from 2022.2 there is only one package per OS, without dev/runtime versions - results.add(check_and_print_error(url.count(major_version) == 2, f'{prefix} wrong * release')) - elif dist != 'proprietary': - results.add(check_and_print_error(url.count(major_version) == 2, f'{prefix} wrong release')) - results.add(check_and_print_error(dist in url, f'{prefix} wrong distribution in url')) - else: - results.add(check_and_print_error(url.count(major_version) == 1, f'{prefix} wrong release')) - results.add(check_and_print_error('runtime' not in url and 'dev' not in url, - f'{prefix} wrong distribution in url')) - - # check w_ and l_ prefixes - if 'win' in image_os: - results.add(check_and_print_error('/w_' in url, f'{prefix} wrong os prefix')) - else: - if dist != 'proprietary': - results.add(check_and_print_error(image_os in url, - f'{image_os} {dist}: {url} - wrong image_os')) - results.add(check_and_print_error('/l_' in url, f'{prefix} wrong os prefix')) - - # check package availability - req = Request(url, method='HEAD') - try: - response = urlopen(req, timeout=4) # nosec # noqa: S310 - length = int(response.headers['Content-Length']) - if response.status != 200 or length <= 1000000: - results.add(check_and_print_error(False, f'{prefix} network error {response.status}, ' - f'size {length}')) - except URLError: - results.add(check_and_print_error(False, f'{prefix} timeout error')) - - logger.info(f'{product_version} - done') - return results - - -if __name__ == '__main__': - parser = argparse.ArgumentParser(prog=os.path.basename(__file__), - description='Small utility to check embedded URLs of release packages', - add_help=True) - parser.add_argument( - '--product_version', - nargs='?', - default='', - help='Product version to check package URLs', - ) - args = parser.parse_args() - results_set: typing.Set[bool] = set() - if args.product_version: - results_set = results_set.union(check_release_links(args.product_version)) - else: - for version in INTEL_OPENVINO_VERSION: - results_set = results_set.union(check_release_links(version)) - - if len(results_set) == 1 and next(iter(results_set)): - logger.info('SUCCESS') - exit_code = 0 - else: - logger.info('FAILED') - exit_code = -1 - sys.exit(exit_code) diff --git a/utils/tests/test_arg_parser.py b/utils/tests/test_arg_parser.py deleted file mode 100644 index aa38b1ee..00000000 --- a/utils/tests/test_arg_parser.py +++ /dev/null @@ -1,580 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -import argparse -import pathlib -from unittest import mock - -import pytest - -from utils.arg_parser import parse_args - -default_args = { - 'build_arg': [], - 'cmake': 'cmake314', - 'device': None, - 'distribution': None, - 'dockerfile_name': None, - 'file': None, - 'layers': [], - 'linter_check': [], - # 'mode':'build', - 'msbuild': None, - 'pre_stage_msbuild': None, - 'rhel_platform': 'docker', - 'os': 'ubuntu18', - 'package_url': None, - 'product_version': None, - 'python': None, - 'source': 'url', - 'tags': None, - 'tag_postfix': '', -} - - -@pytest.mark.parametrize(('args', 'res'), [ - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino.zip', - 'distribution': 'dev', - 'source': 'local', - 'os': 'ubuntu22', - 'product_version': '2022.1.0', - 'image_json_path': 'image_data.json', - }, - { - 'device': ['cpu', 'gpu'], - 'dockerfile_name': 'openvino_cg_dev_2022.1.0.dockerfile', - 'python': 'python310', - 'tags': ['ubuntu22_dev:2022.1.0', 'ubuntu22_dev:latest'], - 'image_json_path': pathlib.Path('image_data.json').absolute(), - 'install_type': 'copy', - }, - id='set product_version, distribution and image_json_path manually', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_genai_ubuntu22_2024.5.0.0_x86_64.tar.gz', - 'distribution': 'dev', - 'os': 'ubuntu22', - 'source': 'local', - }, - { - 'device': ['cpu', 'gpu'], - 'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dockerfile', - 'python': 'python310', - 'tags': ['ubuntu22_dev:2024.5.0.0', 'ubuntu22_dev:latest'], - 'distribution': 'dev', - 'install_type': 'copy', - 'product_version': '2024.5.0.0', - }, - id='parse product_version from package_url', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_genai_ubuntu22_2024.5.0.0_x86_64.tar.gz', - 'os': 'ubuntu22', - 'distribution': 'dev', - 'source': 'local', - 'tag_postfix': '_qqq', - }, - { - 'device': ['cpu', 'gpu'], - 'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dockerfile', - 'python': 'python310', - 'tags': ['ubuntu22_dev:2024.5.0.0', 'ubuntu22_dev:latest', 'ubuntu22_dev:2024.5.0.0_qqq'], - 'distribution': 'dev', - 'install_type': 'copy', - 'product_version': '2024.5.0.0', - }, - id='check tag postfix', - ), - # pytest.param( - # { - # 'mode': 'build', - # 'package_url': 'openvino_dev_p_2022.1.0.320.zip', - # 'source': 'local', - # 'os': 'winserver2019', - # 'pre_stage_msbuild': 'msbuild2019_online', - # }, - # { - # 'device': ['cpu'], - # 'dockerfile_name': 'openvino_c_dev_2022.1.0.dockerfile', - # 'python': 'python310', - # 'tags': ['winserver2019_dev:2022.1.0.320', 'winserver2019_dev:latest'], - # 'distribution': 'dev', - # 'product_version': '2022.1.0', - # }, - # id='winserver2019', - # ), - # pytest.param( - # { - # 'mode': 'build', - # 'package_url': 'openvino_dev_p_2022.1.0.320.zip', - # 'distribution': 'base', - # 'file': 'openvino_c_base_2022.1.dockerfile', - # 'source': 'local', - # }, - # { - # 'device': ['cpu'], - # 'dockerfile_name': 'openvino_c_base_2022.1.0.dockerfile', - # 'python': 'python310', - # 'tags': ['ubuntu18_base_cpu:2022.1.0', 'ubuntu18_base_cpu:latest'], - # 'distribution': 'base', - # 'product_version': '2022.1.0', - # }, - # id='ubuntu base', - # ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_dev_p_2022.1.320.zip', - 'source': 'local', - 'os': 'ubuntu22', - 'product_version': '2022.1.0', - }, - { - 'device': ['cpu', 'gpu'], - 'python': 'python310', - 'dockerfile_name': 'openvino_cg_dev_2022.1.0.dockerfile', - 'tags': ['ubuntu22_dev:2022.1.0', 'ubuntu22_dev:latest'], - 'distribution': 'dev', - 'product_version': '2022.1.0', - }, - id='build_id = product_version', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_dev_p_2022.1.320.zip', - 'source': 'local', - 'os': 'ubuntu22', - 'product_version': '2022.1', - }, - { - 'device': ['cpu', 'gpu'], - 'python': 'python310', - 'dockerfile_name': 'openvino_cg_dev_2022.1.0.dockerfile', - 'tags': ['ubuntu22_dev:2022.1.0', 'ubuntu22_dev:latest'], - 'distribution': 'dev', - 'product_version': '2022.1.0', - }, - id='alias for product_version YYYY.U', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_genai_ubuntu22_2024.5.0.0.dev20240905_x86_64.tar.gz', - 'os': 'ubuntu22', - 'distribution': 'dev', - 'source': 'local', - }, - { - 'device': ['cpu', 'gpu'], - 'python': 'python310', - 'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dev20240905.dockerfile', - 'tags': ['ubuntu22_dev:2024.5.0.0.dev20240905', 'ubuntu22_dev:latest'], - 'distribution': 'dev', - 'product_version': '2024.5.0.0.dev20240905', - 'build_id': '2024.5.0.0.dev20240905', - }, - id='dev product version', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_genai_ubuntu22_2024.5.0.0_x86_64.tar.gz', - 'source': 'local', - 'os': 'ubuntu22', - 'distribution': 'dev', - 'tags': ['my_tag:latest'], - 'device': ['cpu', 'gpu'], - }, - { - 'device': ['cpu', 'gpu'], - 'python': 'python310', - 'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dockerfile', - 'tags': ['my_tag:latest'], - 'distribution': 'dev', - 'product_version': '2024.5.0.0', - }, - id='set tags and device manually', - ), - pytest.param( - { - 'mode': 'test', - 'distribution': 'dev', - 'tags': ['my_tag:latest'], - 'test_expression': 'cpu', - 'product_version': '2022.3.0', - }, - { - 'wheels_version': '2022.3.0', - }, - id='(Test) Set product_version manually', - ), - pytest.param( - { - 'mode': 'test', - 'distribution': 'dev', - 'tags': ['my_tag:latest'], - 'test_expression': 'cpu', - 'package_url': 'p_2022.3.2.117', - }, - { - 'product_version': '2022.3.2', - 'wheels_version': '2022.3.2', - }, - id='(Test) Parse product_version from package_url', - ), - pytest.param( - { - 'mode': 'test', - 'distribution': 'dev', - 'tags': ['my_tag:2022.3.1.117'], - 'test_expression': 'cpu', - }, - { - 'product_version': '2022.3.1', - 'wheels_version': '2022.3.1', - }, - id='(Test) Parse product_version from tags', - ), - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_genai_ubuntu22_2024.5.0.0_x86_64.tar.gz', - 'source': 'local', - 'os': 'ubuntu22', - 'distribution': 'dev', - 'registry': 'https://deploy', - }, - { - 'device': ['cpu', 'gpu'], - 'python': 'python310', - 'tags': ['ubuntu22_dev:2024.5.0.0', 'ubuntu22_dev:latest'], - 'dockerfile_name': 'openvino_cg_dev_2024.5.0.0.dockerfile', - 'distribution': 'dev', - 'product_version': '2024.5.0.0', - }, - id='Successful all', - ), - pytest.param( - { - 'mode': 'deploy', - 'registry': 'https://deploy', - 'tags': ['deploy:latest'], - 'product_version': '2022.1.1', - }, - { - }, - id='Successful deploy', - ), - pytest.param( - { - 'mode': 'test', - 'tags': ['custom:no-cv'], - 'distribution': 'custom', - 'product_version': '2024.3.0', - 'package_url': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_ubuntu22_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - }, - { - 'distribution': 'custom-no-cv', - 'product_version': '2024.3.0', - 'package_url': 'https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/linux/' - 'l_openvino_toolkit_ubuntu22_2024.3.0.16041.1e3b88e4e3f_x86_64.tgz', - }, - id='Successful test custom image', - ), - -]) -@mock.patch('utils.arg_parser.DockerCIArgumentParser.parse_args') -@mock.patch('pathlib.Path.exists') -def test_arg_parser_success(mock_exists, mock_parser, args, res): - args = dict(list(default_args.items()) + list(args.items())) - res = dict(list(args.items()) + list(res.items())) - - mock_exists.return_value = True - mock_parser.return_value = argparse.Namespace(**args) - - out = vars(parse_args('', '')) - for key in res: - if out[key] != res[key] and key != 'file': - pytest.fail(f'{key}: {out[key]} != {res[key]}') - - -@pytest.mark.parametrize(('args', 'parser_out'), [ - pytest.param( - { - 'mode': 'gen_dockerfile', - 'distribution': 'base', - }, - 'Generating dockerfile for base distribution is not available', - id='gen_dockerfile base error', - ), - pytest.param( - { - 'mode': 'all', - 'distribution': 'base', - }, - 'The following argument is required: -f/--file', - id='Build base image without --file', - ), - pytest.param( - { - 'mode': 'build', - 'distribution': 'dev', - 'product_version': '2055.5.9', - }, - 'Cannot find package url for 2055.5.9 version and dev distribution. Please specify --package_url directly.', - id='Incorrect openvino version', - ), - pytest.param( - { - 'mode': 'deploy', - 'distribution': 'runtime', - }, - 'The following argument is required: -t/--tags', - id='deploy --tags error', - ), - pytest.param( - { - 'mode': 'build', - }, - 'Insufficient arguments. Provide --package_url or --distribution (with optional --product_version) arguments', - id='Build without --package_url, --distribution, --product_version', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'https://openvino_p_2020.1.314_pack.zip', - }, - 'Cannot get distribution type from the package URL provided', - id='distribution error', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_dev_p_2020.1.314.zip', - 'source': 'local', - }, - 'Provided local path of the package should be relative to', - id='Local package path with --source local', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'openvino_dev_p_2020.1.314.zip', - }, - 'Provided URL is not supported, use http://, https:// or ftp:// access scheme', - id='Local package path with --source url', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'http://openvino_dev_p_2020.1.314.zip', - 'sdl_check': ['kek'], - }, - 'Incorrect arguments for --sdl_check. Available tests: snyk, bench_security', - id='sdl_check error', - ), - pytest.param( - { - 'mode': 'build', - 'package_url': 'http://openvino_dev_p_2020.1.314.zip', - 'linter_check': ['kek'], - }, - 'Incorrect arguments for --linter_check. Available tests: hadolint, dive', - id='linter_check error', - ), - pytest.param( - { - 'mode': 'test', - 'distribution': 'dev', - 'test_expression': 'cpu', - }, - "Options --tags and --distribution are mandatory. Image operation system is 'ubuntu18' by default.", - id='Test without --tags', - ), - pytest.param( - { - 'mode': 'test', - 'test_expression': 'cpu', - 'tags': ['test:latest'], - }, - "Options --tags and --distribution are mandatory. Image operation system is 'ubuntu18' by default.", - id='Test without --distribution', - ), - pytest.param( - { - 'mode': 'deploy', - 'registry': 'https://deploy', - }, - 'The following argument is required: -t/--tags', - id='Deploy without --tags', - ), - pytest.param( - { - 'mode': 'deploy', - 'tags': ['deploy:latest'], - 'product_version': '2022.1', - }, - 'Option --registry is mandatory for this mode.', - id='Deploy without --registry', - ), - pytest.param( - { - 'mode': 'all', - 'package_url': 'http://openvino_dev_p_2020.1.314.zip', - }, - 'Option --registry is mandatory for this mode.', - id='All without --registry', - ), - pytest.param( - { - 'mode': 'build', - 'tags': ['custom:no-cv'], - 'distribution': 'custom', - }, - 'For a custom distribution, only test and deploy modes are available.', - id='Use custom image in not test or deploy mode', - ), - pytest.param( - { - 'mode': 'build', - 'product_version': '2021.4', - 'distribution': 'dev', - }, - 'This version of the DockerHub CI framework does not support OpenVINO releases earlier than 2022.1.0.', - id='Unsupported product_version', - ), -]) -@mock.patch('utils.arg_parser.DockerCIArgumentParser.parse_args') -def test_arg_parser_error(mock_parser, args, capsys, parser_out): - args = dict(list(default_args.items()) + list(args.items())) - - mock_parser.return_value = argparse.Namespace(**args) - - with pytest.raises(SystemExit): - parse_args('', '') - - out, err = capsys.readouterr() - if parser_out not in err: - pytest.fail(err) - - -@pytest.mark.parametrize(('args', 'exists', 'is_symlink', 'parser_out'), [ # noqa CFQ002 - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_dev_p_2020.1.320.zip', - 'source': 'local', - 'registry': 'https://deploy', - }, - True, - True, - 'Do not use symlink and hard link to specify local package url. It is an insecure way.', - id='package_url is symlink', - ), - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_dev_p_2020.1.320.zip', - 'source': 'local', - 'registry': 'https://deploy', - }, - False, - False, - 'Provided local path of the package should be relative to ', - id='package_url is not exists', - ), - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_dev_p_2020.1.320.zip', - 'source': 'local', - 'registry': 'https://deploy', - 'file': 'dockerfile', - }, - True, - True, - 'Do not use symlink and hard link for --file key. It is an insecure way', - id='file is symlink', - ), - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_dev_p_2020.1.320.zip', - 'source': 'local', - 'registry': 'https://deploy', - 'file': 'dockerfile', - }, - False, - False, - 'Cannot find specified Dockerfile', - id='file is not exists', - ), -]) -@mock.patch('utils.arg_parser.DockerCIArgumentParser.parse_args') -@mock.patch('pathlib.Path.exists') -@mock.patch('pathlib.Path.is_symlink') -def test_local_path(mock_is_symlink, mock_exists, mock_parser, args, exists, is_symlink, parser_out, capsys): - args = dict(list(default_args.items()) + list(args.items())) - mock_parser.return_value = argparse.Namespace(**args) - - mock_exists.return_value = exists - mock_is_symlink.return_value = is_symlink - - with pytest.raises(SystemExit): - parse_args('', '') - - out, err = capsys.readouterr() - if parser_out not in err: - pytest.fail(err) - - -@pytest.mark.parametrize(('args', 'is_symlink', 'parser_out'), [ - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_dev_p_2020.1.320.zip', - 'source': 'local', - 'registry': 'https://deploy', - 'image_json_path': 'qqq/qqq.json', - }, - True, - 'Do not use symlink and hard link for --image_json_path key. It is an insecure way.', - id='image_json_path is symlink', - ), - pytest.param( - { - 'mode': 'all', - 'package_url': 'openvino_dev_p_2020.1.320.zip', - 'source': 'local', - 'registry': 'https://deploy', - 'image_json_path': 'qqq/qqq.json', - }, - False, - 'Provided local path of the package should be relative to folder or ' - 'should be an http/https/ftp access scheme', - id='image_json_path is not symlink but package_url local', - ), -]) -@mock.patch('utils.arg_parser.DockerCIArgumentParser.parse_args') -@mock.patch('pathlib.Path.is_symlink') -def test_symlink(mock_is_symlink, mock_parser, args, is_symlink, parser_out, capsys): - args = dict(list(default_args.items()) + list(args.items())) - mock_parser.return_value = argparse.Namespace(**args) - - mock_is_symlink.return_value = is_symlink - - with pytest.raises(SystemExit): - parse_args('', '') - - out, err = capsys.readouterr() - if parser_out not in err: - pytest.fail(err) diff --git a/utils/tests/test_docker_api.py b/utils/tests/test_docker_api.py deleted file mode 100644 index db0e2a45..00000000 --- a/utils/tests/test_docker_api.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -import logging -from unittest import mock - -import pytest -import requests - -from utils.docker_api import DockerAPI -from utils.exceptions import FailedStepError - - -@pytest.mark.parametrize(('test_exception', 'res_exception'), [ - pytest.param( - requests.exceptions.ConnectionError, - FailedStepError, - id='ConnectionError', - ), -]) -@mock.patch('docker.from_env') -def test_docker_api_init_raises(mock_docker, test_exception, res_exception): - mock_docker.return_value = mock.MagicMock(**{'ping.side_effect': test_exception}) - with pytest.raises(res_exception): - DockerAPI() - - -@pytest.mark.parametrize(('vers', 'res'), [ - pytest.param( - {'Version': 1, 'ApiVersion': 2, 'MinAPIVersion': 3, 'Os': 4, 'Arch': 5, 'KernelVersion': 6}, - ('Version: 1', 'ApiVersion: 2', 'MinAPIVersion: 3', 'Os: 4', 'Arch: 5', 'KernelVersion: 6'), - id='all keys are specified', - ), - pytest.param( - {}, - ('Version: Unknown', 'ApiVersion: Unknown', 'MinAPIVersion: Unknown', - 'Os: Unknown', 'Arch: Unknown', 'KernelVersion: Unknown'), - id='keys are not specified', - ), -]) -@mock.patch('docker.from_env') -def test_docker_api_version(mock_docker, caplog, vers, res): - mock_docker.return_value = mock.MagicMock(**{'version.return_value': vers}) - caplog.set_level(logging.INFO) - DockerAPI().version() - - for ver in res: - if ver not in caplog.text: - pytest.fail('Version does not match expectation') diff --git a/utils/tests/test_docker_api_win.py b/utils/tests/test_docker_api_win.py deleted file mode 100644 index 9a4297bc..00000000 --- a/utils/tests/test_docker_api_win.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -from unittest import mock - -import pytest - -from utils.docker_api import DockerAPI -from utils.exceptions import FailedStepError - -pywintypes = pytest.importorskip('pywintypes') - - -@pytest.mark.parametrize(('test_exception', 'res_exception'), [ - pytest.param( - pywintypes.error, - pywintypes.error, - id='pywintypes.error', - ), - pytest.param( - pywintypes.error(2, 'WaitNamedPipe'), - FailedStepError, - id='WaitNamedPipe', - ), - pytest.param( - pywintypes.error(2, 'CreateFile'), - FailedStepError, - id='CreateFile', - ), -]) -@mock.patch('docker.from_env') -def test_docker_api_init_raises_win(mock_docker, test_exception, res_exception): - mock_docker.return_value = mock.MagicMock(**{'ping.side_effect': test_exception}) - with pytest.raises(res_exception): - DockerAPI() diff --git a/utils/tests/test_utilities.py b/utils/tests/test_utilities.py deleted file mode 100644 index 33e50370..00000000 --- a/utils/tests/test_utilities.py +++ /dev/null @@ -1,330 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -import pathlib -from unittest import mock - -import pytest -import requests -from utils import exceptions, utilities - - -@pytest.fixture() -def temp_file(tmp_path): - file_path = (tmp_path / 'file.txt') - file_path.write_text('hello') - return file_path - - -@pytest.mark.parametrize(('date', 'res'), [ - pytest.param( - 169310, - '1 day 23 hours 1 minute 50 seconds', - id='full date', - ), - pytest.param( - 11170.33, - '3 hours 6 minutes 10 seconds', - id='0 days', - ), - pytest.param( - 3500.74, - '58 minutes 20 seconds', - id='0 hours', - ), - pytest.param( - 0, - '0 minutes 0 seconds', - id='0 seconds', - ), -]) -def test_format_timedelta(date, res): - assert utilities.format_timedelta(date) == res # noqa: S101 # nosec - - -class TestDownloadFile: - def test_valid_url(self, temp_file): - utilities.download_file( - url='https://www.google.com/', - filename=temp_file, - ) - if not temp_file.exists(): - pytest.fail(f'{temp_file} not found') - else: - temp_file.unlink() - - @pytest.mark.parametrize(('url', 'exception'), [ - pytest.param( - 'https://www.google.com/test', - requests.HTTPError, - id='http_error', - ), - pytest.param( - '', - requests.exceptions.MissingSchema, - id='missing_schema', - ), - pytest.param( - 'http://', - requests.exceptions.InvalidURL, - id='not_host', - ), - pytest.param( - '\xED\xBF\xBF', - exceptions.InputNotValidError, - id='url string is not utf-8', - ), - pytest.param( - 'https:\00\0n', - exceptions.InputNotValidError, - id='url string with null char', - ), - ]) - def test_invalid_url(self, url, exception, temp_file): - with pytest.raises(exception): - utilities.download_file( - url=url, - filename=temp_file, - ) - - @mock.patch('requests.Session') - def test_valid_proxy(self, mock_session, temp_file): - mock_session.return_value = mock.MagicMock(**{'get.side_effect': Exception('Proxy check')}) - try: - utilities.download_file( - url='https://www.google.com/test', - proxy={'https': 'https://www.google.com/test'}, - filename=temp_file, - ) - except Exception as e: - assert str(e) == 'Proxy check' # noqa: S101 # nosec - - @pytest.mark.parametrize(('proxy', 'exception'), [ - pytest.param( - {'http': '\00\0n'}, - exceptions.InputNotValidError, - id='proxy string with null char', - ), - pytest.param( - {'https': '\xED\xBF\xBF'}, - exceptions.InputNotValidError, - id='proxy string is not utf-8', - ), - ]) - def test_invalid_proxy(self, proxy, exception, temp_file): - with pytest.raises(exception): - utilities.download_file( - url='https://www.google.com', - proxy=proxy, - filename=temp_file, - ) - - -@pytest.mark.parametrize(('mock_data', 'res'), [ - pytest.param( - None, - {}, - id='empty proxy list', - ), - pytest.param( - '1', - {'http_proxy': '1', 'https_proxy': '1', 'ftp_proxy': '1', 'no_proxy': '1', - 'HTTP_PROXY': '1', 'HTTPS_PROXY': '1', 'FTP_PROXY': '1', 'NO_PROXY': '1'}, - id='lowercase proxy list', - ), -]) -def test_get_system_proxy(mock_data, res): - with mock.patch('os.getenv') as mock_env: - mock_env.return_value = mock_data - assert utilities.get_system_proxy() == res # noqa: S101 # nosec - - -@pytest.mark.parametrize(('mock_data', 'ignore', 'res'), [ - pytest.param( - (('root', ['dir1', '.git'], ['file1.txt']), ('dir1', ['.svn', 'CVS'], ['hello.doc'])), - ('.*.txt',), - ['root', 'dir1', 'dir1/hello.doc'], - id='with ignore', - ), - pytest.param( - (('root', ['dir1', '.git'], ['file1.txt']), ('dir1', ['.svn', 'CVS'], ['hello.doc'])), - (), - ['root', 'root/file1.txt', 'dir1', 'dir1/hello.doc'], - id='without ignore', - ), -]) -@mock.patch('os.walk') -@mock.patch('os.path.exists') -def test_get_folder_structure_recursively(mock_exists, mock_walk, mock_data, ignore, res): - mock_exists.return_value = True - mock_walk.return_value = mock_data - out = [pathlib.Path(path).as_posix() for path in utilities.get_folder_structure_recursively('', ignore)] - assert out == res # noqa: S101 # nosec - - -class TestCheckPrintableUTF8Chars: - @pytest.mark.parametrize('string', [ - pytest.param( - 'https://www.google.com', - id='URL', - ), - pytest.param( - 'C:\\User\\00\\Desktop', - id='WindowsPath', - ), - pytest.param( - '/usr/tmp/app.py', - id='LinuxPath', - ), - pytest.param( - '2af2t3g3gk65l', - id='Token', - ), - pytest.param( - None, - id='None', - ), - ]) - def test_valid_input(self, string): - assert utilities.check_printable_utf8_chars(string) == string # noqa: S101 # nosec - - @pytest.mark.parametrize('string', [ - pytest.param( - 'https://www.google.com/1.py%002.zip', - id='URL', - ), - pytest.param( - 'C:\\User\00\\Desktop', - id='WindowsPath', - ), - pytest.param( - '../../web.xml\0abcdef.pdf', - id='LinuxPath', - ), - pytest.param( - '2af2%00t3g3gk65l', - id='Token', - ), - ]) - def test_invalid_input(self, string): - with pytest.raises(exceptions.InputNotValidError): - utilities.check_printable_utf8_chars(string) - - -class TestCheckInternalLocalPath: - @pytest.mark.parametrize('path', [ - pytest.param( - 'test.zip', - id='file', - ), - pytest.param( - 'hello/test.zip', - id='folder/file', - ), - pytest.param( - None, - id='None', - ), - - ]) - def test_valid_relative_path(self, path): - assert utilities.check_internal_local_path(path) == path # noqa: S101 # nosec - - @pytest.mark.parametrize('path', [ - pytest.param( - '../test.zip', - id='../', - ), - pytest.param( - '..../test.zip', - id='..../', - ), - pytest.param( - '%2e%2e/MYFILE.TXT', - id='encoded 1', - ), - pytest.param( - '%2e%2e%2fMYFILE.TXT', - id='encoded 2', - ), - pytest.param( - '%252E%252E%252FMYFILE.TXT', - id='double encoded', - ), - pytest.param( - 'MYFILE..TXT', - id='..txt', - ), - ]) - def test_invalid_relative_path(self, path): - with pytest.raises(exceptions.InputNotValidError): - utilities.check_internal_local_path(path) - - @pytest.mark.parametrize(('root', 'path'), [ - pytest.param( - 'c:/dockerhub', - 'c:/dockerhub/readme.txt', - id='file', - ), - pytest.param( - 'c:/dockerhub', - 'c:/dockerhub/utils/get_started.txt', - id='folder/file', - ), - ]) - @mock.patch('pathlib.Path') - def test_valid_abs_path(self, mock_path, root, path): - temp_mock = mock.MagicMock(**{'absolute.return_value': path}) - temp_mock.parent = root - mock_path.return_value = temp_mock - assert utilities.check_internal_local_path(path) == path # noqa: S101 # nosec - - @pytest.mark.parametrize(('root', 'path'), [ - pytest.param( - 'c:/dockerhub', - 'c:/dockerhub/../secret.txt', - id='../', - ), - pytest.param( - 'c:/dockerhub', - 'c:/dockerhub/..../secret.txt', - id='..../', - ), - pytest.param( - 'c:/dockerhub', - 'c:/desktop/secret.txt', - id='other dir', - ), - pytest.param( - '/usr/tmp/dockerhub', - '/', - id='root dir', - ), - pytest.param( - '/usr/tmp/dockerhub', - '/usr/tmp/dockerhub/%2e%2e/secret.txt', - id='encoded 1', - ), - pytest.param( - '/usr/tmp/dockerhub', - '/usr/tmp/dockerhub/%2e%2e%2fsecret.txt', - id='encoded 2', - ), - pytest.param( - '/usr/tmp/dockerhub', - '/usr/tmp/dockerhub/%252E%252E%252Fsecret.txt', - id='double encoded', - ), - pytest.param( - '/usr/tmp/dockerhub', - '/usr/tmp/dockerhub/readme..txt', - id='..txt', - ), - ]) - @mock.patch('pathlib.Path') - def test_invalid_abs_path(self, mock_path, root, path): - temp_mock = mock.MagicMock(**{'absolute.return_value': path}) - temp_mock.parent = root - mock_path.return_value = temp_mock - with pytest.raises(exceptions.InputNotValidError): - utilities.check_internal_local_path(path) diff --git a/utils/utilities.py b/utils/utilities.py deleted file mode 100644 index f0a80b1d..00000000 --- a/utils/utilities.py +++ /dev/null @@ -1,158 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2019-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 -"""Module handling auxiliary functions for the framework""" -import contextlib -import logging -import os -import pathlib -import re -import tarfile -import typing -import zipfile - -import requests -from requests.adapters import HTTPAdapter -from requests.packages.urllib3.util.retry import Retry - -from utils import exceptions - -DEFAULT_DATA_CHUNK_SIZE = 64 * 1024 # Chunk size for file downloader (64 KB) -MAX_DEPLOY_RETRIES = 5 -SLEEP_BETWEEN_RETRIES = 60 * 10 # Delay between request retries in case of some failures, in seconds - -log = logging.getLogger('docker_ci') - - -def format_timedelta(timedelta: float) -> str: - """Custom date & time formatter""" - days = int(timedelta // (24 * 3600)) - hours = int(timedelta % (24 * 3600) / 3600) # noqa: S001 - minutes = int(timedelta % 3600 / 60) - seconds = int(timedelta % 60) - str_date = '' - if days: - str_date += f'{days} day' + 's' * (days != 1) + ' ' - if hours or (days and not hours): - str_date += f'{hours} hour' + 's' * (hours != 1) + ' ' - str_date += f'{minutes} minute' + 's' * (minutes != 1) - str_date += f' {seconds} second' + 's' * (seconds != 1) - return str_date - - -def get_folder_structure_recursively(src: str, ignore: typing.Tuple[str, ...] = ()) -> typing.List[str]: - """Custom directory traverser that supports regex-based filtering""" - def should_skip(item): - for ignore_pattern in ignore_patterns: - if re.match(ignore_pattern, item): - return True - return False - - if not os.path.exists(src): - return [] - - ignore_patterns: typing.Tuple[str, ...] = ('CVS', '.git', '.svn') + ignore - - folder_structure = [] - - for root, _, file_names in os.walk(src): - if not should_skip(root): - folder_structure.append(root) - for file_name in file_names: - if not should_skip(os.path.join(root, file_name)): - folder_structure.append(os.path.join(root, file_name)) - return folder_structure - - -def get_system_proxy() -> typing.Dict[str, str]: - """Getting system proxy""" - system_proxy: typing.Dict[str, str] = {} - for proxy_name in ('http_proxy', 'https_proxy', 'ftp_proxy', 'no_proxy'): - proxy = os.getenv(proxy_name) if os.getenv(proxy_name) else os.getenv(proxy_name.upper()) - if proxy: - temp_proxy = check_printable_utf8_chars(proxy) - system_proxy[proxy_name] = temp_proxy - system_proxy[proxy_name.upper()] = temp_proxy - return system_proxy - - -def download_file(url: str, filename: pathlib.Path, - proxy: typing.Optional[typing.Dict[str, str]] = None, - parents_: bool = False, exist_ok_: bool = True, chunk_size: int = DEFAULT_DATA_CHUNK_SIZE): - """Custom file downloader that supports careful target save path handling""" - check_printable_utf8_chars(url) - - if proxy: - for key in proxy: - check_printable_utf8_chars(proxy[key]) - log.info(f'Set proxy settings: {proxy}') - else: - for key in ('HTTP_PROXY', 'HTTPS_PROXY'): - check_printable_utf8_chars(str(os.getenv(key))) - - filename.parent.mkdir(parents=parents_, exist_ok=exist_ok_) - - with contextlib.closing(requests.Session()) as http: - retries = Retry( - total=3, - backoff_factor=1, - status_forcelist=[413, 429, 500, 502, 503, 504, 10054], - ) - adapter = HTTPAdapter(max_retries=retries) - http.mount('https://', adapter) - http.mount('http://', adapter) - - with http.get(url, allow_redirects=True, proxies=proxy, stream=True) as r: - r.raise_for_status() - with filename.open(mode='wb') as f: - for chunk in r.iter_content(chunk_size): - if chunk: - f.write(chunk) - - -def unzip_file(file_path: str, target_dir: str): - """Unpack ZIP-archive to specified directory""" - if file_path.endswith('tgz'): - with tarfile.open(file_path, 'r') as tar_file: - tar_file.extractall(target_dir) - elif file_path.endswith('zip'): - with zipfile.ZipFile(file_path, 'r') as zip_file: - zip_file.extractall(target_dir) - - -def check_printable_utf8_chars(string: str) -> str: - """Validate printable UTF-8 characters for user input""" - if not isinstance(string, str): - return string - - string = requests.utils.unquote(string) # type: ignore - regex = r""" - ^(?: - [\x09\x0A\x0D\x20-\x7E] # ASCII - | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte - | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs - | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte - | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates - | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3 - | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15 - | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 - )*$ - """ - if not re.search(regex, string, re.VERBOSE | re.DOTALL): - raise exceptions.InputNotValidError(string) - return string - - -def check_internal_local_path(path: str) -> str: - if not isinstance(path, str): - return path - - root = str(pathlib.Path(os.path.realpath(__name__)).parent) - abs_path = str(pathlib.Path(path).absolute()) - # requests.utils.unquote is used twice to decode double encoded strings - abs_path = requests.utils.unquote(requests.utils.unquote(abs_path)) # type: ignore - - if '..' in abs_path or root not in abs_path: - raise exceptions.InputNotValidError( - f'Locate file inside folder: {path}. Access to the files outside is prohibited.') - return path