-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile.rocm
41 lines (34 loc) · 1007 Bytes
/
Dockerfile.rocm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update -y -q && apt upgrade -y -q && apt update -y -q
RUN apt install -y -q \
build-essential \
curl \
file \
git \
libdrm-dev \
libelf-dev \
libnuma-dev \
libudev-dev \
mesa-common-dev \
ninja-build \
openssh-client \
pkg-config \
python3.10 \
python3.10-venv \
xxd \
xz-utils \
zlib1g-dev
RUN apt install -y -q wget
# Add github public key to known_hosts, to enable interaction-less clone
RUN mkdir /root/.ssh \
&& touch /root/.ssh/known_hosts \
&& ssh-keyscan github.com >> /root/.ssh/known_hosts
RUN git clone https://github.com/compiler-explorer/infra /opt/compiler-explorer/infra
RUN curl -sL https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-linux-x86_64.tar.gz \
| tar zx -C /usr --strip-components=1
RUN cd /opt/compiler-explorer/infra && make ce
RUN mkdir -p /root
COPY rocm /root/
COPY common.sh /root/common.sh
WORKDIR /root