forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (42 loc) · 1.25 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (42 loc) · 1.25 KB
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
42
43
44
45
46
47
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq && apt-get install -y \
# Build tools
gcc gcc-aarch64-linux-gnu \
make flex bison bc pahole \
libelf-dev libssl-dev \
cpio kmod rsync \
# Static analysis
sparse coccinelle \
# QEMU
qemu-system-arm \
qemu-system-x86 \
# virtme-ng deps
busybox-static file \
# Selftest deps
libpopt-dev \
libcap-dev \
libmnl-dev \
liburcu-dev \
# LTP deps
autoconf automake libtool pkg-config \
libacl1-dev libaio-dev libnuma-dev \
libmount-dev libsctp-dev libtirpc-dev \
debootstrap e2fsprogs \
clang llvm \
# Network tools
nftables iptables iproute2 iputils-ping \
ethtool socat netcat-openbsd \
# Python
python3 python3-pip python3-yaml \
git \
&& rm -rf /var/lib/apt/lists/*
# Install virtme-ng from source so the guest init binary is compiled
# for the host architecture (aarch64), not the pre-built x86_64 binary
# bundled in the PyPI wheel.
RUN pip3 install --break-system-packages build kirk && \
git clone https://github.com/arighi/virtme-ng.git /opt/virtme-ng && \
cd /opt/virtme-ng && \
pip3 install --break-system-packages -e .
ENV PATH=$PATH:/root/.local/bin
WORKDIR /kernel