Debian Codegraph @

.gitlab-ci/fedora.Dockerfile

raw
1 FROM fedora:41
2
3 RUN dnf -y update \
4 && dnf -y install \
5 bindfs \
6 clang \
7 clang-analyzer \
8 compiler-rt \
9 dbus-daemon \
10 dbus-devel \
11 desktop-file-utils \
12 elfutils-libelf-devel \
13 findutils \
14 fuse \
15 gcc \
16 gcc-c++ \
17 gdb \
18 gettext \
19 gi-docgen \
20 git \
21 glibc-devel \
22 glibc-gconv-extra \
23 glibc-headers \
24 glibc-langpack-az \
25 glibc-langpack-de \
26 glibc-langpack-el \
27 glibc-langpack-en \
28 glibc-langpack-es \
29 glibc-langpack-fa \
30 glibc-langpack-fr \
31 glibc-langpack-gu \
32 glibc-langpack-hr \
33 glibc-langpack-ja \
34 glibc-langpack-lt \
35 glibc-langpack-pl \
36 glibc-langpack-ru \
37 glibc-langpack-th \
38 glibc-langpack-tr \
39 "gnome-desktop-testing >= 2018.1" \
40 gobject-introspection \
41 gobject-introspection-devel \
42 gtk-doc \
43 itstool \
44 lcov \
45 libattr-devel \
46 libffi-devel \
47 libmount-devel \
48 libselinux-devel \
49 libubsan \
50 libxslt \
51 ncurses-compat-libs \
52 ninja-build \
53 pcre2-devel \
54 "python3-dbusmock >= 0.18.3-2" \
55 python3-docutils \
56 python3-pip \
57 python3-pygments \
58 python3-wheel \
59 shared-mime-info \
60 systemtap-sdt-devel \
61 systemtap-sdt-dtrace \
62 unzip \
63 valgrind \
64 wget \
65 xdg-desktop-portal \
66 xz \
67 zlib-devel \
68 && dnf -y install \
69 meson \
70 flex \
71 bison \
72 python3-devel \
73 autoconf \
74 automake \
75 gettext-devel \
76 libtool \
77 diffutils \
78 fontconfig-devel \
79 json-glib-devel \
80 geoclue2-devel \
81 pipewire-devel \
82 fuse-devel \
83 make \
84 && dnf clean all
85
86 RUN pip3 install meson==1.4.2
87
88 # We need gi-docgen installed as a system dependency, rather than depending on
89 # the subproject wrap, as `meson dist` won’t use the subproject from the source
90 # dir when testing a dist tarball; it’ll try to re-download it, but then fail
91 # due to --wrap-mode=nodownload.
92 RUN pkg-config --atleast-version 2026.1 gi-docgen || pip3 install gi-docgen==2026.1
93
94 COPY install-gitlab-cobertura-tools.sh .
95 RUN ./install-gitlab-cobertura-tools.sh
96
97 # Set /etc/machine-id as it’s needed for some D-Bus tests
98 RUN systemd-machine-id-setup
99
100 # Enable sudo for wheel users
101 RUN sed -i -e 's/# %wheel/%wheel/' -e '0,/%wheel/{s/%wheel/# %wheel/}' /etc/sudoers
102
103 ARG HOST_USER_ID=5555
104 ENV HOST_USER_ID ${HOST_USER_ID}
105 RUN useradd -u $HOST_USER_ID -G wheel -ms /bin/bash user
106
107 COPY android-ndk.sh .
108 RUN ./android-ndk.sh
109
110 USER user
111 WORKDIR /home/user
112
113 COPY cache-subprojects.sh .
114 RUN ./cache-subprojects.sh
115
116 ENV LANG C.UTF-8