Skip to content

Commit c7e5f10

Browse files
committed
selkies branch
1 parent 88514d8 commit c7e5f10

File tree

11 files changed

+84
-77
lines changed

11 files changed

+84
-77
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
1+
FROM ghcr.io/linuxserver/baseimage-selkies:debianbookworm
22

33
# set version label
44
ARG BUILD_DATE
@@ -13,12 +13,13 @@ ENV TITLE=DigiKam
1313
RUN \
1414
echo "**** add icon ****" && \
1515
curl -o \
16-
/kclient/public/icon.png \
16+
/usr/share/selkies/www/icon.png \
1717
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/digikam-logo.png && \
1818
echo "**** install runtime packages ****" && \
1919
apt-get update && \
2020
apt-get install -y --no-install-recommends \
2121
breeze-icon-theme \
22+
caja \
2223
chromium \
2324
mariadb-server \
2425
openexr \

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pipeline {
3030
MULTIARCH = 'false'
3131
CI = 'true'
3232
CI_WEB = 'true'
33-
CI_PORT = '3000'
34-
CI_SSL = 'false'
33+
CI_PORT = '3001'
34+
CI_SSL = 'true'
3535
CI_DELAY = '120'
3636
CI_DOCKERENV = 'TZ=America/New_York'
3737
CI_AUTH = 'user:password'

README.md

Lines changed: 73 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -62,63 +62,74 @@ When using mysql internal mode for the database you will need to click on "Find"
6262

6363
The application can be accessed at:
6464

65-
* http://yourhost:3000/
6665
* https://yourhost:3001/
6766

68-
**Modern GUI desktop apps have issues with the latest Docker and syscall compatibility, you can use Docker with the `--security-opt seccomp=unconfined` setting to allow these syscalls on hosts with older Kernels or libseccomp**
67+
### Strict reverse proxies
68+
69+
This image uses a self-signed certificate by default. This naturally means the scheme is `https`.
70+
If you are using a reverse proxy which validates certificates, you need to [disable this check for the container](https://docs.linuxserver.io/faq#strict-proxy).
71+
72+
**Modern GUI desktop apps may have compatibility issues with the latest Docker syscall restrictions. You can use Docker with the `--security-opt seccomp=unconfined` setting to allow these syscalls on hosts with older Kernels or libseccomp versions.**
6973

7074
### Security
7175

7276
>[!WARNING]
73-
>Do not put this on the Internet if you do not know what you are doing.
77+
>This container provides privileged access to the host system. Do not expose it to the Internet unless you have secured it properly.
7478
75-
By default this container has no authentication and the optional environment variables `CUSTOM_USER` and `PASSWORD` to enable basic http auth via the embedded NGINX server should only be used to locally secure the container from unwanted access on a local network. If exposing this to the Internet we recommend putting it behind a reverse proxy, such as [SWAG](https://github.com/linuxserver/docker-swag), and ensuring a secure authentication solution is in place. From the web interface a terminal can be launched and it is configured for passwordless sudo, so anyone with access to it can install and run whatever they want along with probing your local network.
79+
**HTTPS is required for full functionality.** Modern browser features such as WebCodecs, used for video and audio, will not function over an insecure HTTP connection.
7680

77-
### Options in all KasmVNC based GUI containers
81+
By default, this container has no authentication. The optional `CUSTOM_USER` and `PASSWORD` environment variables enable basic HTTP auth, which is suitable only for securing the container on a trusted local network. For internet exposure, we strongly recommend placing the container behind a reverse proxy, such as [SWAG](https://github.com/linuxserver/docker-swag), with a robust authentication mechanism.
7882

79-
This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxserver/docker-baseimage-kasmvnc) which means there are additional environment variables and run configurations to enable or disable specific functionality.
83+
The web interface includes a terminal with passwordless `sudo` access. Any user with access to the GUI can gain root control within the container, install arbitrary software, and probe your local network.
8084

81-
#### Optional environment variables
85+
### Options in all Selkies-based GUI containers
8286

83-
| Variable | Description |
84-
| :----: | --- |
85-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
86-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
87-
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
88-
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
89-
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
90-
| TITLE | The page title displayed on the web browser, default "KasmVNC Client". |
91-
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
92-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
93-
| DRINODE | If mounting in /dev/dri for [DRI3 GPU Acceleration](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) allows you to specify the device to use IE `/dev/dri/renderD128` |
94-
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
95-
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
96-
| NO_DECOR | If set the application will run without window borders in openbox for use as a PWA. |
97-
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
98-
99-
#### Optional run configurations
87+
This container is based on [Docker Baseimage Selkies](https://github.com/linuxserver/docker-baseimage-selkies), which provides the following environment variables and run configurations to customize its functionality.
88+
89+
#### Optional Environment Variables
10090

10191
| Variable | Description |
10292
| :----: | --- |
103-
| `--privileged` | Will start a Docker in Docker (DinD) setup inside the container to use docker in an isolated environment. For increased performance mount the Docker directory inside the container to the host IE `-v /home/user/docker-data:/var/lib/docker`. |
104-
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. |
93+
| `CUSTOM_PORT` | Internal HTTP port. Defaults to `3000`. |
94+
| `CUSTOM_HTTPS_PORT` | Internal HTTPS port. Defaults to `3001`. |
95+
| `CUSTOM_USER` | Username for HTTP Basic Auth. Defaults to `abc`. |
96+
| `PASSWORD` | Password for HTTP Basic Auth. If unset, authentication is disabled. |
97+
| `SUBFOLDER` | Application subfolder for reverse proxy configurations. Must include leading and trailing slashes, e.g., `/subfolder/`. |
98+
| `TITLE` | Page title displayed in the web browser. Defaults to "Selkies". |
99+
| `START_DOCKER` | If set to `false`, the privileged Docker-in-Docker setup will not start automatically. |
100+
| `DISABLE_IPV6` | Set to `true` to disable IPv6 support in the container. |
101+
| `LC_ALL` | Sets the container's locale, e.g., `fr_FR.UTF-8`. |
102+
| `DRINODE` | If mounting in /dev/dri for DRI3 GPU Acceleration allows you to specify the device to use IE `/dev/dri/renderD128` |
103+
| `NO_DECOR` | If set, applications will run without window borders, suitable for PWA usage. |
104+
| `NO_FULL` | If set, applications will not be automatically fullscreened. |
105+
| `DISABLE_ZINK` | If set, Zink-related environment variables will not be configured when a video card is detected. |
106+
| `WATERMARK_PNG` | Full path to a watermark PNG file inside the container, e.g., `/usr/share/selkies/www/icon.png`. |
107+
| `WATERMARK_LOCATION` | Integer specifying the watermark location: `1` (Top Left), `2` (Top Right), `3` (Bottom Left), `4` (Bottom Right), `5` (Centered), `6` (Animated). |
108+
109+
#### Optional Run Configurations
110+
111+
| Argument | Description |
112+
| :----: | --- |
113+
| `--privileged` | Starts a Docker-in-Docker (DinD) environment. For better performance, mount the Docker data directory from the host, e.g., `-v /path/to/docker-data:/var/lib/docker`. |
114+
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mounts the host's Docker socket to manage host containers from within this container. |
105115
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated applications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
106116

107117
### Language Support - Internationalization
108118

109-
The environment variable `LC_ALL` can be used to start this container in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed inside the container depending on what underlying distribution you are running. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
119+
To launch the desktop session in a different language, set the `LC_ALL` environment variable. For example:
110120

111-
To install cjk fonts on startup as an example pass the environment variables (Alpine base):
121+
* `-e LC_ALL=zh_CN.UTF-8` - Chinese
122+
* `-e LC_ALL=ja_JP.UTF-8` - Japanese
123+
* `-e LC_ALL=ko_KR.UTF-8` - Korean
124+
* `-e LC_ALL=ar_AE.UTF-8` - Arabic
125+
* `-e LC_ALL=ru_RU.UTF-8` - Russian
126+
* `-e LC_ALL=es_MX.UTF-8` - Spanish (Latin America)
127+
* `-e LC_ALL=de_DE.UTF-8` - German
128+
* `-e LC_ALL=fr_FR.UTF-8` - French
129+
* `-e LC_ALL=nl_NL.UTF-8` - Netherlands
130+
* `-e LC_ALL=it_IT.UTF-8` - Italian
112131

113-
```
114-
-e DOCKER_MODS=linuxserver/mods:universal-package-install
115-
-e INSTALL_PACKAGES=fonts-noto-cjk
116-
-e LC_ALL=zh_CN.UTF-8
117-
```
118-
119-
The web interface has the option for "IME Input Mode" in Settings which will allow non english characters to be used from a non en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
120-
121-
### DRI3 GPU Acceleration (KasmVNC interface)
132+
### DRI3 GPU Acceleration
122133

123134
For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using:
124135

@@ -133,27 +144,30 @@ This feature only supports **Open Source** GPU drivers:
133144
| NVIDIA | nouveau2 drivers only, closed source NVIDIA drivers lack DRI3 support |
134145

135146
The `DRINODE` environment variable can be used to point to a specific GPU.
136-
Up to date information can be found [here](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html)
137147

138-
### Nvidia GPU Support (KasmVNC interface)
148+
DRI3 will work on aarch64 given the correct drivers are installed inside the container for your chipset.
139149

140-
**Nvidia support is not compatible with Alpine based images as Alpine lacks Nvidia drivers**
150+
### Nvidia GPU Support
141151

142-
Nvidia support is available by leveraging Zink for OpenGL support. This can be enabled with the following run flags:
152+
**Note: Nvidia support is not available for Alpine-based images.**
143153

144-
| Variable | Description |
154+
Nvidia GPU support is available by leveraging Zink for OpenGL. When a compatible Nvidia GPU is passed through, it will also be **automatically utilized for hardware-accelerated video stream encoding** (using the `x264enc` full-frame profile), significantly reducing CPU load.
155+
156+
Enable Nvidia support with the following runtime flags:
157+
158+
| Flag | Description |
145159
| :----: | --- |
146-
| --gpus all | This can be filtered down but for most setups this will pass the one Nvidia GPU on the system |
147-
| --runtime nvidia | Specify the Nvidia runtime which mounts drivers and tools in from the host |
160+
| `--gpus all` | Passes all available host GPUs to the container. This can be filtered to specific GPUs. |
161+
| `--runtime nvidia` | Specifies the Nvidia runtime, which provides the necessary drivers and tools from the host. |
148162

149-
The compose syntax is slightly different for this as you will need to set nvidia as the default runtime:
163+
For Docker Compose, you must first configure the Nvidia runtime as the default on the host:
150164

151165
```
152166
sudo nvidia-ctk runtime configure --runtime=docker --set-as-default
153-
sudo service docker restart
167+
sudo systemctl restart docker
154168
```
155169

156-
And to assign the GPU in compose:
170+
Then, assign the GPU to the service in your `compose.yaml`:
157171

158172
```
159173
services:
@@ -168,21 +182,25 @@ services:
168182
capabilities: [compute,video,graphics,utility]
169183
```
170184

171-
### Application management
185+
### Application Management
186+
187+
There are two methods for installing applications inside the container: PRoot Apps (recommended for persistence) and Native Apps.
188+
189+
#### PRoot Apps (Persistent)
172190

173-
#### PRoot Apps
191+
Natively installed packages (e.g., via `apt-get install`) will not persist if the container is recreated. To retain applications and their settings across container updates, we recommend using [proot-apps](https://github.com/linuxserver/proot-apps). These are portable applications installed to the user's persistent `$HOME` directory.
174192

175-
If you run system native installations of software IE `sudo apt-get install filezilla` and then upgrade or destroy/re-create the container that software will be removed and the container will be at a clean state. For some users that will be acceptable and they can update their system packages as well using system native commands like `apt-get upgrade`. If you want Docker to handle upgrading the container and retain your applications and settings we have created [proot-apps](https://github.com/linuxserver/proot-apps) which allow portable applications to be installed to persistent storage in the user's `$HOME` directory and they will work in a confined Docker environment out of the box. These applications and their settings will persist upgrades of the base container and can be mounted into different flavors of KasmVNC based containers on the fly. This can be achieved from the command line with:
193+
To install an application, use the command line inside the container:
176194

177195
```
178196
proot-apps install filezilla
179197
```
180198

181-
PRoot Apps is included in all KasmVNC based containers, a list of linuxserver.io supported applications is located [HERE](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
199+
A list of supported applications is available [here](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
182200

183-
#### Native Apps
201+
#### Native Apps (Non-Persistent)
184202

185-
It is possible to install extra packages during container start using [universal-package-install](https://github.com/linuxserver/docker-mods/tree/universal-package-install). It might increase starting time significantly. PRoot is preferred.
203+
You can install packages from the system's native repository using the [universal-package-install](https://github.com/linuxserver/docker-mods/tree/universal-package-install) mod. This method will increase the container's start time and is not persistent. Add the following to your `compose.yaml`:
186204

187205
```yaml
188206
environment:
@@ -240,7 +258,7 @@ Containers are configured using parameters passed at runtime (such as those abov
240258

241259
| Parameter | Function |
242260
| :----: | --- |
243-
| `-p 3000` | digiKam desktop gui |
261+
| `-p 3000` | digiKam desktop gui HTTP, must be proxied |
244262
| `-p 3001` | digiKam desktop gui HTTPS |
245263
| `-e PUID=1000` | for UserID - see below for explanation |
246264
| `-e PGID=1000` | for GroupID - see below for explanation |
@@ -410,6 +428,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
410428

411429
## Versions
412430

431+
* **12.07.25:** - Rebase to Selkies, HTTPS IS NOW REQUIRED.
413432
* **03.04.25:** - Update chromium launch options to improve performance.
414433
* **25.11.24:** - Rebase to Debian using official appimage, drop aarch64 support.
415434
* **10.02.24:** - Update Readme with new env vars and ingest proper PWA icon.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ repo_vars:
1919
- MULTIARCH = 'false'
2020
- CI = 'true'
2121
- CI_WEB = 'true'
22-
- CI_PORT = '3000'
23-
- CI_SSL = 'false'
22+
- CI_PORT = '3001'
23+
- CI_SSL = 'true'
2424
- CI_DELAY = '120'
2525
- CI_DOCKERENV = 'TZ=America/New_York'
2626
- CI_AUTH = 'user:password'

readme-vars.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ param_volumes:
3030
# optional parameters
3131
opt_param_usage_include_ports: true
3232
opt_param_ports:
33-
- {external_port: "3000", internal_port: "3000", port_desc: "digiKam desktop gui"}
33+
- {external_port: "3000", internal_port: "3000", port_desc: "digiKam desktop gui HTTP, must be proxied"}
3434
- {external_port: "3001", internal_port: "3001", port_desc: "digiKam desktop gui HTTPS"}
35-
# Kasm blurb settings
36-
kasm_blurb: true
35+
# Selkies blurb settings
36+
selkies_blurb: true
3737
show_nvidia: true
38-
external_http_port: "3000"
39-
external_https_port: "3001"
40-
noto_fonts: "fonts-noto-cjk"
4138
# application setup block
4239
app_setup_block_enabled: true
4340
app_setup_block: |
@@ -47,7 +44,6 @@ app_setup_block: |
4744
4845
The application can be accessed at:
4946
50-
* http://yourhost:3000/
5147
* https://yourhost:3001/
5248
# init diagram
5349
init_diagram: |
@@ -113,6 +109,7 @@ init_diagram: |
113109
"digikam:latest" <- Base Images
114110
# changelog
115111
changelogs:
112+
- {date: "12.07.25:", desc: "Rebase to Selkies, HTTPS IS NOW REQUIRED."}
116113
- {date: "03.04.25:", desc: "Update chromium launch options to improve performance."}
117114
- {date: "25.11.24:", desc: "Rebase to Debian using official appimage, drop aarch64 support."}
118115
- {date: "10.02.24:", desc: "Update Readme with new env vars and ingest proper PWA icon."}

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-openboxcopy

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-openboxcopy/dependencies.d/init-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-openboxcopy/run

Lines changed: 0 additions & 8 deletions
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-openboxcopy/type

Lines changed: 0 additions & 1 deletion
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-openboxcopy/up

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)