mirror of
https://github.com/RadeonOpenCompute/ROCm-docker.git
synced 2023-04-23 17:53:00 +03:00
update scripts for ROCm5.3
This commit is contained in:
@@ -19,11 +19,11 @@ sudo docker build . -f Dockerfile-ubuntu-20.04 -t rocm/dev-ubuntu-20.04:$ROCM_VE
|
|||||||
sudo docker tag rocm/dev-ubuntu-20.04:$ROCM_VERSION rocm/dev-ubuntu-20.04:latest
|
sudo docker tag rocm/dev-ubuntu-20.04:$ROCM_VERSION rocm/dev-ubuntu-20.04:latest
|
||||||
|
|
||||||
#ubuntu22.04
|
#ubuntu22.04
|
||||||
sudo docker build . -f Dockerfile-ubuntu-22.04 -t rocm/dev-ubuntu-22.04:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
|
sudo docker build . -f Dockerfile-ubuntu-22.04 -t rocm/dev-ubuntu-22.04:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION --build-arg=APT_PREF="Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600"
|
||||||
sudo docker tag rocm/dev-ubuntu-22.04:$ROCM_VERSION rocm/dev-ubuntu-22.04:latest
|
sudo docker tag rocm/dev-ubuntu-22.04:$ROCM_VERSION rocm/dev-ubuntu-22.04:latest
|
||||||
|
|
||||||
#ubuntu22.04 complete
|
#ubuntu22.04 complete
|
||||||
sudo docker build . -f Dockerfile-ubuntu-22.04-complete -t rocm/dev-ubuntu-22.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
|
sudo docker build . -f Dockerfile-ubuntu-22.04-complete -t rocm/dev-ubuntu-22.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION --build-arg=APT_PREF="Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600"
|
||||||
|
|
||||||
#ubuntu20.04 complete
|
#ubuntu20.04 complete
|
||||||
sudo docker build . -f Dockerfile-ubuntu-20.04-complete -t rocm/dev-ubuntu-20.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
|
sudo docker build . -f Dockerfile-ubuntu-20.04-complete -t rocm/dev-ubuntu-20.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM centos:7
|
FROM centos:7
|
||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.3
|
ARG AMDGPU_VERSION=5.3
|
||||||
# Base
|
# Base
|
||||||
RUN yum -y install git java-1.8.0-openjdk python; yum clean all
|
RUN yum -y install git java-1.8.0-openjdk python; yum clean all
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ FROM ubuntu:20.04
|
|||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
# Register the ROCM package repository, and install rocm-dev package
|
# Register the ROCM package repository, and install rocm-dev package
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.3
|
ARG AMDGPU_VERSION=5.3
|
||||||
|
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
||||||
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ FROM ubuntu:20.04
|
|||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
# Register the ROCM package repository, and install rocm-dev package
|
# Register the ROCM package repository, and install rocm-dev package
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.3
|
ARG AMDGPU_VERSION=5.3
|
||||||
|
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
||||||
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ LABEL maintainer=peng.sun@amd.com
|
|||||||
ARG ROCM_VERSION=5.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=5.3
|
ARG AMDGPU_VERSION=5.3
|
||||||
|
|
||||||
|
ARG APT_PREF
|
||||||
|
RUN echo "$APT_PREF" > /etc/apt/preferences.d/rocm-pin-600
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
||||||
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
||||||
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
|
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
|
||||||
@@ -23,4 +25,5 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
build-essential && \
|
build-essential && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN groupadd -g 109 render
|
RUN groupadd -g 109 render
|
||||||
|
|||||||
@@ -8,12 +8,13 @@ LABEL maintainer=peng.sun@amd.com
|
|||||||
ARG ROCM_VERSION=5.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=5.3
|
ARG AMDGPU_VERSION=5.3
|
||||||
|
|
||||||
|
ARG APT_PREF
|
||||||
|
RUN echo "$APT_PREF" > /etc/apt/preferences.d/rocm-pin-600
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
|
||||||
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
||||||
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
|
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
|
||||||
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu jammy main" | tee /etc/apt/sources.list.d/amdgpu.list \
|
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu jammy main" | tee /etc/apt/sources.list.d/amdgpu.list \
|
||||||
&& apt-get update \
|
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
||||||
sudo \
|
sudo \
|
||||||
libelf1 \
|
libelf1 \
|
||||||
kmod \
|
kmod \
|
||||||
@@ -25,4 +26,5 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
build-essential && \
|
build-essential && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN groupadd -g 109 render
|
RUN groupadd -g 109 render
|
||||||
|
|||||||
Reference in New Issue
Block a user