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 gcc \ 29 gcovr \ 30 gettext \ 31 git \ 32 hostname \ 33 libaio-dev \ 34 libasan6 \ 35 libasound2-dev \ 36 libattr1-dev \ 37 libbpf-dev \ 38 libbrlapi-dev \ 39 libbz2-dev \ 40 libc6-dev \ 41 libcacard-dev \ 42 libcap-ng-dev \ 43 libcapstone-dev \ 44 libcbor-dev \ 45 libcmocka-dev \ 46 libcurl4-gnutls-dev \ 47 libdaxctl-dev \ 48 libdrm-dev \ 49 libepoxy-dev \ 50 libfdt-dev \ 51 libffi-dev \ 52 libfuse3-dev \ 53 libgbm-dev \ 54 libgcrypt20-dev \ 55 libglib2.0-dev \ 56 libglusterfs-dev \ 57 libgnutls28-dev \ 58 libgtk-3-dev \ 59 libgtk-vnc-2.0-dev \ 60 libibverbs-dev \ 61 libiscsi-dev \ 62 libjemalloc-dev \ 63 libjpeg-turbo8-dev \ 64 libjson-c-dev \ 65 liblttng-ust-dev \ 66 liblzo2-dev \ 67 libncursesw5-dev \ 68 libnfs-dev \ 69 libnuma-dev \ 70 libpam0g-dev \ 71 libpcre2-dev \ 72 libpipewire-0.3-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 mtools \ 107 multipath-tools \ 108 ncat \ 109 nettle-dev \ 110 ninja-build \ 111 openssh-client \ 112 pkgconf \ 113 python3 \ 114 python3-numpy \ 115 python3-opencv \ 116 python3-pillow \ 117 python3-pip \ 118 python3-sphinx \ 119 python3-sphinx-rtd-theme \ 120 python3-tomli \ 121 python3-venv \ 122 python3-yaml \ 123 rpm2cpio \ 124 rustc \ 125 sed \ 126 socat \ 127 sparse \ 128 swtpm \ 129 systemtap-sdt-dev \ 130 tar \ 131 tesseract-ocr \ 132 tesseract-ocr-eng \ 133 xorriso \ 134 zlib1g-dev \ 135 zstd && \ 136 eatmydata apt-get autoremove -y && \ 137 eatmydata apt-get autoclean -y && \ 138 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ 139 dpkg-reconfigure locales && \ 140 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \ 141 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 142 mkdir -p /usr/libexec/ccache-wrappers && \ 143 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \ 144 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \ 145 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc 146 147ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 148ENV LANG "en_US.UTF-8" 149ENV MAKE "/usr/bin/make" 150ENV NINJA "/usr/bin/ninja" 151ENV PYTHON "/usr/bin/python3" 152ENV CARGO_HOME=/usr/local/cargo 153ENV PATH=$CARGO_HOME/bin:$PATH 154RUN DEBIAN_FRONTEND=noninteractive eatmydata \ 155 apt install -y --no-install-recommends cargo 156RUN cargo install bindgen-cli 157# As a final step configure the user (if env is defined) 158ARG USER 159ARG UID 160RUN if [ "${USER}" ]; then \ 161 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 162