Skip to content

Commit ddddb0e

Browse files
committed
Add new container images based on CentOS 10 Stream
Two new additional container files build on top od CentOS 10 Stream and with the latest official release of ROCM 7.1.1.
1 parent c0dbf1d commit ddddb0e

2 files changed

Lines changed: 74 additions & 0 deletions

File tree

dev/Dockerfile-centos-10

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This dockerfile is meant to serve as a rocm base image.
2+
# It registers the CentOS stream package repository, and
3+
# installs the rocm-dev package.
4+
#
5+
# How to build container image?
6+
# $ podman build -f dev/Dockerfile-centos-10 -t rocm/dev-centos-10-stream
7+
#
8+
# How to run the container?
9+
# $ podman run --rm -it \
10+
# --name centos-10-stream-rocm \
11+
# --hostname centos-10-stream-rocm \
12+
# --device=/dev/kfd --device=/dev/dri --group-add video \
13+
# rocm/dev-centos-10-stream:latest bash
14+
15+
FROM centos/centos:stream10
16+
17+
ARG ROCM_VERSION=7.1.1
18+
ARG AMDGPU_VERSION=7.1.1
19+
20+
LABEL maintainer=dl.mlsedevops@amd.com
21+
LABEL ROCM_VERSION=$ROCM_VERSION
22+
LABEL AMDGPU_VERSION=$AMDGPU_VERSION
23+
24+
WORKDIR /work
25+
26+
# Base
27+
RUN dnf update
28+
RUN dnf install -y https://repo.radeon.com/amdgpu-install/7.1.1/rhel/10/amdgpu-install-7.1.1.70101-1.el10.noarch.rpm
29+
30+
RUN dnf install -y epel-release python3-setuptools python3-pip-wheel.noarch
31+
RUN crb enable
32+
RUN usermod -a -G render,video root
33+
34+
RUN dnf install -y rocm
35+
RUN dnf clean all
36+
37+
CMD ["/usr/bin/bash", "-l"]

dev/Dockerfile-centos-10-complete

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This dockerfile is meant to serve as a rocm base image.
2+
# It registers the CentOS stream package repository, and
3+
# installs the rocm-dev package.
4+
#
5+
# How to build container image?
6+
# $ podman build -f dev/Dockerfile-centos-10-complete -t rocm/dev-centos-10-stream
7+
#
8+
# How to run the container?
9+
# $ podman run --rm -it \
10+
# --name centos-10-stream-rocm \
11+
# --hostname centos-10-stream-rocm \
12+
# --device=/dev/kfd --device=/dev/dri --group-add video \
13+
# rocm/dev-centos-10-stream:latest bash
14+
15+
FROM centos/centos:stream10
16+
17+
ARG ROCM_VERSION=7.1.1
18+
ARG AMDGPU_VERSION=7.1.1
19+
20+
LABEL maintainer=dl.mlsedevops@amd.com
21+
LABEL ROCM_VERSION=$ROCM_VERSION
22+
LABEL AMDGPU_VERSION=$AMDGPU_VERSION
23+
24+
WORKDIR /work
25+
26+
# Base
27+
RUN dnf update
28+
RUN dnf install -y https://repo.radeon.com/amdgpu-install/7.1.1/rhel/10/amdgpu-install-7.1.1.70101-1.el10.noarch.rpm
29+
30+
RUN dnf install -y epel-release python3-setuptools python3-pip-wheel.noarch
31+
RUN crb enable
32+
RUN usermod -a -G render,video root
33+
34+
RUN dnf install -y rocm rocm-developer-tools
35+
RUN dnf clean all
36+
37+
CMD ["/usr/bin/bash", "-l"]

0 commit comments

Comments
 (0)