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 libgtk-vnc-2.0-dev \ 35 libpcre2-dev \ 36 libsndio-dev \ 37 libspice-protocol-dev \ 38 llvm \ 39 locales \ 40 make \ 41 meson \ 42 mtools \ 43 ncat \ 44 ninja-build \ 45 openssh-client \ 46 pkgconf \ 47 python3 \ 48 python3-numpy \ 49 python3-opencv \ 50 python3-pillow \ 51 python3-pip \ 52 python3-sphinx \ 53 python3-sphinx-rtd-theme \ 54 python3-venv \ 55 python3-yaml \ 56 rpm2cpio \ 57 rustc \ 58 sed \ 59 socat \ 60 sparse \ 61 swtpm \ 62 tar \ 63 tesseract-ocr \ 64 tesseract-ocr-eng \ 65 xorriso \ 66 zstd && \ 67 eatmydata apt-get autoremove -y && \ 68 eatmydata apt-get autoclean -y && \ 69 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ 70 dpkg-reconfigure locales && \ 71 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED 72 73ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 74ENV LANG "en_US.UTF-8" 75ENV MAKE "/usr/bin/make" 76ENV NINJA "/usr/bin/ninja" 77ENV PYTHON "/usr/bin/python3" 78 79RUN export DEBIAN_FRONTEND=noninteractive && \ 80 dpkg --add-architecture arm64 && \ 81 eatmydata apt-get update && \ 82 eatmydata apt-get dist-upgrade -y && \ 83 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 84 eatmydata apt-get install --no-install-recommends -y \ 85 gcc-aarch64-linux-gnu \ 86 libaio-dev:arm64 \ 87 libasan6:arm64 \ 88 libasound2-dev:arm64 \ 89 libattr1-dev:arm64 \ 90 libbpf-dev:arm64 \ 91 libbrlapi-dev:arm64 \ 92 libbz2-dev:arm64 \ 93 libc6-dev:arm64 \ 94 libcacard-dev:arm64 \ 95 libcap-ng-dev:arm64 \ 96 libcapstone-dev:arm64 \ 97 libcbor-dev:arm64 \ 98 libcmocka-dev:arm64 \ 99 libcurl4-gnutls-dev:arm64 \ 100 libdaxctl-dev:arm64 \ 101 libdrm-dev:arm64 \ 102 libepoxy-dev:arm64 \ 103 libfdt-dev:arm64 \ 104 libffi-dev:arm64 \ 105 libfuse3-dev:arm64 \ 106 libgbm-dev:arm64 \ 107 libgcrypt20-dev:arm64 \ 108 libglib2.0-dev:arm64 \ 109 libglusterfs-dev:arm64 \ 110 libgnutls28-dev:arm64 \ 111 libgtk-3-dev:arm64 \ 112 libibverbs-dev:arm64 \ 113 libiscsi-dev:arm64 \ 114 libjemalloc-dev:arm64 \ 115 libjpeg62-turbo-dev:arm64 \ 116 libjson-c-dev:arm64 \ 117 liblttng-ust-dev:arm64 \ 118 liblzo2-dev:arm64 \ 119 libncursesw5-dev:arm64 \ 120 libnfs-dev:arm64 \ 121 libnuma-dev:arm64 \ 122 libpam0g-dev:arm64 \ 123 libpipewire-0.3-dev:arm64 \ 124 libpixman-1-dev:arm64 \ 125 libpng-dev:arm64 \ 126 libpulse-dev:arm64 \ 127 librbd-dev:arm64 \ 128 librdmacm-dev:arm64 \ 129 libsasl2-dev:arm64 \ 130 libsdl2-dev:arm64 \ 131 libsdl2-image-dev:arm64 \ 132 libseccomp-dev:arm64 \ 133 libselinux1-dev:arm64 \ 134 libslirp-dev:arm64 \ 135 libsnappy-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