1# THIS FILE WAS AUTO-GENERATED 2# 3# $ lcitool dockerfile --layers all --cross-arch aarch64 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 bindgen \ 17 bison \ 18 bsdextrautils \ 19 bzip2 \ 20 ca-certificates \ 21 ccache \ 22 dbus \ 23 debianutils \ 24 diffutils \ 25 exuberant-ctags \ 26 findutils \ 27 flex \ 28 gcc \ 29 gcovr \ 30 gettext \ 31 git \ 32 hostname \ 33 libglib2.0-dev \ 34 llvm \ 35 locales \ 36 make \ 37 meson \ 38 mtools \ 39 ncat \ 40 ninja-build \ 41 openssh-client \ 42 pkgconf \ 43 python3 \ 44 python3-numpy \ 45 python3-opencv \ 46 python3-pillow \ 47 python3-pip \ 48 python3-sphinx \ 49 python3-sphinx-rtd-theme \ 50 python3-venv \ 51 python3-yaml \ 52 rpm2cpio \ 53 rustc \ 54 sed \ 55 socat \ 56 sparse \ 57 swtpm \ 58 tar \ 59 tesseract-ocr \ 60 tesseract-ocr-eng \ 61 xorriso \ 62 zstd && \ 63 eatmydata apt-get autoremove -y && \ 64 eatmydata apt-get autoclean -y && \ 65 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ 66 dpkg-reconfigure locales && \ 67 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED 68 69ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 70ENV LANG "en_US.UTF-8" 71ENV MAKE "/usr/bin/make" 72ENV NINJA "/usr/bin/ninja" 73ENV PYTHON "/usr/bin/python3" 74 75RUN export DEBIAN_FRONTEND=noninteractive && \ 76 dpkg --add-architecture arm64 && \ 77 eatmydata apt-get update && \ 78 eatmydata apt-get dist-upgrade -y && \ 79 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 80 eatmydata apt-get install --no-install-recommends -y \ 81 gcc-aarch64-linux-gnu \ 82 libaio-dev:arm64 \ 83 libasan6:arm64 \ 84 libasound2-dev:arm64 \ 85 libattr1-dev:arm64 \ 86 libbpf-dev:arm64 \ 87 libbrlapi-dev:arm64 \ 88 libbz2-dev:arm64 \ 89 libc6-dev:arm64 \ 90 libcacard-dev:arm64 \ 91 libcap-ng-dev:arm64 \ 92 libcapstone-dev:arm64 \ 93 libcbor-dev:arm64 \ 94 libcmocka-dev:arm64 \ 95 libcurl4-gnutls-dev:arm64 \ 96 libdaxctl-dev:arm64 \ 97 libdrm-dev:arm64 \ 98 libepoxy-dev:arm64 \ 99 libfdt-dev:arm64 \ 100 libffi-dev:arm64 \ 101 libfuse3-dev:arm64 \ 102 libgbm-dev:arm64 \ 103 libgcrypt20-dev:arm64 \ 104 libglib2.0-dev:arm64 \ 105 libglusterfs-dev:arm64 \ 106 libgnutls28-dev:arm64 \ 107 libgtk-3-dev:arm64 \ 108 libgtk-vnc-2.0-dev:arm64 \ 109 libibverbs-dev:arm64 \ 110 libiscsi-dev:arm64 \ 111 libjemalloc-dev:arm64 \ 112 libjpeg62-turbo-dev:arm64 \ 113 libjson-c-dev:arm64 \ 114 liblttng-ust-dev:arm64 \ 115 liblzo2-dev:arm64 \ 116 libncursesw5-dev:arm64 \ 117 libnfs-dev:arm64 \ 118 libnuma-dev:arm64 \ 119 libpam0g-dev:arm64 \ 120 libpcre2-dev:arm64 \ 121 libpipewire-0.3-dev:arm64 \ 122 libpixman-1-dev:arm64 \ 123 libpng-dev:arm64 \ 124 libpulse-dev:arm64 \ 125 librbd-dev:arm64 \ 126 librdmacm-dev:arm64 \ 127 libsasl2-dev:arm64 \ 128 libsdl2-dev:arm64 \ 129 libsdl2-image-dev:arm64 \ 130 libseccomp-dev:arm64 \ 131 libselinux1-dev:arm64 \ 132 libslirp-dev:arm64 \ 133 libsnappy-dev:arm64 \ 134 libsndio-dev:arm64 \ 135 libspice-protocol-dev:arm64 \ 136 libspice-server-dev:arm64 \ 137 libssh-gcrypt-dev:arm64 \ 138 libsystemd-dev:arm64 \ 139 libtasn1-6-dev:arm64 \ 140 libubsan1:arm64 \ 141 libudev-dev:arm64 \ 142 liburing-dev:arm64 \ 143 libusb-1.0-0-dev:arm64 \ 144 libusbredirhost-dev:arm64 \ 145 libvdeplug-dev:arm64 \ 146 libvirglrenderer-dev:arm64 \ 147 libvte-2.91-dev:arm64 \ 148 libxdp-dev:arm64 \ 149 libxen-dev:arm64 \ 150 libzstd-dev:arm64 \ 151 nettle-dev:arm64 \ 152 systemtap-sdt-dev:arm64 \ 153 zlib1g-dev:arm64 && \ 154 eatmydata apt-get autoremove -y && \ 155 eatmydata apt-get autoclean -y && \ 156 mkdir -p /usr/local/share/meson/cross && \ 157 printf "[binaries]\n\ 158c = '/usr/bin/aarch64-linux-gnu-gcc'\n\ 159ar = '/usr/bin/aarch64-linux-gnu-gcc-ar'\n\ 160strip = '/usr/bin/aarch64-linux-gnu-strip'\n\ 161pkgconfig = '/usr/bin/aarch64-linux-gnu-pkg-config'\n\ 162\n\ 163[host_machine]\n\ 164system = 'linux'\n\ 165cpu_family = 'aarch64'\n\ 166cpu = 'aarch64'\n\ 167endian = 'little'\n" > /usr/local/share/meson/cross/aarch64-linux-gnu && \ 168 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 169 mkdir -p /usr/libexec/ccache-wrappers && \ 170 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-cc && \ 171 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-gcc 172 173ENV ABI "aarch64-linux-gnu" 174ENV MESON_OPTS "--cross-file=aarch64-linux-gnu" 175ENV RUST_TARGET "aarch64-unknown-linux-gnu" 176ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu- 177ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user 178# As a final step configure the user (if env is defined) 179ARG USER 180ARG UID 181RUN if [ "${USER}" ]; then \ 182 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 183