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