xref: /openbmc/qemu/tests/docker/dockerfiles/fedora.docker (revision c94bee4cd6693c1c65ba43bb8970cf909dec378b)
105e47b75SDaniel P. Berrangé# THIS FILE WAS AUTO-GENERATED
205e47b75SDaniel P. Berrangé#
306f3330bSThomas Huth#  $ lcitool dockerfile --layers all fedora-40 qemu
405e47b75SDaniel P. Berrangé#
505e47b75SDaniel P. Berrangé# https://gitlab.com/libvirt/libvirt-ci
605e47b75SDaniel P. Berrangé
706f3330bSThomas HuthFROM registry.fedoraproject.org/fedora:40
8cdb1a84cSPhilippe Mathieu-Daudé
905e47b75SDaniel P. BerrangéRUN dnf install -y nosync && \
10dacc122eSPeter Krempa    printf '#!/bin/sh\n\
1105e47b75SDaniel P. Berrangéif test -d /usr/lib64\n\
1205e47b75SDaniel P. Berrangéthen\n\
1305e47b75SDaniel P. Berrangé    export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\
1405e47b75SDaniel P. Berrangéelse\n\
1505e47b75SDaniel P. Berrangé    export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\
1605e47b75SDaniel P. Berrangéfi\n\
17dacc122eSPeter Krempaexec "$@"\n' > /usr/bin/nosync && \
1805e47b75SDaniel P. Berrangé    chmod +x /usr/bin/nosync && \
1905e47b75SDaniel P. Berrangé    nosync dnf update -y && \
2005e47b75SDaniel P. Berrangé    nosync dnf install -y \
2152dab556SDaniel P. Berrangé               SDL2-devel \
225a9c1498SDaniel P. Berrangé               SDL2_image-devel \
235a9c1498SDaniel P. Berrangé               alsa-lib-devel \
2405e47b75SDaniel P. Berrangé               bash \
255f8ab4fdSPhilippe Mathieu-Daudé               bc \
26548de8f8SDaniel P. Berrangé               bindgen-cli \
278fae3910SAnton Johansson               bison \
285f8ab4fdSPhilippe Mathieu-Daudé               brlapi-devel \
295f8ab4fdSPhilippe Mathieu-Daudé               bzip2 \
305f8ab4fdSPhilippe Mathieu-Daudé               bzip2-devel \
315a9c1498SDaniel P. Berrangé               ca-certificates \
32db0108d5SThomas Huth               capstone-devel \
335f8ab4fdSPhilippe Mathieu-Daudé               ccache \
345f8ab4fdSPhilippe Mathieu-Daudé               clang \
355a9c1498SDaniel P. Berrangé               ctags \
368ea5962fSPhilippe Mathieu-Daudé               cyrus-sasl-devel \
375a9c1498SDaniel P. Berrangé               daxctl-devel \
381409c047SMarc-André Lureau               dbus-daemon \
395f8ab4fdSPhilippe Mathieu-Daudé               device-mapper-multipath-devel \
40d72d6dcbSPaolo Bonzini               diffutils \
415f8ab4fdSPhilippe Mathieu-Daudé               findutils \
428fae3910SAnton Johansson               flex \
437bef20d7SStefan Hajnoczi               fuse3-devel \
445f8ab4fdSPhilippe Mathieu-Daudé               gcc \
455a9c1498SDaniel P. Berrangé               gcovr \
465f8ab4fdSPhilippe Mathieu-Daudé               gettext \
475f8ab4fdSPhilippe Mathieu-Daudé               git \
485f8ab4fdSPhilippe Mathieu-Daudé               glib2-devel \
4905e47b75SDaniel P. Berrangé               glib2-static \
505a9c1498SDaniel P. Berrangé               glibc-langpack-en \
515a9c1498SDaniel P. Berrangé               glibc-static \
525f8ab4fdSPhilippe Mathieu-Daudé               glusterfs-api-devel \
535f8ab4fdSPhilippe Mathieu-Daudé               gnutls-devel \
54b4be15a9SDaniel P. Berrangé               gtk-vnc2-devel \
555f8ab4fdSPhilippe Mathieu-Daudé               gtk3-devel \
565f8ab4fdSPhilippe Mathieu-Daudé               hostname \
575a9c1498SDaniel P. Berrangé               jemalloc-devel \
58feb6cb93SDaniel P. Berrangé               json-c-devel \
595f8ab4fdSPhilippe Mathieu-Daudé               libaio-devel \
605f8ab4fdSPhilippe Mathieu-Daudé               libasan \
615f8ab4fdSPhilippe Mathieu-Daudé               libattr-devel \
625a9c1498SDaniel P. Berrangé               libbpf-devel \
6351f5c849SDaniel P. Berrangé               libcacard-devel \
645f8ab4fdSPhilippe Mathieu-Daudé               libcap-ng-devel \
65*1ac32dc8SDorjoy Chowdhury               libcbor-devel \
66feb6cb93SDaniel P. Berrangé               libcmocka-devel \
675f8ab4fdSPhilippe Mathieu-Daudé               libcurl-devel \
685a9c1498SDaniel P. Berrangé               libdrm-devel \
693e320733SPhilippe Mathieu-Daudé               libepoxy-devel \
705f8ab4fdSPhilippe Mathieu-Daudé               libfdt-devel \
7122f15579SRichard Henderson               libffi-devel \
725a9c1498SDaniel P. Berrangé               libgcrypt-devel \
738ea5962fSPhilippe Mathieu-Daudé               libiscsi-devel \
745f8ab4fdSPhilippe Mathieu-Daudé               libjpeg-devel \
755a9c1498SDaniel P. Berrangé               libnfs-devel \
768ea5962fSPhilippe Mathieu-Daudé               libpmem-devel \
775f8ab4fdSPhilippe Mathieu-Daudé               libpng-devel \
785f8ab4fdSPhilippe Mathieu-Daudé               librbd-devel \
798ea5962fSPhilippe Mathieu-Daudé               libseccomp-devel \
803d212b41SRichard W.M. Jones               libselinux-devel \
81db0108d5SThomas Huth               libslirp-devel \
82b10d49d7SPino Toscano               libssh-devel \
835a9c1498SDaniel P. Berrangé               libtasn1-devel \
845f8ab4fdSPhilippe Mathieu-Daudé               libubsan \
855a9c1498SDaniel P. Berrangé               liburing-devel \
865f8ab4fdSPhilippe Mathieu-Daudé               libusbx-devel \
87cb039ef3SIlya Maximets               libxdp-devel \
88cdb1a84cSPhilippe Mathieu-Daudé               libzstd-devel \
895f8ab4fdSPhilippe Mathieu-Daudé               llvm \
905a9c1498SDaniel P. Berrangé               lttng-ust-devel \
915f8ab4fdSPhilippe Mathieu-Daudé               lzo-devel \
925f8ab4fdSPhilippe Mathieu-Daudé               make \
935a9c1498SDaniel P. Berrangé               mesa-libgbm-devel \
94db0108d5SThomas Huth               meson \
95da900078SAni Sinha               mtools \
965f8ab4fdSPhilippe Mathieu-Daudé               ncurses-devel \
975f8ab4fdSPhilippe Mathieu-Daudé               nettle-devel \
98345d7053SPaolo Bonzini               ninja-build \
9952dab556SDaniel P. Berrangé               nmap-ncat \
1005f8ab4fdSPhilippe Mathieu-Daudé               numactl-devel \
1015a9c1498SDaniel P. Berrangé               openssh-clients \
1025a9c1498SDaniel P. Berrangé               pam-devel \
10305e47b75SDaniel P. Berrangé               pcre-static \
10462259d81SMarc-André Lureau               pipewire-devel \
1055f8ab4fdSPhilippe Mathieu-Daudé               pixman-devel \
1065a9c1498SDaniel P. Berrangé               pkgconfig \
1075a9c1498SDaniel P. Berrangé               pulseaudio-libs-devel \
1085f8ab4fdSPhilippe Mathieu-Daudé               python3 \
1096d8e7738SPhilippe Mathieu-Daudé               python3-PyYAML \
110cdc61815SAlex Bennée               python3-numpy \
111cdc61815SAlex Bennée               python3-opencv \
112cdc61815SAlex Bennée               python3-pillow \
113cdc61815SAlex Bennée               python3-pip \
1148109b798SPhilippe Mathieu-Daudé               python3-sphinx \
11573e6aec6SMarc-André Lureau               python3-sphinx_rtd_theme \
11606f3330bSThomas Huth               python3-zombie-imp \
1178ea5962fSPhilippe Mathieu-Daudé               rdma-core-devel \
118548de8f8SDaniel P. Berrangé               rust \
1195a9c1498SDaniel P. Berrangé               sed \
1205f8ab4fdSPhilippe Mathieu-Daudé               snappy-devel \
121ab4c1361SAlex Bennée               socat \
1225f8ab4fdSPhilippe Mathieu-Daudé               sparse \
1235a9c1498SDaniel P. Berrangé               spice-protocol \
1245f8ab4fdSPhilippe Mathieu-Daudé               spice-server-devel \
1253e3df0d8SAlex Bennée               swtpm \
1268ea5962fSPhilippe Mathieu-Daudé               systemd-devel \
1275f8ab4fdSPhilippe Mathieu-Daudé               systemtap-sdt-devel \
1285f8ab4fdSPhilippe Mathieu-Daudé               tar \
129cdc61815SAlex Bennée               tesseract \
130cdc61815SAlex Bennée               tesseract-langpack-eng \
1315f8ab4fdSPhilippe Mathieu-Daudé               usbredir-devel \
1325a9c1498SDaniel P. Berrangé               util-linux \
1335f8ab4fdSPhilippe Mathieu-Daudé               virglrenderer-devel \
13419a9978dSDaniel P. Berrangé               vte291-devel \
1355f8ab4fdSPhilippe Mathieu-Daudé               which \
1365f8ab4fdSPhilippe Mathieu-Daudé               xen-devel \
137da900078SAni Sinha               xorriso \
13805e47b75SDaniel P. Berrangé               zlib-devel \
139bbe30763SAlex Bennée               zlib-static \
140bbe30763SAlex Bennée               zstd && \
14105e47b75SDaniel P. Berrangé    nosync dnf autoremove -y && \
14205e47b75SDaniel P. Berrangé    nosync dnf clean all -y && \
1432355d18cSThomas Huth    rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
14405e47b75SDaniel P. Berrangé    rpm -qa | sort > /packages.txt && \
14505e47b75SDaniel P. Berrangé    mkdir -p /usr/libexec/ccache-wrappers && \
14605e47b75SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
14705e47b75SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
14805e47b75SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
14928a0cccdSFam Zheng
1508f4bcbcfSBrad SmithENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
15105e47b75SDaniel P. BerrangéENV LANG "en_US.UTF-8"
15205e47b75SDaniel P. BerrangéENV MAKE "/usr/bin/make"
15305e47b75SDaniel P. BerrangéENV NINJA "/usr/bin/ninja"
15405e47b75SDaniel P. BerrangéENV PYTHON "/usr/bin/python3"
1555b8bcf6bSAlex Bennée# As a final step configure the user (if env is defined)
1565b8bcf6bSAlex BennéeARG USER
1575b8bcf6bSAlex BennéeARG UID
1585b8bcf6bSAlex BennéeRUN if [ "${USER}" ]; then \
1595b8bcf6bSAlex Bennée  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
160