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