diff --git a/devops/containers/ubuntu2204_build.Dockerfile b/devops/containers/ubuntu2204_build.Dockerfile index d87d20539499..22844d1abd39 100644 --- a/devops/containers/ubuntu2204_build.Dockerfile +++ b/devops/containers/ubuntu2204_build.Dockerfile @@ -13,9 +13,13 @@ COPY scripts/install_build_tools.sh /install.sh RUN /install.sh RUN apt install -yqq libnuma-dev wget gnupg2 && \ - wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \ + apt-get install -yqq gcc-12 g++-12 libstdc++-12-dev && \ + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 && \ + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 + +RUN wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \ apt install -yqq ./amdgpu-install_6.1.60100-1_all.deb && \ - yes | amdgpu-install --usecase=rocmdev && \ + amdgpu-install -y --usecase=rocmdev && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*