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
Remove hard-coded PIP_CACHE_DIR from GHA dockerfiles (#36765)
Andrey Babushkina085b8416356
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex f1aa58330e6..0139f0effb9 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-36731+pr-36765diff --git a/.github/dockerfiles/ov_build/debian_10_arm/Dockerfile b/.github/dockerfiles/ov_build/debian_10_arm/Dockerfileindex b8053bb4872..fe60050d765 100644--- a/.github/dockerfiles/ov_build/debian_10_arm/Dockerfile+++ b/.github/dockerfiles/ov_build/debian_10_arm/Dockerfile@@ -254,4 +254,3 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships older version on debian 10 lacking --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/dockerfiles/ov_build/fedora_29/Dockerfile b/.github/dockerfiles/ov_build/fedora_29/Dockerfileindex 5ad9396b251..eab1cdc0157 100644--- a/.github/dockerfiles/ov_build/fedora_29/Dockerfile+++ b/.github/dockerfiles/ov_build/fedora_29/Dockerfile@@ -120,7 +120,6 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \# Install newer ninja (dnf ships older version lacking --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}# Install NodeENV NODE_VERSION=21.7.3diff --git a/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfileindex 7c6fcca4648..51c0ec400b2 100644--- a/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_20_04_x64/Dockerfile@@ -80,4 +80,3 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships 1.10.0 on 20.04 which lacks --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfileindex 2b15116b3ef..e29db3fef44 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64/Dockerfile@@ -109,7 +109,6 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships 1.10.1 on 22.04 which lacks --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}# ONNX Runtime, see https://github.com/microsoft/onnxruntime/issues/13197#issuecomment-1264542497RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfileindex c5cfa4a8bd7..68e1bbbfdb0 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_arm64_cross_compilation/Dockerfile@@ -123,7 +123,6 @@ RUN cd Python-3.11.3 && make distclean && \make -j4 && make altinstallENV PATH="$SCCACHE_HOME:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}# Use Python 3.11 as default# Using venv here because other methods to switch the default Python break both system and wheels builddiff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfileindex c4ed856a569..ac177c1d144 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_x64/Dockerfile@@ -100,7 +100,6 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships 1.10.1 on 22.04 which lacks --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}# ONNX Runtime, see https://github.com/microsoft/onnxruntime/issues/13197#issuecomment-1264542497RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_x64_cc/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_x64_cc/Dockerfileindex 04dd201466c..bf7e2953ae2 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_x64_cc/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_x64_cc/Dockerfile@@ -79,4 +79,3 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships 1.10.1 on 22.04 which lacks --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_x64_dpcpp/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_x64_dpcpp/Dockerfileindex 658a48ef281..6f59429a4c2 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_x64_dpcpp/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_x64_dpcpp/Dockerfile@@ -80,7 +80,6 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships 1.10.1 on 22.04 which lacks --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}# OneAPI envENV ONEAPI_ROOT=/opt/intel/oneapidiff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_x64_nvidia/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_x64_nvidia/Dockerfileindex 40c399eed38..09e4910f18f 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_x64_nvidia/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_x64_nvidia/Dockerfile@@ -78,4 +78,3 @@ ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"# Install newer ninja (apt ships 1.10.1 on 22.04 which lacks --quiet)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/dockerfiles/ov_build/ubuntu_24_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_24_04_x64/Dockerfileindex 27e42870f20..1c2a8868d43 100644--- a/.github/dockerfiles/ov_build/ubuntu_24_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_24_04_x64/Dockerfile@@ -90,4 +90,3 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \# Install newer ninja (apt ships 1.10.1 on 22.04 / 1.11.1 on 24.04; pin for consistency)RUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfileindex 52121b90980..da2aafef0e9 100644--- a/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_26_04_x64/Dockerfile@@ -67,4 +67,3 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \# Install newer ninja for consistency across imagesRUN python3 -m pip install --no-cache-dir ninja==1.13.0-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}diff --git a/.github/dockerfiles/ov_test/debian_10_py310/Dockerfile b/.github/dockerfiles/ov_test/debian_10_py310/Dockerfileindex 1cef7c2ecce..5bbe7da9960 100644--- a/.github/dockerfiles/ov_test/debian_10_py310/Dockerfile+++ b/.github/dockerfiles/ov_test/debian_10_py310/Dockerfile@@ -81,5 +81,4 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \RUN python3.10 -m venv venvENV PATH="/venv/bin:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.10/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfileindex f3a06354dcf..8d71d8c8402 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_arm64/Dockerfile@@ -62,5 +62,4 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \RUN python3.11 -m venv venvENV PATH="/venv/bin:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfileindex bf3a588c005..f972528abef 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64/Dockerfile@@ -72,5 +72,4 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \RUN python3.11 -m venv venvENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_igpu/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_igpu/Dockerfileindex 190fa446ade..3e3313fbd56 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_igpu/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_igpu/Dockerfile@@ -83,5 +83,4 @@ RUN wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-RUN python3.11 -m venv venvENV PATH="/venv/bin:$SCCACHE_HOME:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.11/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfileindex 2285456e4e0..5ab31da2758 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py313/Dockerfile@@ -51,5 +51,4 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \RUN python3.13 -m venv venvENV PATH="/venv/bin:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.13/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314/Dockerfileindex 149ad1a7184..1e2ade587d6 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314/Dockerfile@@ -51,5 +51,4 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \RUN python3.14 -m venv venvENV PATH="/venv/bin:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.14/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314t/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314t/Dockerfileindex 7549156b2ec..888fa7d86a7 100644--- a/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314t/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_22_04_x64_py314t/Dockerfile@@ -52,5 +52,4 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \RUN python3.14t -m venv venvENV PATH="/venv/bin:$PATH"-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3.14t/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfileindex 187df1b09bf..0b955d9e790 100644--- a/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_24_04_x64/Dockerfile@@ -48,5 +48,4 @@ ENV PATH="/venv/bin:$PATH"ENV PIP_VERSION="24.0"RUN /venv/bin/python3 -m pip install --upgrade pip==${PIP_VERSION}-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3/site-packagesdiff --git a/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfile b/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfileindex 1689794fdae..f118bc9102d 100644--- a/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfile+++ b/.github/dockerfiles/ov_test/ubuntu_24_04_x64_dgpu/Dockerfile@@ -69,5 +69,4 @@ ENV PATH="/venv/bin:$PATH"ENV PIP_VERSION="24.0"RUN /venv/bin/python3 -m pip install --upgrade pip==${PIP_VERSION}-ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION}ENV PIP_INSTALL_PATH=/venv/lib/python3/site-packages