422f6f52b4
At least the F30 base image does not seem to ship with a machine-id. This causes tests that require DBus to fail as the dbus daemon cannot be started. https://gitlab.gnome.org/GNOME/mutter/merge_requests/967
34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
# Rebuild and push with
|
|
#
|
|
# cd .gitlab-ci/
|
|
# docker build --no-cache -t registry.gitlab.gnome.org/gnome/mutter/master:v3 .
|
|
# docker push registry.gitlab.gnome.org/gnome/mutter/master:v3
|
|
#
|
|
|
|
FROM fedora:31
|
|
|
|
RUN dnf -y update && dnf -y upgrade && \
|
|
dnf install -y 'dnf-command(builddep)' && \
|
|
dnf install -y 'dnf-command(copr)' && \
|
|
dnf copr enable -y fmuellner/gnome-shell-ci && \
|
|
dnf -y update && dnf -y upgrade && \
|
|
|
|
dnf builddep -y mutter && \
|
|
|
|
# Until Fedora catches up with new build-deps
|
|
dnf install -y 'pkgconfig(graphene-gobject-1.0)' 'pkgconfig(sysprof-capture-3)' && \
|
|
|
|
# For running unit tests
|
|
dnf install -y xorg-x11-server-Xvfb mesa-dri-drivers dbus dbus-x11 '*/xvfb-run' gdm-lib accountsservice-libs gnome-control-center && \
|
|
|
|
# GNOME Shell
|
|
dnf builddep -y gnome-shell --setopt=install_weak_deps=False && \
|
|
dnf remove -y gnome-bluetooth-libs-devel dbus-glib-devel upower-devel python3-devel && \
|
|
dnf remove -y --noautoremove mutter mutter-devel && \
|
|
|
|
dnf clean all
|
|
|
|
# Add a machine-id as specified in the freedesktop spec:
|
|
# https://www.freedesktop.org/software/systemd/man/machine-id.html
|
|
RUN cat /dev/urandom | tr -dc a-f0-9 | head -c32 > /etc/machine-id && echo "" >> /etc/machine-id
|