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
[CI] [GHA] Move `apt update/install` from workflows to Dockerfiles (#30787)
Andrei Kashchikhinae044ab61aa6
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex e5243835a64..064f7aca623 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-30572\ No newline at end of file+pr-30787\ No newline at end of filediff --git a/.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfileindex 76dcf197754..7309bf30ea7 100644--- a/.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_20_04_arm64/Dockerfile@@ -45,6 +45,12 @@ RUN apt-get update && \# Compiler, required for multi-isa buildgcc-10 \g++-10 \+ # JS API+ xvfb \+ libgtk-3-0 \+ libgbm1 \+ # ONNX Runtime+ language-pack-en \&& \rm -rf /var/lib/apt/lists/*@@ -58,7 +64,7 @@ RUN chmod +x /install_build_dependencies.sh && \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-# Install sscache+# Install sccacheARG SCCACHE_VERSION="v0.7.5"ENV SCCACHE_HOME="/opt/sccache" \SCCACHE_PATH="/opt/sccache/sccache"@@ -71,7 +77,8 @@ RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \# Setup pipENV PIP_VERSION="24.0"RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \- python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \+ curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3-8.py && \+ python3 get-pip-3-8.py --no-cache-dir pip==${PIP_VERSION} && \python3.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \@@ -86,6 +93,9 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}+# ONNX Runtime, see https://github.com/microsoft/onnxruntime/issues/13197#issuecomment-1264542497+RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8+# Install NodeENV NODE_VERSION=21.7.3ENV NVM_DIR=/.nvmdiff --git a/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfileindex 4be2aeb42a5..3df9c99f8c0 100644--- a/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile@@ -64,7 +64,8 @@ ENV PATH="$SCCACHE_HOME:$PATH"# Setup pipENV PIP_VERSION="24.0"RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \- python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \+ curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3.8.py && \+ python3 get-pip-3.8.py --no-cache-dir pip==${PIP_VERSION} && \python3.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \python3.11 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfileindex aa5f7aef088..28b173bec65 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile@@ -41,6 +41,12 @@ RUN apt-get update && \python3.13-venv \# For Java APIdefault-jdk \+ # JS API+ xvfb \+ libgtk-3-0 \+ libgbm1 \+ # ONNX Runtime+ language-pack-en \&& \rm -rf /var/lib/apt/lists/*@@ -79,6 +85,9 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}+# ONNX Runtime, see https://github.com/microsoft/onnxruntime/issues/13197#issuecomment-1264542497+RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8+# Install NodeENV NODE_VERSION=21.7.3ENV NVM_DIR=/.nvmdiff --git a/.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfileindex e46a1a2ea03..49953d096fb 100644--- a/.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_20_04_arm64/Dockerfile@@ -25,6 +25,8 @@ RUN apt-get update && \tzdata \# parallel gzippigz \+ # Samples+ clang \# Pythonpython3.11-dev \python3.11-venv \diff --git a/.github/dockerfiles/ov_test/ubuntu_20_04_x64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_20_04_x64/Dockerfileindex 9c6b4b08f49..929ccf5700c 100644--- a/.github/dockerfiles/ov_test/ubuntu_20_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_20_04_x64/Dockerfile@@ -24,6 +24,8 @@ RUN apt-get update && \tzdata \# parallel gzippigz \+ # Samples+ clang \# Pythonpython3.9-dev \python3.9-venv \@@ -41,7 +43,8 @@ RUN chmod +x /install_openvino_dependencies.sh && \# Setup pipENV PIP_VERSION="24.0"RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \- python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \+ curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3-8.py && \+ python3 get-pip-3-8.py --no-cache-dir pip==${PIP_VERSION} && \python3.9 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \rm -f get-pip.pydiff --git a/.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfileindex b6b99f81305..57d2bb7c226 100644--- a/.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile@@ -39,7 +39,8 @@ RUN chmod +x /install_openvino_dependencies.sh && \# Setup pipENV PIP_VERSION="24.0"RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \- python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \+ curl https://bootstrap.pypa.io/pip/3.8/get-pip.py -o get-pip-3-8.py && \+ python3 get-pip-3-8.py --no-cache-dir pip==${PIP_VERSION} && \python3.13 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \rm -f get-pip.pydiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfileindex e2671de629f..f1615bf3053 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile@@ -25,6 +25,8 @@ RUN apt-get update && \tzdata \# parallel gzippigz \+ # Samples+ clang \# Pythonpython3.11-dev \python3.11-venv \diff --git a/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfileindex 4cb29c01744..630d7bed6e1 100644--- a/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfile@@ -22,6 +22,8 @@ RUN apt-get update && \tzdata \# parallel gzippigz \+ # Samples+ clang \# Pythonpython3-full \libhdf5-dev \diff --git a/.github/workflows/job_onnx_runtime.yml b/.github/workflows/job_onnx_runtime.ymlindex 4b6a2bdcba6..d875473c1a8 100644--- a/.github/workflows/job_onnx_runtime.yml+++ b/.github/workflows/job_onnx_runtime.yml@@ -112,11 +112,6 @@ jobs:- name: Run onnxruntime_test_allif: ${{ runner.arch != 'ARM64' }} # Ticket: 126277run: |- # see https://github.com/microsoft/onnxruntime/issues/13197#issuecomment-1264542497- apt-get update && apt-get install --assume-yes --no-install-recommends language-pack-en- locale-gen en_US.UTF-8- update-locale LANG=en_US.UTF-8-source ${INSTALL_DIR}/setupvars.shskip_tests=$(tr -s '\n ' ':' < ${ONNX_RUNTIME_UTILS}/skip_tests)diff --git a/.github/workflows/job_openvino_js.yml b/.github/workflows/job_openvino_js.ymlindex a79c956c781..a8f8c914f86 100644--- a/.github/workflows/job_openvino_js.yml+++ b/.github/workflows/job_openvino_js.yml@@ -76,9 +76,7 @@ jobs:- name: Install electron deps and run Xvfbif: runner.os == 'Linux'- run: |- apt-get update && apt-get install -y xvfb libgtk-3-0 libgbm1- Xvfb "$DISPLAY" &+ run: Xvfb "$DISPLAY" &- name: E2E of openvino-node packageworking-directory: ${{ env.OPENVINO_JS_DIR }}diff --git a/.github/workflows/job_samples_tests.yml b/.github/workflows/job_samples_tests.ymlindex 105e22c8460..7419706af6c 100644--- a/.github/workflows/job_samples_tests.yml+++ b/.github/workflows/job_samples_tests.yml@@ -96,9 +96,7 @@ jobs:- name: Build cpp samples - Clangif: runner.os == 'Linux'- run: |- apt-get update && apt-get install -y clang- $INSTALL_DIR/samples/cpp/build_samples.sh -i $INSTALL_DIR -b $BUILD_DIR/cpp_samples_clang+ run: $INSTALL_DIR/samples/cpp/build_samples.sh -i $INSTALL_DIR -b $BUILD_DIR/cpp_samples_clangenv:CC: clangCXX: clang++