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 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 libibverbs-dev \ 59 libiscsi-dev \ 60 libjemalloc-dev \ 61 libjpeg62-turbo-dev \ 62 libjson-c-dev \ 63 liblttng-ust-dev \ 64 liblzo2-dev \ 65 libncursesw5-dev \ 66 libnfs-dev \ 67 libnuma-dev \ 68 libpam0g-dev \ 69 libpcre2-dev \ 70 libpipewire-0.3-dev \ 71 libpixman-1-dev \ 72 libpmem-dev \ 73 libpng-dev \ 74 libpulse-dev \ 75 librbd-dev \ 76 librdmacm-dev \ 77 libsasl2-dev \ 78 libsdl2-dev \ 79 libsdl2-image-dev \ 80 libseccomp-dev \ 81 libselinux1-dev \ 82 libslirp-dev \ 83 libsnappy-dev \ 84 libsndio-dev \ 85 libspice-protocol-dev \ 86 libspice-server-dev \ 87 libssh-gcrypt-dev \ 88 libsystemd-dev \ 89 libtasn1-6-dev \ 90 libubsan1 \ 91 libudev-dev \ 92 liburing-dev \ 93 libusb-1.0-0-dev \ 94 libusbredirhost-dev \ 95 libvdeplug-dev \ 96 libvirglrenderer-dev \ 97 libvte-2.91-dev \ 98 libxdp-dev \ 99 libxen-dev \ 100 libzstd-dev \ 101 llvm \ 102 locales \ 103 make \ 104 meson \ 105 mtools \ 106 multipath-tools \ 107 ncat \ 108 nettle-dev \ 109 ninja-build \ 110 openssh-client \ 111 pkgconf \ 112 python3 \ 113 python3-numpy \ 114 python3-opencv \ 115 python3-pillow \ 116 python3-pip \ 117 python3-sphinx \ 118 python3-sphinx-rtd-theme \ 119 python3-venv \ 120 python3-yaml \ 121 rpm2cpio \ 122 sed \ 123 socat \ 124 sparse \ 125 swtpm \ 126 systemtap-sdt-dev \ 127 tar \ 128 tesseract-ocr \ 129 tesseract-ocr-eng \ 130 xorriso \ 131 zlib1g-dev \ 132 zstd && \ 133 eatmydata apt-get autoremove -y && \ 134 eatmydata apt-get autoclean -y && \ 135 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ 136 dpkg-reconfigure locales && \ 137 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \ 138 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 139 mkdir -p /usr/libexec/ccache-wrappers && \ 140 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \ 141 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \ 142 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc 143 144ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 145ENV LANG "en_US.UTF-8" 146ENV MAKE "/usr/bin/make" 147ENV NINJA "/usr/bin/ninja" 148ENV PYTHON "/usr/bin/python3" 149# netmap/cscope/global 150RUN DEBIAN_FRONTEND=noninteractive eatmydata \ 151 apt install -y --no-install-recommends \ 152 cscope\ 153 global\ 154 linux-headers-generic 155RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap 156RUN cd /usr/src/netmap && git checkout v11.3 157RUN cd /usr/src/netmap/LINUX && \ 158 ./configure --no-drivers --no-apps \ 159 --kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \ 160 && make install 161ENV QEMU_CONFIGURE_OPTS --enable-netmap 162# As a final step configure the user (if env is defined) 163ARG USER 164ARG UID 165RUN if [ "${USER}" ]; then \ 166 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 167