From 9d3c5fd3aaf89eecb05376f2d810234b9acd7083 Mon Sep 17 00:00:00 2001 From: thelamer Date: Sun, 28 Dec 2025 13:01:55 -0500 Subject: [PATCH] add wayland init --- Dockerfile | 4 ++-- Dockerfile.aarch64 | 4 ++-- README.md | 26 ++++++++++++++++++++++++++ readme-vars.yml | 1 + root/defaults/autostart_wayland | 2 ++ root/defaults/menu_wayland.xml | 7 +++++++ 6 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 root/defaults/autostart_wayland create mode 100644 root/defaults/menu_wayland.xml diff --git a/Dockerfile b/Dockerfile index aac5f93..407c84d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/linuxserver/baseimage-alpine:3.22 AS buildstage +FROM ghcr.io/linuxserver/baseimage-alpine:3.23 AS buildstage ARG GITQLIENT_RELEASE @@ -30,7 +30,7 @@ RUN \ make -j 4 && \ make install -FROM ghcr.io/linuxserver/baseimage-selkies:alpine322 +FROM ghcr.io/linuxserver/baseimage-selkies:alpine323 # set version label ARG BUILD_DATE diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 3f4963f..14bb2f9 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22 AS buildstage +FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.23 AS buildstage ARG GITQLIENT_RELEASE @@ -30,7 +30,7 @@ RUN \ make -j 4 && \ make install -FROM ghcr.io/linuxserver/baseimage-selkies:arm64v8-alpine322 +FROM ghcr.io/linuxserver/baseimage-selkies:arm64v8-alpine323 # set version label ARG BUILD_DATE diff --git a/README.md b/README.md index 7a5cbca..58fd2f7 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ This container is based on [Docker Baseimage Selkies](https://github.com/linuxse | Variable | Description | | :----: | --- | +| PIXELFLUX_WAYLAND | **Experimental** If set to true the container will initialize in Wayland mode running [Smithay](https://github.com/Smithay/smithay) and Labwc while enabling zero copy encoding with a GPU | | CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default `3000` | | CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default `3001` | | CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082 | @@ -142,6 +143,30 @@ To launch the desktop session in a different language, set the `LC_ALL` environm * `-e LC_ALL=nl_NL.UTF-8` - Netherlands * `-e LC_ALL=it_IT.UTF-8` - Italian +### SealSkin Compatibility + +This container is compatible with [SealSkin](https://github.com/linuxserver/docker-sealskin). + +SealSkin is a self-hosted, client-server platform that provides secure authentication and collaboration features while using a browser extension to intercept user actions such as clicking a link or downloading a file and redirect them to a secure, isolated application environment running on a remote server. + +* **SealSkin Server:** [Get it Here](https://github.com/linuxserver/docker-sealskin) +* **Browser Extension:** [Install Here](https://chromewebstore.google.com/detail/sealskin-isolation/lclgfmnljgacfdpmmmjmfpdelndbbfhk) + +### All GPU Acceleration - use sane resolutions + +When using 3d acceleration via Nvidia DRM or DRI3 it is important to clamp the virtual display to a reasonable max resolution. This can be achieved with the environment setting: + +* `-e MAX_RESOLUTION=3840x2160` + +This will set the total virtual framebuffer to 4K, you can also set a manual resolution to achieve this. +By default the virtual monitor in the session is 16K to support large monitors and dual display configurations. Leaving it this large has no impact on CPU based performance but costs GPU memory usage and memory bandwidth when leveraging one for acceleration. If you have performance issues in an accelerated session, try clamping the resolution to 1080p and work up from there: + +``` +-e SELKIES_MANUAL_WIDTH=1920 +-e SELKIES_MANUAL_HEIGHT=1080 +-e MAX_RESOLUTION=1920x1080 +``` + ### DRI3 GPU Acceleration For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using: @@ -531,6 +556,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **28.12.25:** - Add Wayland init logic, rebase to Alpine 3.23. * **12.07.25:** - Rebase to Selkies and Alpine 3.22, HTTPS IS NOW REQUIRED. * **06.12.24:** - Rebase to Alpine 3.21. * **23.05.24:** - Rebase to Alpine 3.20. diff --git a/readme-vars.yml b/readme-vars.yml index 7727c0a..145fa35 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -102,6 +102,7 @@ init_diagram: | "gitqlient:latest" <- Base Images # changelog changelogs: + - {date: "28.12.25:", desc: "Add Wayland init logic, rebase to Alpine 3.23."} - {date: "12.07.25:", desc: "Rebase to Selkies and Alpine 3.22, HTTPS IS NOW REQUIRED."} - {date: "06.12.24:", desc: "Rebase to Alpine 3.21."} - {date: "23.05.24:", desc: "Rebase to Alpine 3.20."} diff --git a/root/defaults/autostart_wayland b/root/defaults/autostart_wayland new file mode 100644 index 0000000..231bf5b --- /dev/null +++ b/root/defaults/autostart_wayland @@ -0,0 +1,2 @@ +#! /bin/bash +gitqlient diff --git a/root/defaults/menu_wayland.xml b/root/defaults/menu_wayland.xml new file mode 100644 index 0000000..691c38d --- /dev/null +++ b/root/defaults/menu_wayland.xml @@ -0,0 +1,7 @@ + + + +/usr/bin/foot +/usr/bin/gitqlient + +