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