[rocprofiler-sdk] Use venv for fixing CI docker image workflow (#2955)

* use python virtual env for aws cli

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* use 7.2 amdgpu for ubuntu

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Venkateshwar Reddy Kandula
2026-01-29 08:53:15 -06:00
committed by GitHub
parent 4c458fae9c
commit a7c3e8392a
2 changed files with 6 additions and 7 deletions
@@ -47,11 +47,10 @@ jobs:
id: therock
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
python3 -m pip install -U pip
python3 -m pip install -U awscli
export PATH=~/.local/bin:$PATH
KEY=$(aws s3api list-objects-v2 \
sudo apt-get install -y python3-pip python3-venv
python3 -m venv /tmp/awscli-venv
/tmp/awscli-venv/bin/python -m pip install -U pip awscli
KEY=$(/tmp/awscli-venv/bin/aws s3api list-objects-v2 \
--bucket therock-nightly-tarball \
--no-sign-request \
--output json \
@@ -24,8 +24,8 @@ RUN set-euo pipefail; \
apt-get install -y curl wget gpg python3 python3-pip build-essential coreutils software-properties-common cmake g++-11 g++-12 libdw-dev libsqlite3-dev libdrm-dev file autoconf pkg-config rpm libzstd-dev && \
add-apt-repository ppa:git-core/ppa && \
mkdir -p /etc/apt/keyrings && \
wget -N -P /tmp/ https://repo.radeon.com/amdgpu-install/latest/ubuntu/jammy/amdgpu-install_7.1.1.70101-1_all.deb && \
apt-get install -y /tmp/amdgpu-install_7.1.1.70101-1_all.deb && \
wget -N -P /tmp/ https://repo.radeon.com/amdgpu-install/7.2/ubuntu/jammy/amdgpu-install_7.2.70200-1_all.deb && \
apt-get install -y /tmp/amdgpu-install_7.2.70200-1_all.deb && \
apt-get update && \
apt-get install -y git rocm-openmp-sdk libva-amdgpu-dev rocm-llvm-dev && \
python3 -m pip install -U awscli pipx && \