File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"]
Original file line number Diff line number Diff line change 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"]
You can’t perform that action at this time.
0 commit comments