aboutsummaryrefslogtreecommitdiff
path: root/tests/docker/dockerfiles/fedora-i386-cross.docker
blob: 14c1fb2c93ab7ad6a9de7063dbecdcf7db76713e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM registry.fedoraproject.org/fedora:34

ENV PACKAGES \
    bison \
    bzip2 \
    ccache \
    diffutils \
    flex \
    findutils \
    gcc \
    git \
    libfdt-devel.i686 \
    libffi-devel.i686 \
    libselinux-devel.i686 \
    libtasn1-devel.i686 \
    libzstd-devel.i686 \
    make \
    meson \
    ninja-build \
    glib2-devel.i686 \
    glibc-devel.i686 \
    glibc-static.i686 \
    gnutls-devel.i686 \
    nettle-devel.i686 \
    pcre-devel.i686 \
    pixman-devel.i686 \
    sysprof-capture-devel.i686 \
    zlib-devel.i686

ENV QEMU_CONFIGURE_OPTS --cpu=i386 --disable-vhost-user
ENV PKG_CONFIG_LIBDIR /usr/lib/pkgconfig

RUN dnf update -y && dnf install -y $PACKAGES
RUN rpm -q $PACKAGES | sort > /packages.txt
# 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