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