tests/docker: auto-generate fedora.docker with lcitool

This commit is best examined using the "-b" option to diff.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20211215141949.3512719-10-berrange@redhat.com>
Message-Id: <20220105135009.1584676-10-alex.bennee@linaro.org>
This commit is contained in:
Daniel P. Berrangé 2022-01-05 13:49:44 +00:00 committed by Alex Bennée
parent 21ea888fc2
commit 05e47b75cb
2 changed files with 146 additions and 115 deletions

View File

@ -1,118 +1,148 @@
# THIS FILE WAS AUTO-GENERATED
#
# $ lcitool dockerfile fedora-35 qemu
#
# https://gitlab.com/libvirt/libvirt-ci
FROM registry.fedoraproject.org/fedora:35 FROM registry.fedoraproject.org/fedora:35
# Please keep this list sorted alphabetically RUN dnf install -y nosync && \
ENV PACKAGES \ echo -e '#!/bin/sh\n\
SDL2-devel \ if test -d /usr/lib64\n\
SDL2_image-devel \ then\n\
alsa-lib-devel \ export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\
bc \ else\n\
brlapi-devel \ export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\
bzip2 \ fi\n\
bzip2-devel \ exec "$@"' > /usr/bin/nosync && \
ca-certificates \ chmod +x /usr/bin/nosync && \
capstone-devel \ nosync dnf update -y && \
ccache \ nosync dnf install -y \
clang \ SDL2-devel \
ctags \ SDL2_image-devel \
cyrus-sasl-devel \ alsa-lib-devel \
daxctl-devel \ bash \
dbus-daemon \ bc \
device-mapper-multipath-devel \ brlapi-devel \
diffutils \ bzip2 \
findutils \ bzip2-devel \
gcc \ ca-certificates \
gcc-c++ \ capstone-devel \
gcovr \ ccache \
genisoimage \ clang \
gettext \ ctags \
git \ cyrus-sasl-devel \
glib2-devel \ daxctl-devel \
glibc-langpack-en \ dbus-daemon \
glibc-static \ device-mapper-multipath-devel \
glusterfs-api-devel \ diffutils \
gnutls-devel \ findutils \
gtk3-devel \ gcc \
hostname \ gcc-c++ \
jemalloc-devel \ gcovr \
libaio-devel \ genisoimage \
libasan \ gettext \
libattr-devel \ git \
libbpf-devel \ glib2-devel \
libcacard-devel \ glib2-static \
libcap-ng-devel \ glibc-langpack-en \
libcurl-devel \ glibc-static \
libdrm-devel \ glusterfs-api-devel \
libepoxy-devel \ gnutls-devel \
libfdt-devel \ gtk3-devel \
libffi-devel \ hostname \
libgcrypt-devel \ jemalloc-devel \
libiscsi-devel \ libaio-devel \
libjpeg-devel \ libasan \
libnfs-devel \ libattr-devel \
libpmem-devel \ libbpf-devel \
libpng-devel \ libcacard-devel \
librbd-devel \ libcap-ng-devel \
libseccomp-devel \ libcurl-devel \
libselinux-devel \ libdrm-devel \
libslirp-devel \ libepoxy-devel \
libssh-devel \ libfdt-devel \
libtasn1-devel \ libffi-devel \
libubsan \ libgcrypt-devel \
libudev-devel \ libiscsi-devel \
liburing-devel \ libjpeg-devel \
libusbx-devel \ libnfs-devel \
libxml2-devel \ libpmem-devel \
libzstd-devel \ libpng-devel \
llvm \ librbd-devel \
lttng-ust-devel \ libseccomp-devel \
lzo-devel \ libselinux-devel \
make \ libslirp-devel \
mesa-libgbm-devel \ libssh-devel \
meson \ libtasn1-devel \
ncurses-devel \ libubsan \
nettle-devel \ libudev-devel \
ninja-build \ liburing-devel \
nmap-ncat \ libusbx-devel \
numactl-devel \ libxml2-devel \
openssh-clients \ libzstd-devel \
pam-devel \ llvm \
perl-Test-Harness \ lttng-ust-devel \
perl-base \ lzo-devel \
pixman-devel \ make \
pkgconfig \ mesa-libgbm-devel \
pulseaudio-libs-devel \ meson \
python3 \ ncurses-devel \
python3-PyYAML \ nettle-devel \
python3-numpy \ ninja-build \
python3-opencv \ nmap-ncat \
python3-pillow \ numactl-devel \
python3-pip \ openssh-clients \
python3-sphinx \ pam-devel \
python3-sphinx_rtd_theme \ pcre-static \
python3-virtualenv \ perl-Test-Harness \
rdma-core-devel \ perl-base \
rpm \ pixman-devel \
sed \ pkgconfig \
snappy-devel \ pulseaudio-libs-devel \
sparse \ python3 \
spice-protocol \ python3-PyYAML \
spice-server-devel \ python3-numpy \
systemd-devel \ python3-opencv \
systemtap-sdt-devel \ python3-pillow \
tar \ python3-pip \
tesseract \ python3-sphinx \
tesseract-langpack-eng \ python3-sphinx_rtd_theme \
texinfo \ python3-virtualenv \
usbredir-devel \ rdma-core-devel \
util-linux \ rpm \
virglrenderer-devel \ sed \
vte291-devel \ snappy-devel \
which \ sparse \
xen-devel \ spice-protocol \
xfsprogs-devel \ spice-server-devel \
zlib-devel systemd-devel \
ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3 systemtap-sdt-devel \
tar \
tesseract \
tesseract-langpack-eng \
texinfo \
usbredir-devel \
util-linux \
virglrenderer-devel \
vte291-devel \
which \
xen-devel \
xfsprogs-devel \
zlib-devel \
zlib-static && \
nosync dnf autoremove -y && \
nosync dnf clean all -y && \
rpm -qa | sort > /packages.txt && \
mkdir -p /usr/libexec/ccache-wrappers && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
RUN dnf install -y $PACKAGES ENV LANG "en_US.UTF-8"
RUN rpm -q $PACKAGES | sort > /packages.txt ENV MAKE "/usr/bin/make"
ENV PATH $PATH:/usr/libexec/python3-sphinx/ ENV NINJA "/usr/bin/ninja"
ENV PYTHON "/usr/bin/python3"
ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"

View File

@ -62,6 +62,7 @@ def generate_dockerfile(host, target, cross=None, trailer=None):
try: try:
generate_dockerfile("centos8", "centos-8") generate_dockerfile("centos8", "centos-8")
generate_dockerfile("fedora", "fedora-35")
sys.exit(0) sys.exit(0)
except Exception as ex: except Exception as ex: