1# THIS FILE WAS AUTO-GENERATED 2# 3# $ lcitool dockerfile --layers all --cross s390x 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 genisoimage \ 29 gettext \ 30 git \ 31 hostname \ 32 libglib2.0-dev \ 33 libpcre2-dev \ 34 libspice-protocol-dev \ 35 llvm \ 36 locales \ 37 make \ 38 meson \ 39 ncat \ 40 ninja-build \ 41 openssh-client \ 42 perl-base \ 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 sparse \ 56 tar \ 57 tesseract-ocr \ 58 tesseract-ocr-eng \ 59 texinfo && \ 60 eatmydata apt-get autoremove -y && \ 61 eatmydata apt-get autoclean -y && \ 62 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ 63 dpkg-reconfigure locales 64 65ENV LANG "en_US.UTF-8" 66ENV MAKE "/usr/bin/make" 67ENV NINJA "/usr/bin/ninja" 68ENV PYTHON "/usr/bin/python3" 69ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 70 71RUN export DEBIAN_FRONTEND=noninteractive && \ 72 dpkg --add-architecture s390x && \ 73 eatmydata apt-get update && \ 74 eatmydata apt-get dist-upgrade -y && \ 75 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 76 eatmydata apt-get install --no-install-recommends -y \ 77 g++-s390x-linux-gnu \ 78 gcc-s390x-linux-gnu \ 79 libaio-dev:s390x \ 80 libasan5:s390x \ 81 libasound2-dev:s390x \ 82 libattr1-dev:s390x \ 83 libbpf-dev:s390x \ 84 libbrlapi-dev:s390x \ 85 libbz2-dev:s390x \ 86 libc6-dev:s390x \ 87 libcacard-dev:s390x \ 88 libcap-ng-dev:s390x \ 89 libcapstone-dev:s390x \ 90 libcmocka-dev:s390x \ 91 libcurl4-gnutls-dev:s390x \ 92 libdaxctl-dev:s390x \ 93 libdrm-dev:s390x \ 94 libepoxy-dev:s390x \ 95 libfdt-dev:s390x \ 96 libffi-dev:s390x \ 97 libfuse3-dev:s390x \ 98 libgbm-dev:s390x \ 99 libgcrypt20-dev:s390x \ 100 libglib2.0-dev:s390x \ 101 libglusterfs-dev:s390x \ 102 libgnutls28-dev:s390x \ 103 libgtk-3-dev:s390x \ 104 libibumad-dev:s390x \ 105 libibverbs-dev:s390x \ 106 libiscsi-dev:s390x \ 107 libjemalloc-dev:s390x \ 108 libjpeg62-turbo-dev:s390x \ 109 libjson-c-dev:s390x \ 110 liblttng-ust-dev:s390x \ 111 liblzo2-dev:s390x \ 112 libncursesw5-dev:s390x \ 113 libnfs-dev:s390x \ 114 libnuma-dev:s390x \ 115 libpam0g-dev:s390x \ 116 libpixman-1-dev:s390x \ 117 libpng-dev:s390x \ 118 libpulse-dev:s390x \ 119 librbd-dev:s390x \ 120 librdmacm-dev:s390x \ 121 libsasl2-dev:s390x \ 122 libsdl2-dev:s390x \ 123 libsdl2-image-dev:s390x \ 124 libseccomp-dev:s390x \ 125 libselinux1-dev:s390x \ 126 libslirp-dev:s390x \ 127 libsnappy-dev:s390x \ 128 libssh-gcrypt-dev:s390x \ 129 libsystemd-dev:s390x \ 130 libtasn1-6-dev:s390x \ 131 libubsan1:s390x \ 132 libudev-dev:s390x \ 133 liburing-dev:s390x \ 134 libusb-1.0-0-dev:s390x \ 135 libusbredirhost-dev:s390x \ 136 libvdeplug-dev:s390x \ 137 libvirglrenderer-dev:s390x \ 138 libvte-2.91-dev:s390x \ 139 libzstd-dev:s390x \ 140 nettle-dev:s390x \ 141 systemtap-sdt-dev:s390x \ 142 xfslibs-dev:s390x \ 143 zlib1g-dev:s390x && \ 144 eatmydata apt-get autoremove -y && \ 145 eatmydata apt-get autoclean -y && \ 146 mkdir -p /usr/local/share/meson/cross && \ 147 echo "[binaries]\n\ 148c = '/usr/bin/s390x-linux-gnu-gcc'\n\ 149ar = '/usr/bin/s390x-linux-gnu-gcc-ar'\n\ 150strip = '/usr/bin/s390x-linux-gnu-strip'\n\ 151pkgconfig = '/usr/bin/s390x-linux-gnu-pkg-config'\n\ 152\n\ 153[host_machine]\n\ 154system = 'linux'\n\ 155cpu_family = 's390x'\n\ 156cpu = 's390x'\n\ 157endian = 'big'" > /usr/local/share/meson/cross/s390x-linux-gnu && \ 158 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 159 mkdir -p /usr/libexec/ccache-wrappers && \ 160 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-c++ && \ 161 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-cc && \ 162 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-g++ && \ 163 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-gcc 164 165ENV ABI "s390x-linux-gnu" 166ENV MESON_OPTS "--cross-file=s390x-linux-gnu" 167ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu- 168ENV DEF_TARGET_LIST s390x-softmmu,s390x-linux-user 169