From af5ed2e2c8dd051607419da1cd05b4e5e91e241d Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Sun, 7 Jan 2024 07:36:50 +0200 Subject: [PATCH] Add openSUSE Tumbleweed --- .dockerignore | 1 + .github/workflows/common.yml | 4 ++++ suse.dockerfile | 31 +++++++++++++++++++++++++++++++ suse/etc/dconf/profile/user | 2 ++ 4 files changed, 38 insertions(+) create mode 100644 suse.dockerfile create mode 100644 suse/etc/dconf/profile/user diff --git a/.dockerignore b/.dockerignore index daca7c5..3d68a06 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,3 +2,4 @@ !archlinux/ !common/ !debian/ +!suse/ diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 8dc4a02..e87ad33 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -53,6 +53,10 @@ jobs: - image: archlinux dockerfile: archlinux.dockerfile + + - image: opensuse-tumbleweed + dockerfile: suse.dockerfile + timeout-minutes: 10 env: IMAGE: ghcr.io/${{ github.repository }}/${{ matrix.image }} diff --git a/suse.dockerfile b/suse.dockerfile new file mode 100644 index 0000000..1912aff --- /dev/null +++ b/suse.dockerfile @@ -0,0 +1,31 @@ +FROM registry.opensuse.org/opensuse/tumbleweed:latest@sha256:ccb3c09fce43c55cc70baa00a40ef872a0ff179629e22432b7966f34fbaffd7d + +RUN zypper --non-interactive install --no-recommends \ + xorg-x11-server-Xvfb gjs gdm gnome-session-wayland gnome-extensions gtk3-metatheme-adwaita \ + typelib-1_0-Vte-2_91 PackageKit typelib-1_0-PackageKitGlib-1_0 wl-clipboard + +COPY common suse / + +RUN systemctl set-default gnome-session-x11.target && \ + systemctl mask systemd-oomd low-memory-monitor rtkit-daemon udisks2 && \ + useradd -m -U -G users gnomeshell && \ + mkdir -p /var/lib/systemd/linger && \ + touch /var/lib/systemd/linger/gnomeshell && \ + su -l gnomeshell -c ' \ + mkdir -p $HOME/.config/systemd/user/sockets.target.wants/ && \ + ln -s /etc/xdg/systemd/user/dbus-proxy@.socket $HOME/.config/systemd/user/sockets.target.wants/dbus-proxy@1234.socket \ + ' && \ + truncate --size 0 /etc/machine-id && \ + dconf update + +# dbus port +EXPOSE 1234 +LABEL user-dbus-port=1234 + +# X11 port +EXPOSE 6099 +LABEL x11-port=6099 x11-display-number=99 + +HEALTHCHECK CMD busctl --watch-bind=true status && systemctl is-system-running --wait + +CMD [ "/sbin/init", "systemd.unified_cgroup_hierarchy=0" ] diff --git a/suse/etc/dconf/profile/user b/suse/etc/dconf/profile/user new file mode 100644 index 0000000..aca0641 --- /dev/null +++ b/suse/etc/dconf/profile/user @@ -0,0 +1,2 @@ +user-db:user +system-db:local