Skip to content

Commit 3bb012c

Browse files
authored
Merge pull request #104 from linuxserver/bookworm-dri3
update base image docs, add flag to disable DRI3
2 parents 36770fd + 8d37054 commit 3bb012c

6 files changed

Lines changed: 25 additions & 15 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ENV DISPLAY=:1 \
5858
SELKIES_INTERPOSER=/usr/lib/selkies_joystick_interposer.so \
5959
NVIDIA_DRIVER_CAPABILITIES=all \
6060
DISABLE_ZINK=false \
61+
DISABLE_DRI3=false \
6162
TITLE=Selkies
6263

6364
RUN \

Dockerfile.aarch64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ENV DISPLAY=:1 \
5858
SELKIES_INTERPOSER=/usr/lib/selkies_joystick_interposer.so \
5959
NVIDIA_DRIVER_CAPABILITIES=all \
6060
DISABLE_ZINK=false \
61+
DISABLE_DRI3=false \
6162
TITLE=Selkies
6263

6364
RUN \

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,24 @@ All application settings are passed via environment variables:
2828

2929
| Variable | Description |
3030
| :----: | --- |
31-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
32-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
33-
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082. |
31+
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000 |
32+
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001 |
33+
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082 |
3434
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
35+
| DRI_NODE | Enable VAAPI stream encoding and use the specified device IE `/dev/dri/renderD128` |
36+
| DRINODE | Specify which GPU to use for DRI3 acceleration IE `/dev/dri/renderD129` |
3537
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
3638
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
37-
| TITLE | The page title displayed on the web browser, default "Selkies". |
38-
| DASHBOARD | Allows the user to set their dashboard. Options: `selkies-dashboard`, `selkies-dashboard-zinc`, `selkies-dashboard-wish`. |
39-
| FILE_MANAGER_PATH | Modifies the default upload/download file path, path must have proper permissions for abc user. |
40-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
39+
| TITLE | The page title displayed on the web browser, default "Selkies" |
40+
| DASHBOARD | Allows the user to set their dashboard. Options: `selkies-dashboard`, `selkies-dashboard-zinc`, `selkies-dashboard-wish` |
41+
| FILE_MANAGER_PATH | Modifies the default upload/download file path, path must have proper permissions for abc user |
42+
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup |
4143
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
4244
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
4345
| NO_DECOR | If set the application will run without window borders for use as a PWA. (Decor can be enabled and disabled with Ctrl+Shift+d) |
4446
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
4547
| DISABLE_ZINK | Do not set the Zink environment variables if a video card is detected (userspace applications will use CPU rendering) |
48+
| DISABLE_DRI3 | Do not use DRI3 acceleration if a video card is detected (userspace applications will use CPU rendering) |
4649
| MAX_RES | Pass a larger maximum resolution for the container default is 16k `15360x8640` |
4750
| WATERMARK_PNG | Full path inside the container to a watermark png IE `/usr/share/selkies/www/icon.png` |
4851
| WATERMARK_LOCATION | Where to paint the image over the stream integer options below |

readme-vars.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,24 @@ full_custom_readme: |
3232
3333
| Variable | Description |
3434
| :----: | --- |
35-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
36-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
37-
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082. |
35+
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000 |
36+
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001 |
37+
| CUSTOM_WS_PORT | Internal port the container listens on for websockets if it needs to be swapped from the default 8082 |
3838
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
39+
| DRI_NODE | Enable VAAPI stream encoding and use the specified device IE `/dev/dri/renderD128` |
40+
| DRINODE | Specify which GPU to use for DRI3 acceleration IE `/dev/dri/renderD129` |
3941
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
4042
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
41-
| TITLE | The page title displayed on the web browser, default "Selkies". |
42-
| DASHBOARD | Allows the user to set their dashboard. Options: `selkies-dashboard`, `selkies-dashboard-zinc`, `selkies-dashboard-wish`. |
43-
| FILE_MANAGER_PATH | Modifies the default upload/download file path, path must have proper permissions for abc user. |
44-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
43+
| TITLE | The page title displayed on the web browser, default "Selkies" |
44+
| DASHBOARD | Allows the user to set their dashboard. Options: `selkies-dashboard`, `selkies-dashboard-zinc`, `selkies-dashboard-wish` |
45+
| FILE_MANAGER_PATH | Modifies the default upload/download file path, path must have proper permissions for abc user |
46+
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup |
4547
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
4648
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
4749
| NO_DECOR | If set the application will run without window borders for use as a PWA. (Decor can be enabled and disabled with Ctrl+Shift+d) |
4850
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
4951
| DISABLE_ZINK | Do not set the Zink environment variables if a video card is detected (userspace applications will use CPU rendering) |
52+
| DISABLE_DRI3 | Do not use DRI3 acceleration if a video card is detected (userspace applications will use CPU rendering) |
5053
| MAX_RES | Pass a larger maximum resolution for the container default is 16k `15360x8640` |
5154
| WATERMARK_PNG | Full path inside the container to a watermark png IE `/usr/share/selkies/www/icon.png` |
5255
| WATERMARK_LOCATION | Where to paint the image over the stream integer options below |

root/etc/s6-overlay/s6-rc.d/svc-selkies/run

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ if [ ! -z ${DEV_MODE+x} ]; then
5656
--mode="websockets"
5757
fi
5858

59-
6059
# Start Selkies
6160
exec s6-setuidgid abc \
6261
selkies \

root/etc/s6-overlay/s6-rc.d/svc-xorg/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ fi
88
if [ ! -z ${DRINODE+x} ]; then
99
VFBCOMMAND="-vfbdevice ${DRINODE}"
1010
fi
11+
if [ "${DISABLE_DRI3}" != "false" ]; then
12+
VFBCOMMAND=""
13+
fi
1114
DEFAULT_RES="15360x8640"
1215
if [ ! -z ${MAX_RES+x} ]; then
1316
DEFAULT_RES="${MAX_RES}"

0 commit comments

Comments
 (0)