OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA] Switch ARM64 Docker image base to Ubuntu 22.04 (#31263)
Arseniy Obolenskiy38a3061686e5
diff --git a/.github/actions/common/constants.py b/.github/actions/common/constants.pyindex 59a79a5d946..e3d2e68b245 100644--- a/.github/actions/common/constants.py+++ b/.github/actions/common/constants.py@@ -10,7 +10,7 @@ productTypes = ('public_linux_debian_10_arm_release','public_linux_fedora_29_x86_64_release','public_linux_ubuntu_20_04_x86_64_release',- 'public_linux_ubuntu_20_04_arm64_release',+ 'public_linux_ubuntu_22_04_arm64_release','public_linux_ubuntu_22_04_x86_64_release','public_linux_ubuntu_22_04_dpcpp_x86_64_release','public_linux_ubuntu_24_04_x86_64_release',@@ -30,7 +30,7 @@ platformKeys = ('centos7_x86_64','debian10_armhf','rhel8_x86_64',- 'ubuntu20_arm64',+ 'ubuntu22_arm64','ubuntu20_x86_64','ubuntu22_x86_64','ubuntu24_x86_64',@@ -43,7 +43,7 @@ PlatformKey = Enum('PlatformKey', {t.upper(): t for t in platformKeys})PlatformMapping = {PlatformKey.DEBIAN10_ARMHF: ProductType.PUBLIC_LINUX_DEBIAN_10_ARM_RELEASE,PlatformKey.UBUNTU20_X86_64: ProductType.PUBLIC_LINUX_UBUNTU_20_04_X86_64_RELEASE,- PlatformKey.UBUNTU20_ARM64: ProductType.PUBLIC_LINUX_UBUNTU_20_04_ARM64_RELEASE,+ PlatformKey.UBUNTU22_ARM64: ProductType.PUBLIC_LINUX_UBUNTU_22_04_ARM64_RELEASE,PlatformKey.UBUNTU22_X86_64: ProductType.PUBLIC_LINUX_UBUNTU_22_04_X86_64_RELEASE,PlatformKey.UBUNTU24_X86_64: ProductType.PUBLIC_LINUX_UBUNTU_24_04_X86_64_RELEASE,PlatformKey.WINDOWS_X86_64: ProductType.PUBLIC_WINDOWS_VS2022_RELEASE,diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex 91738d93bdc..7309bdc2c15 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-31229+pr-31263\ No newline at end of filediff --git a/.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfilesimilarity index 94%rename from .github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfilerename to .github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfileindex 7309bf30ea7..979252329be 100644--- a/.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile@@ -1,5 +1,5 @@ARG REGISTRY="docker.io"-FROM ${REGISTRY}/library/ubuntu:20.04+FROM ${REGISTRY}/library/ubuntu:22.04USER root@@ -43,8 +43,8 @@ RUN apt-get update && \# For Java APIdefault-jdk \# Compiler, required for multi-isa build- gcc-10 \- g++-10 \+ gcc-11 \+ g++-11 \# JS APIxvfb \libgtk-3-0 \@@ -52,6 +52,7 @@ RUN apt-get update && \# ONNX Runtimelanguage-pack-en \&& \+ # Remove apt cacherm -rf /var/lib/apt/lists/*# Install build dependencies@@ -60,9 +61,9 @@ RUN chmod +x /install_build_dependencies.sh && \bash -e /install_build_dependencies.sh && \rm -rf /var/lib/apt/lists/*-# Set gcc-10 as a default compiler-RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 30 && \- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 30+# Set gcc-11 as a default compiler+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 30 && \+ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 30# Install sccacheARG SCCACHE_VERSION="v0.7.5"@@ -86,7 +87,7 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \python3.13 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \rm -f get-pip.py-# Use Python 3.11 as default instead of Python 3.8+# Use Python 3.11 as default instead of Python 3.10# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels buildRUN python3.11 -m venv venvENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"diff --git a/.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfilesimilarity index 95%rename from .github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfilerename to .github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfileindex 49953d096fb..374684218f0 100644--- a/.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfile@@ -1,5 +1,5 @@ARG REGISTRY="docker.io"-FROM ${REGISTRY}/library/ubuntu:20.04+FROM ${REGISTRY}/library/ubuntu:22.04USER root@@ -47,7 +47,6 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \rm -f get-pip.py-# Use Python 3.11 as default instead of Python 3.8# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels buildRUN python3.11 -m venv venvENV PATH="/venv/bin:$PATH"diff --git a/.github/workflows/clang_tidy.yml b/.github/workflows/clang_tidy.ymlindex e3ed8c78c69..b06e3dfd4fa 100644--- a/.github/workflows/clang_tidy.yml+++ b/.github/workflows/clang_tidy.yml@@ -63,7 +63,7 @@ jobs:- name: Set mock output images if pipeline should be skippedif: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}id: mock_image- run: echo "images={\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\", \"ubuntu_22_04_riscv_xuantie\":\"mock\"}}" >> "$GITHUB_OUTPUT"+ run: echo "images={\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\", \"ubuntu_22_04_arm64\":\"mock\", \"ubuntu_22_04_riscv_xuantie\":\"mock\"}}" >> "$GITHUB_OUTPUT"- name: Checkoutif: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}@@ -94,7 +94,7 @@ jobs:- name: Set mock output images if pipeline should be skippedif: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}id: mock_image- run: echo "images={\"ov_build\":{\"ubuntu_20_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+ run: echo "images={\"ov_build\":{\"ubuntu_22_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"- name: Checkoutif: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}@@ -106,7 +106,7 @@ jobs:id: handle_dockerwith:images: |- ov_build/ubuntu_20_04_arm64+ ov_build/ubuntu_22_04_arm64registry: 'openvinogithubactions.azurecr.io'dockerfiles_root_dir: '.github/dockerfiles'changed_components: ${{ needs.smart_ci.outputs.changed_components }}@@ -187,7 +187,7 @@ jobs:shell: bashruns-on: aks-linux-16-cores-32gb-armcontainer:- image: ${{ fromJSON(needs.docker_arm.outputs.images).ov_build.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker_arm.outputs.images).ov_build.ubuntu_22_04_arm64 }}volumes:- /mount:/mountoptions: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRINGdiff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.ymlindex a697d853049..29a0a67d65f 100644--- a/.github/workflows/linux_arm64.yml+++ b/.github/workflows/linux_arm64.yml@@ -1,4 +1,4 @@-name: Linux ARM64 (Ubuntu 20.04, Python 3.11)+name: Linux ARM64 (Ubuntu 22.04, Python 3.11)on:workflow_dispatch:inputs:@@ -69,7 +69,7 @@ jobs:- name: Set mock output images if pipeline should be skippedif: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}id: mock_image- run: echo "images={\"ov_test\":{\"ubuntu_20_04_arm64\":\"mock\"},\"ov_build\":{\"ubuntu_20_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"+ run: echo "images={\"ov_test\":{\"ubuntu_22_04_arm64\":\"mock\"},\"ov_build\":{\"ubuntu_22_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"- name: Checkoutif: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}@@ -81,8 +81,8 @@ jobs:id: handle_dockerwith:images: |- ov_build/ubuntu_20_04_arm64- ov_test/ubuntu_20_04_arm64+ ov_build/ubuntu_22_04_arm64+ ov_test/ubuntu_22_04_arm64registry: 'openvinogithubactions.azurecr.io'dockerfiles_root_dir: '.github/dockerfiles'changed_components: ${{ needs.Smart_CI.outputs.changed_components }}@@ -93,10 +93,10 @@ jobs:uses: ./.github/workflows/job_build_linux.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}event-name: ${{ github.event_name }}- os: 'ubuntu_20_04'+ os: 'ubuntu_22_04'arch: 'arm64'build-js: truebuild-contrib: true@@ -124,7 +124,7 @@ jobs:uses: ./.github/workflows/job_debian_packages.ymlwith:runner: 'aks-linux-4-cores-8gb-arm'- image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04'+ image: 'openvinogithubactions.azurecr.io/dockerhub/ubuntu:22.04'Samples:needs: [ Build, Docker, Smart_CI ]@@ -132,7 +132,7 @@ jobs:uses: ./.github/workflows/job_samples_tests.ymlwith:runner: 'aks-linux-8-cores-16gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}JS_API:@@ -142,7 +142,7 @@ jobs:uses: ./.github/workflows/job_openvino_js.ymlwith:runner: 'aks-linux-4-cores-8gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_arm64 }}ONNX_Runtime:name: ONNX Runtime Integration@@ -153,8 +153,8 @@ jobs:uses: ./.github/workflows/job_onnx_runtime.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}- sccache-azure-key-prefix: 'ubuntu20_aarch64_onnxruntime'+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_arm64 }}+ sccache-azure-key-prefix: 'ubuntu22_aarch64_onnxruntime'Openvino_tokenizers:name: OpenVINO tokenizers extension@@ -163,7 +163,7 @@ jobs:with:runner: 'aks-linux-8-cores-16gb-arm'shell: bash- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'target-branch: ${{ inputs.target-branch }}@@ -175,9 +175,9 @@ jobs:uses: ./.github/workflows/job_cxx_unit_tests.ymlwith:runner: 'aks-linux-8-cores-16gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}- os: 'ubuntu_20_04'+ os: 'ubuntu_22_04'Python_Unit_Tests:name: Python unit tests@@ -185,7 +185,7 @@ jobs:uses: ./.github/workflows/job_python_unit_tests.ymlwith:runner: 'aks-linux-8-cores-16gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'@@ -195,7 +195,7 @@ jobs:uses: ./.github/workflows/job_python_api_tests.ymlwith:runner: 'aks-linux-16-cores-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'@@ -205,7 +205,7 @@ jobs:uses: ./.github/workflows/job_tensorflow_layer_tests.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'@@ -215,7 +215,7 @@ jobs:uses: ./.github/workflows/job_pytorch_layer_tests.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'@@ -225,7 +225,7 @@ jobs:uses: ./.github/workflows/job_pytorch_fx_layer_tests.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'@@ -235,7 +235,7 @@ jobs:uses: ./.github/workflows/job_jax_layer_tests.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}affected-components: ${{ needs.smart_ci.outputs.affected_components }}python-version: '3.11'@@ -248,7 +248,7 @@ jobs:# Additional investigation needed why CPU functional tests are failing on v6 VM size's version,# so leave it as it is for nowrunner: 'aks-linux-16-cores-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}python-version: '3.11'scope: ${{ github.event_name == 'workflow_dispatch' && 'nightly' || 'smoke' }}@@ -261,7 +261,7 @@ jobs:uses: ./.github/workflows/job_tensorflow_models_tests.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}model_scope: 'precommit'PyTorch_Models_Tests:@@ -272,7 +272,7 @@ jobs:uses: ./.github/workflows/job_pytorch_models_tests.ymlwith:runner: 'aks-linux-16-cores-32gb-arm'- image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}+ image: ${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_arm64 }}model_scope: 'precommit'Overall_Status: