Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
Add openSUSE Tumbleweed
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Jan 7, 2024
1 parent f79a40a commit af5ed2e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
!archlinux/
!common/
!debian/
!suse/
4 changes: 4 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
31 changes: 31 additions & 0 deletions suse.dockerfile
Original file line number Diff line number Diff line change
@@ -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/[email protected] $HOME/.config/systemd/user/sockets.target.wants/[email protected] \
' && \
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" ]
2 changes: 2 additions & 0 deletions suse/etc/dconf/profile/user
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
user-db:user
system-db:local

0 comments on commit af5ed2e

Please sign in to comment.