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        bison \
20        brlapi-devel \
21        bzip2 \
22        bzip2-devel \
23        ca-certificates \
24        capstone-devel \
25        ccache \
26        clang \
27        ctags \
28        cyrus-sasl-devel \
29        daxctl-devel \
30        dbus-daemon \
31        device-mapper-multipath-devel \
32        diffutils \
33        findutils \
34        flex \
35        fuse3-devel \
36        gcc \
37        gcc-c++ \
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        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        which \
118        xfsprogs-devel \
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/c++ && \
129    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
130    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
131    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
132    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
133
134ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
135ENV LANG "en_US.UTF-8"
136ENV MAKE "/usr/bin/make"
137ENV NINJA "/usr/bin/ninja"
138ENV PYTHON "/usr/bin/python3"
139# As a final step configure the user (if env is defined)
140ARG USER
141ARG UID
142RUN if [ "${USER}" ]; then \
143  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
144