Add containers for each supported Linux distro

Signed-off-by: coleramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: f6d9233113]
This commit is contained in:
coleramos425
2023-04-14 11:32:57 -05:00
parent c89b9e1808
commit 38442c0daf
5 changed files with 67 additions and 0 deletions
@@ -0,0 +1,14 @@
FROM --platform=linux/amd64 rockylinux:8
RUN yum -y install epel-release
RUN yum -y install dnf-plugins-core
RUN yum -y install cmake
RUN yum -y install gcc-c++
RUN yum -y install python39
# Enable rocm package repo
COPY rocm.repo /etc/yum.repos.d
RUN yum config-manager --set-enabled powertools
# Desired ROCm packages
RUN yum -y install rocm-dev5.1.3
@@ -0,0 +1,13 @@
[ROCm-5.1.3]
name=ROCm5.1.3
baseurl=https://repo.radeon.com/rocm/centos8/5.1.3/main
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
[amdgpu]
name=amdgpu
baseurl=https://repo.radeon.com/amdgpu/latest/rhel/8.5/main/x86_64
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
@@ -0,0 +1,12 @@
FROM --platform=linux/amd64 registry.suse.com/suse/sle15:15.3
RUN zypper -n --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:/languages:/perl/SLE_15_SP3/devel:languages:perl.repo
COPY amdgpu.repo /etc/zypp/repos.d/amdgpu.repo
RUN zypper -n --gpg-auto-import-keys install rocm-dev5.1.3
RUN zypper -n install gcc-c++ && \
zypper -n install make && \
zypper -n install git
@@ -0,0 +1,13 @@
[ROCm-5.1.3]
name=ROCm5.1.3
baseurl=https://repo.radeon.com/rocm/zyp/5.1.3/main
enabled=1
gpgcheck=0
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
[amdgpu]
name=amdgpu
baseurl=https://repo.radeon.com/amdgpu/latest/sle/15.3/main/x86_64
enabled=1
gpgcheck=0
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
@@ -0,0 +1,15 @@
FROM --platform=linux/amd64 ubuntu:20.04
WORKDIR /home
USER root
ENV DEBIAN_FRONTEND noninteractive
ENV TZ "US/Chicago"
RUN apt-get update
RUN apt-get install -y wget
RUN wget https://repo.radeon.com/amdgpu-install/5.3/ubuntu/focal/amdgpu-install_5.3.50300-1_all.deb
RUN apt-get install -y ./amdgpu-install_5.3.50300-1_all.deb
RUN amdgpu-install --usecase=rocm -y --accept-eula
RUN apt-get install -y build-essential