Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / tests / docker / dockerfiles / debian.docker
blob42bd0067d1bfac034f2276df1e4954399f0bc256
1 # THIS FILE WAS AUTO-GENERATED
3 #  $ lcitool dockerfile --layers all debian-12 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:12-slim
9 RUN export DEBIAN_FRONTEND=noninteractive && \
10     apt-get update && \
11     apt-get install -y eatmydata && \
12     eatmydata apt-get dist-upgrade -y && \
13     eatmydata apt-get install --no-install-recommends -y \
14                       bash \
15                       bc \
16                       bison \
17                       bsdextrautils \
18                       bzip2 \
19                       ca-certificates \
20                       ccache \
21                       clang \
22                       dbus \
23                       debianutils \
24                       diffutils \
25                       exuberant-ctags \
26                       findutils \
27                       flex \
28                       gcc \
29                       gcovr \
30                       gettext \
31                       git \
32                       hostname \
33                       libaio-dev \
34                       libasan6 \
35                       libasound2-dev \
36                       libattr1-dev \
37                       libbpf-dev \
38                       libbrlapi-dev \
39                       libbz2-dev \
40                       libc6-dev \
41                       libcacard-dev \
42                       libcap-ng-dev \
43                       libcapstone-dev \
44                       libcmocka-dev \
45                       libcurl4-gnutls-dev \
46                       libdaxctl-dev \
47                       libdrm-dev \
48                       libepoxy-dev \
49                       libfdt-dev \
50                       libffi-dev \
51                       libfuse3-dev \
52                       libgbm-dev \
53                       libgcrypt20-dev \
54                       libglib2.0-dev \
55                       libglusterfs-dev \
56                       libgnutls28-dev \
57                       libgtk-3-dev \
58                       libgtk-vnc-2.0-dev \
59                       libibverbs-dev \
60                       libiscsi-dev \
61                       libjemalloc-dev \
62                       libjpeg62-turbo-dev \
63                       libjson-c-dev \
64                       liblttng-ust-dev \
65                       liblzo2-dev \
66                       libncursesw5-dev \
67                       libnfs-dev \
68                       libnuma-dev \
69                       libpam0g-dev \
70                       libpcre2-dev \
71                       libpipewire-0.3-dev \
72                       libpixman-1-dev \
73                       libpmem-dev \
74                       libpng-dev \
75                       libpulse-dev \
76                       librbd-dev \
77                       librdmacm-dev \
78                       libsasl2-dev \
79                       libsdl2-dev \
80                       libsdl2-image-dev \
81                       libseccomp-dev \
82                       libselinux1-dev \
83                       libslirp-dev \
84                       libsnappy-dev \
85                       libsndio-dev \
86                       libspice-protocol-dev \
87                       libspice-server-dev \
88                       libssh-gcrypt-dev \
89                       libsystemd-dev \
90                       libtasn1-6-dev \
91                       libubsan1 \
92                       libudev-dev \
93                       liburing-dev \
94                       libusb-1.0-0-dev \
95                       libusbredirhost-dev \
96                       libvdeplug-dev \
97                       libvirglrenderer-dev \
98                       libvte-2.91-dev \
99                       libxdp-dev \
100                       libxen-dev \
101                       libzstd-dev \
102                       llvm \
103                       locales \
104                       make \
105                       meson \
106                       mtools \
107                       multipath-tools \
108                       ncat \
109                       nettle-dev \
110                       ninja-build \
111                       openssh-client \
112                       pkgconf \
113                       python3 \
114                       python3-numpy \
115                       python3-opencv \
116                       python3-pillow \
117                       python3-pip \
118                       python3-sphinx \
119                       python3-sphinx-rtd-theme \
120                       python3-venv \
121                       python3-yaml \
122                       rpm2cpio \
123                       sed \
124                       socat \
125                       sparse \
126                       swtpm \
127                       systemtap-sdt-dev \
128                       tar \
129                       tesseract-ocr \
130                       tesseract-ocr-eng \
131                       xorriso \
132                       zlib1g-dev \
133                       zstd && \
134     eatmydata apt-get autoremove -y && \
135     eatmydata apt-get autoclean -y && \
136     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
137     dpkg-reconfigure locales && \
138     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
139     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
140     mkdir -p /usr/libexec/ccache-wrappers && \
141     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
142     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
143     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
145 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
146 ENV LANG "en_US.UTF-8"
147 ENV MAKE "/usr/bin/make"
148 ENV NINJA "/usr/bin/ninja"
149 ENV PYTHON "/usr/bin/python3"
150 # netmap/cscope/global
151 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
152   apt install -y --no-install-recommends \
153   cscope\
154   global\
155   linux-headers-generic
156 RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
157 RUN cd /usr/src/netmap && git checkout v11.3
158 RUN cd /usr/src/netmap/LINUX && \
159   ./configure --no-drivers --no-apps \
160   --kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \
161   && make install
162 ENV QEMU_CONFIGURE_OPTS --enable-netmap
163 # As a final step configure the user (if env is defined)
164 ARG USER
165 ARG UID
166 RUN if [ "${USER}" ]; then \
167   id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi