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