1# THIS FILE WAS AUTO-GENERATED 2# 3# $ lcitool dockerfile --layers all --cross-arch mips64el 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 mips64el && \ 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-mips64el-linux-gnuabi64 \ 86 libaio-dev:mips64el \ 87 libasound2-dev:mips64el \ 88 libattr1-dev:mips64el \ 89 libbpf-dev:mips64el \ 90 libbrlapi-dev:mips64el \ 91 libbz2-dev:mips64el \ 92 libc6-dev:mips64el \ 93 libcacard-dev:mips64el \ 94 libcap-ng-dev:mips64el \ 95 libcapstone-dev:mips64el \ 96 libcbor-dev:mips64el \ 97 libcmocka-dev:mips64el \ 98 libcurl4-gnutls-dev:mips64el \ 99 libdaxctl-dev:mips64el \ 100 libfdt-dev:mips64el \ 101 libffi-dev:mips64el \ 102 libfuse3-dev:mips64el \ 103 libgcrypt20-dev:mips64el \ 104 libglib2.0-dev:mips64el \ 105 libglusterfs-dev:mips64el \ 106 libgnutls28-dev:mips64el \ 107 libibverbs-dev:mips64el \ 108 libiscsi-dev:mips64el \ 109 libjemalloc-dev:mips64el \ 110 libjpeg62-turbo-dev:mips64el \ 111 libjson-c-dev:mips64el \ 112 liblttng-ust-dev:mips64el \ 113 liblzo2-dev:mips64el \ 114 libncursesw5-dev:mips64el \ 115 libnfs-dev:mips64el \ 116 libnuma-dev:mips64el \ 117 libpam0g-dev:mips64el \ 118 libpipewire-0.3-dev:mips64el \ 119 libpixman-1-dev:mips64el \ 120 libpng-dev:mips64el \ 121 libpulse-dev:mips64el \ 122 librbd-dev:mips64el \ 123 librdmacm-dev:mips64el \ 124 libsasl2-dev:mips64el \ 125 libseccomp-dev:mips64el \ 126 libselinux1-dev:mips64el \ 127 libslirp-dev:mips64el \ 128 libsnappy-dev:mips64el \ 129 libspice-server-dev:mips64el \ 130 libssh-gcrypt-dev:mips64el \ 131 libsystemd-dev:mips64el \ 132 libtasn1-6-dev:mips64el \ 133 libudev-dev:mips64el \ 134 liburing-dev:mips64el \ 135 libusb-1.0-0-dev:mips64el \ 136 libusbredirhost-dev:mips64el \ 137 libvdeplug-dev:mips64el \ 138 libxdp-dev:mips64el \ 139 libzstd-dev:mips64el \ 140 nettle-dev:mips64el \ 141 systemtap-sdt-dev:mips64el \ 142 zlib1g-dev:mips64el && \ 143 eatmydata apt-get autoremove -y && \ 144 eatmydata apt-get autoclean -y && \ 145 mkdir -p /usr/local/share/meson/cross && \ 146 printf "[binaries]\n\ 147c = '/usr/bin/mips64el-linux-gnuabi64-gcc'\n\ 148ar = '/usr/bin/mips64el-linux-gnuabi64-gcc-ar'\n\ 149strip = '/usr/bin/mips64el-linux-gnuabi64-strip'\n\ 150pkgconfig = '/usr/bin/mips64el-linux-gnuabi64-pkg-config'\n\ 151\n\ 152[host_machine]\n\ 153system = 'linux'\n\ 154cpu_family = 'mips64'\n\ 155cpu = 'mips64el'\n\ 156endian = 'little'\n" > /usr/local/share/meson/cross/mips64el-linux-gnuabi64 && \ 157 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 158 mkdir -p /usr/libexec/ccache-wrappers && \ 159 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-cc && \ 160 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-gcc 161 162ENV ABI "mips64el-linux-gnuabi64" 163ENV MESON_OPTS "--cross-file=mips64el-linux-gnuabi64" 164ENV RUST_TARGET "mips64el-unknown-linux-gnuabi64" 165ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips64el-linux-gnuabi64- 166ENV DEF_TARGET_LIST mips64el-softmmu,mips64el-linux-user 167# As a final step configure the user (if env is defined) 168ARG USER 169ARG UID 170RUN if [ "${USER}" ]; then \ 171 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 172