Skip to content

Commit 5bea43f

Browse files
priteauAlex-Welsh
authored andcommitted
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 8207567)
1 parent 211c6b7 commit 5bea43f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ jobs:
157157
# Normally installed during host configure.
158158
- name: Install Docker Python SDK
159159
run: |
160-
sudo pip install docker
160+
. /etc/os-release
161+
if [[ $VERSION_ID == 22.04 ]]; then
162+
sudo pip install docker
163+
else
164+
sudo pip install docker --break-system-packages
165+
fi
161166
162167
- name: Configure localhost as a seed
163168
run: |

0 commit comments

Comments
 (0)