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
7FROM quay.io/centos/centos:stream9
8
9RUN dnf distro-sync -y && \
10    dnf install 'dnf-command(config-manager)' -y && \
11    dnf config-manager --set-enabled -y crb && \
12    dnf install -y epel-release && \
13    dnf install -y epel-next-release && \
14    dnf 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        ctags \
29        cyrus-sasl-devel \
30        daxctl-devel \
31        dbus-daemon \
32        device-mapper-multipath-devel \
33        diffutils \
34        findutils \
35        flex \
36        fuse3-devel \
37        gcc \
38        gettext \
39        git \
40        glib2-devel \
41        glib2-static \
42        glibc-langpack-en \
43        glibc-static \
44        gnutls-devel \
45        gtk3-devel \
46        hostname \
47        jemalloc-devel \
48        json-c-devel \
49        libaio-devel \
50        libasan \
51        libattr-devel \
52        libbpf-devel \
53        libcacard-devel \
54        libcap-ng-devel \
55        libcmocka-devel \
56        libcurl-devel \
57        libdrm-devel \
58        libepoxy-devel \
59        libfdt-devel \
60        libffi-devel \
61        libgcrypt-devel \
62        libiscsi-devel \
63        libjpeg-devel \
64        libnfs-devel \
65        libpmem-devel \
66        libpng-devel \
67        librbd-devel \
68        libseccomp-devel \
69        libselinux-devel \
70        libslirp-devel \
71        libssh-devel \
72        libtasn1-devel \
73        libubsan \
74        liburing-devel \
75        libusbx-devel \
76        libxdp-devel \
77        libzstd-devel \
78        llvm \
79        lttng-ust-devel \
80        lzo-devel \
81        make \
82        mesa-libgbm-devel \
83        meson \
84        mtools \
85        ncurses-devel \
86        nettle-devel \
87        ninja-build \
88        nmap-ncat \
89        numactl-devel \
90        openssh-clients \
91        pam-devel \
92        pcre-static \
93        pipewire-devel \
94        pixman-devel \
95        pkgconfig \
96        pulseaudio-libs-devel \
97        python3 \
98        python3-PyYAML \
99        python3-numpy \
100        python3-pillow \
101        python3-pip \
102        python3-sphinx \
103        python3-sphinx_rtd_theme \
104        python3-tomli \
105        rdma-core-devel \
106        rust \
107        sed \
108        snappy-devel \
109        socat \
110        spice-protocol \
111        swtpm \
112        systemd-devel \
113        systemtap-sdt-devel \
114        tar \
115        usbredir-devel \
116        util-linux \
117        vte291-devel \
118        which \
119        xorriso \
120        zlib-devel \
121        zlib-static \
122        zstd && \
123    dnf autoremove -y && \
124    dnf 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
132ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
133ENV LANG "en_US.UTF-8"
134ENV MAKE "/usr/bin/make"
135ENV NINJA "/usr/bin/ninja"
136ENV PYTHON "/usr/bin/python3"
137# As a final step configure the user (if env is defined)
138ARG USER
139ARG UID
140RUN if [ "${USER}" ]; then \
141  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
142