This repository was archived by the owner on Sep 29, 2024. It is now read-only.
forked from Schneegans/gnome-shell-pod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsuse.dockerfile
48 lines (39 loc) · 1.58 KB
/
suse.dockerfile
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
40
41
42
43
44
45
46
47
48
ARG base_image=opensuse-tumbleweed
FROM docker.io/opensuse/tumbleweed:latest@sha256:cef34da5c8f8c68d551054f1e1d3d5c5d3adf01684e925db6cccd448342954f9 AS opensuse-tumbleweed
FROM docker.io/opensuse/leap:15.6@sha256:b92aba5f8413624d1a4b671dff4858e454fcbe5e38dff1880cc48241750c2e8e AS opensuse-leap-15.6
FROM ${base_image}
RUN zypper --non-interactive install --no-recommends \
systemd-sysvinit \
xorg-x11-server-Xvfb \
gjs \
gdm \
gnome-session-wayland \
gnome-extensions \
gtk3-metatheme-adwaita \
typelib-1_0-Vte-2.91 \
typelib-1_0-Vte-3_91 \
PackageKit \
typelib-1_0-PackageKitGlib-1_0 \
typelib-1_0-Handy-1_0 \
wl-clipboard \
&& zypper clean --all
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 [ "/usr/sbin/init", "systemd.unified_cgroup_hierarchy=0" ]