mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00

Bios bits avocado tests need mformat (provided by the mtools package) and xorriso tools in order to run within gitlab CI containers. Add those dependencies within the Dockerfiles so that containers can be built with those tools present and bios bits avocado tests can be run there. xorriso package conflicts with genisoimage package on some distributions. Therefore, it is not possible to have both the packages at the same time in the container image uniformly for all distribution flavors. Further, on some distributions like RHEL, both xorriso and genisoimage packages provide /usr/bin/genisoimage and on some other distributions like Fedora, only genisoimage package provides the same utility. Therefore, this change removes the dependency on geninsoimage for building container images altogether keeping only xorriso package. At the same time, cdrom-test.c is updated to use and check for existence of only xorrisofs. Signed-off-by: Ani Sinha <anisinha@redhat.com> Message-Id: <20230504154611.85854-3-anisinha@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
133 lines
3 KiB
Docker
133 lines
3 KiB
Docker
# THIS FILE WAS AUTO-GENERATED
|
|
#
|
|
# $ lcitool dockerfile --layers all alpine-316 qemu
|
|
#
|
|
# https://gitlab.com/libvirt/libvirt-ci
|
|
|
|
FROM docker.io/library/alpine:3.16
|
|
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add \
|
|
alsa-lib-dev \
|
|
attr-dev \
|
|
bash \
|
|
bc \
|
|
bison \
|
|
bzip2 \
|
|
bzip2-dev \
|
|
ca-certificates \
|
|
capstone-dev \
|
|
ccache \
|
|
ceph-dev \
|
|
clang \
|
|
cmocka-dev \
|
|
ctags \
|
|
curl-dev \
|
|
cyrus-sasl-dev \
|
|
dbus \
|
|
diffutils \
|
|
dtc-dev \
|
|
eudev-dev \
|
|
findutils \
|
|
flex \
|
|
fuse3-dev \
|
|
g++ \
|
|
gcc \
|
|
gcovr \
|
|
gettext \
|
|
git \
|
|
glib-dev \
|
|
glib-static \
|
|
gnutls-dev \
|
|
gtk+3.0-dev \
|
|
json-c-dev \
|
|
libaio-dev \
|
|
libbpf-dev \
|
|
libcap-ng-dev \
|
|
libdrm-dev \
|
|
libepoxy-dev \
|
|
libffi-dev \
|
|
libgcrypt-dev \
|
|
libjpeg-turbo-dev \
|
|
libnfs-dev \
|
|
libpng-dev \
|
|
libseccomp-dev \
|
|
libselinux-dev \
|
|
libslirp-dev \
|
|
libssh-dev \
|
|
libtasn1-dev \
|
|
liburing-dev \
|
|
libusb-dev \
|
|
linux-pam-dev \
|
|
llvm \
|
|
lttng-ust-dev \
|
|
lzo-dev \
|
|
make \
|
|
mesa-dev \
|
|
meson \
|
|
mtools \
|
|
multipath-tools \
|
|
musl-dev \
|
|
ncurses-dev \
|
|
ndctl-dev \
|
|
net-tools \
|
|
nettle-dev \
|
|
nmap-ncat \
|
|
numactl-dev \
|
|
openssh-client \
|
|
pcre-dev \
|
|
pixman-dev \
|
|
pkgconf \
|
|
pulseaudio-dev \
|
|
py3-numpy \
|
|
py3-pillow \
|
|
py3-pip \
|
|
py3-sphinx \
|
|
py3-sphinx_rtd_theme \
|
|
py3-yaml \
|
|
python3 \
|
|
rpm2cpio \
|
|
samurai \
|
|
sdl2-dev \
|
|
sdl2_image-dev \
|
|
sed \
|
|
snappy-dev \
|
|
sndio-dev \
|
|
socat \
|
|
sparse \
|
|
spice-dev \
|
|
spice-protocol \
|
|
tar \
|
|
tesseract-ocr \
|
|
usbredir-dev \
|
|
util-linux \
|
|
vde2-dev \
|
|
virglrenderer-dev \
|
|
vte3-dev \
|
|
which \
|
|
xen-dev \
|
|
xfsprogs-dev \
|
|
xorriso \
|
|
zlib-dev \
|
|
zlib-static \
|
|
zstd \
|
|
zstd-dev && \
|
|
apk list | 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
|
|
|
|
ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
|
|
ENV LANG "en_US.UTF-8"
|
|
ENV MAKE "/usr/bin/make"
|
|
ENV NINJA "/usr/bin/ninja"
|
|
ENV PYTHON "/usr/bin/python3"
|
|
# As a final step configure the user (if env is defined)
|
|
ARG USER
|
|
ARG UID
|
|
RUN if [ "${USER}" ]; then \
|
|
id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
|