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