| 1 | # THIS FILE WAS AUTO-GENERATED |
| 2 | # |
| 3 | # $ lcitool dockerfile --layers all centos-stream-9 qemu |
| 4 | # |
| 5 | # https://gitlab.com/libvirt/libvirt-ci |
| 6 | |
| 7 | FROM quay.io/centos/centos:stream9 |
| 8 | |
| 9 | RUN dnf --quiet distro-sync -y && \ |
| 10 | dnf --quiet install 'dnf-command(config-manager)' -y && \ |
| 11 | dnf --quiet config-manager --set-enabled -y crb && \ |
| 12 | dnf --quiet install -y epel-release && \ |
| 13 | dnf --quiet install -y epel-next-release && \ |
| 14 | dnf --quiet install -y \ |
| 15 | SDL2-devel \ |
| 16 | alsa-lib-devel \ |
| 17 | bash \ |
| 18 | bc \ |
| 19 | bindgen-cli \ |
| 20 | bison \ |
| 21 | brlapi-devel \ |
| 22 | bzip2 \ |
| 23 | bzip2-devel \ |
| 24 | ca-certificates \ |
| 25 | capstone-devel \ |
| 26 | ccache \ |
| 27 | clang \ |
| 28 | compiler-rt \ |
| 29 | coreutils-single \ |
| 30 | ctags \ |
| 31 | cyrus-sasl-devel \ |
| 32 | daxctl-devel \ |
| 33 | dbus-daemon \ |
| 34 | device-mapper-multipath-devel \ |
| 35 | diffutils \ |
| 36 | findutils \ |
| 37 | flex \ |
| 38 | fuse3-devel \ |
| 39 | gcc \ |
| 40 | gettext \ |
| 41 | git \ |
| 42 | glib2-devel \ |
| 43 | glib2-static \ |
| 44 | glibc-langpack-en \ |
| 45 | glibc-static \ |
| 46 | gnutls-devel \ |
| 47 | gtk3-devel \ |
| 48 | hostname \ |
| 49 | jemalloc-devel \ |
| 50 | json-c-devel \ |
| 51 | libaio-devel \ |
| 52 | libasan \ |
| 53 | libattr-devel \ |
| 54 | libbpf-devel \ |
| 55 | libcacard-devel \ |
| 56 | libcap-ng-devel \ |
| 57 | libcmocka-devel \ |
| 58 | libcurl-devel \ |
| 59 | libdrm-devel \ |
| 60 | libepoxy-devel \ |
| 61 | libfdt-devel \ |
| 62 | libffi-devel \ |
| 63 | libgcrypt-devel \ |
| 64 | libiscsi-devel \ |
| 65 | libjpeg-devel \ |
| 66 | libnfs-devel \ |
| 67 | libpmem-devel \ |
| 68 | libpng-devel \ |
| 69 | librbd-devel \ |
| 70 | libseccomp-devel \ |
| 71 | libselinux-devel \ |
| 72 | libslirp-devel \ |
| 73 | libssh-devel \ |
| 74 | libtasn1-devel \ |
| 75 | libubsan \ |
| 76 | liburing-devel \ |
| 77 | libusbx-devel \ |
| 78 | libxdp-devel \ |
| 79 | libzstd-devel \ |
| 80 | llvm \ |
| 81 | lttng-ust-devel \ |
| 82 | lzo-devel \ |
| 83 | make \ |
| 84 | mesa-libgbm-devel \ |
| 85 | meson \ |
| 86 | mtools \ |
| 87 | ncurses-devel \ |
| 88 | nettle-devel \ |
| 89 | ninja-build \ |
| 90 | numactl-devel \ |
| 91 | openssh-clients \ |
| 92 | pam-devel \ |
| 93 | pcre-static \ |
| 94 | pipewire-devel \ |
| 95 | pixman-devel \ |
| 96 | pkgconfig \ |
| 97 | pulseaudio-libs-devel \ |
| 98 | python3-tomli \ |
| 99 | python3.11 \ |
| 100 | python3.11-pip \ |
| 101 | python3.11-setuptools \ |
| 102 | python3.11-wheel \ |
| 103 | rdma-core-devel \ |
| 104 | rust \ |
| 105 | rust-std-static \ |
| 106 | sed \ |
| 107 | snappy-devel \ |
| 108 | socat \ |
| 109 | spice-protocol \ |
| 110 | swtpm \ |
| 111 | systemd-devel \ |
| 112 | systemtap-sdt-devel \ |
| 113 | tar \ |
| 114 | usbredir-devel \ |
| 115 | util-linux \ |
| 116 | vte291-devel \ |
| 117 | vulkan-tools \ |
| 118 | which \ |
| 119 | xorriso \ |
| 120 | zlib-devel \ |
| 121 | zlib-static \ |
| 122 | zstd && \ |
| 123 | dnf --quiet autoremove -y && \ |
| 124 | dnf --quiet clean all -y && \ |
| 125 | rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \ |
| 126 | rpm -qa | sort > /packages.txt && \ |
| 127 | mkdir -p /usr/libexec/ccache-wrappers && \ |
| 128 | ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \ |
| 129 | ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \ |
| 130 | ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc |
| 131 | |
| 132 | RUN /usr/bin/pip3.11 install \ |
| 133 | sphinx \ |
| 134 | sphinx-rtd-theme |
| 135 | |
| 136 | ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers" |
| 137 | ENV LANG="en_US.UTF-8" |
| 138 | ENV MAKE="/usr/bin/make" |
| 139 | ENV NINJA="/usr/bin/ninja" |
| 140 | ENV PYTHON="/usr/bin/python3.11" |
| 141 | # As a final step configure the user (if env is defined) |
| 142 | ARG USER |
| 143 | ARG UID |
| 144 | RUN if [ "${USER}" ]; then \ |
| 145 | id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi |
| 146 | |
| 147 | ENV ENABLE_RUST=1 |