From 6a336a2831ef4ceda5e50d1ee94727737986a130 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 15 Jan 2026 22:32:29 +0100 Subject: [PATCH] CI: Fix container image build workflow Ubuntu Noble runners now need the `--break-system-packages` option to install system-wide Python packages. However this option is absent from pip on our Ubuntu Jammy arm64 runners. Detect the distribution version and run the appropriate command. note: Removed requests pinning as it was unpinned before. (cherry picked from commit 82075675fe59fbeafd959f2dd80cc2b892e8aa02) --- .github/workflows/stackhpc-container-image-build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stackhpc-container-image-build.yml b/.github/workflows/stackhpc-container-image-build.yml index 76eec1a64b..749492da31 100644 --- a/.github/workflows/stackhpc-container-image-build.yml +++ b/.github/workflows/stackhpc-container-image-build.yml @@ -148,7 +148,12 @@ jobs: # Normally installed during host configure. - name: Install Docker Python SDK run: | - sudo pip install docker + . /etc/os-release + if [[ $VERSION_ID == 22.04 ]]; then + sudo pip install docker + else + sudo pip install docker --break-system-packages + fi - name: Get Kolla tag id: write-kolla-tag