Skip to content

Commit 12af9b2

Browse files
committed
rebase to selkies
1 parent ca86bff commit 12af9b2

5 files changed

Lines changed: 105 additions & 87 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
3+
FROM ghcr.io/linuxserver/baseimage-selkies:debianbookworm
44

55
# set version label
66
ARG BUILD_DATE
@@ -15,7 +15,7 @@ ENV TITLE=RawTherapee
1515
RUN \
1616
echo "**** add icon ****" && \
1717
curl -o \
18-
/kclient/public/icon.png \
18+
/usr/share/selkies/www/icon.png \
1919
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/rawtherapee-logo.png && \
2020
echo "**** install packages ****" && \
2121
apt-get update && \
@@ -53,5 +53,5 @@ RUN \
5353
COPY /root /
5454

5555
# ports and volumes
56-
EXPOSE 3000
56+
EXPOSE 3001
5757
VOLUME /config

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ pipeline {
3232
MULTIARCH = 'false'
3333
CI = 'true'
3434
CI_WEB = 'true'
35-
CI_PORT = '3000'
36-
CI_SSL = 'false'
35+
CI_PORT = '3001'
36+
CI_SSL = 'true'
3737
CI_DELAY = '120'
3838
CI_DOCKERENV = ''
3939
CI_AUTH = ''

README.md

Lines changed: 94 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -58,55 +58,116 @@ The architectures supported by this image are:
5858

5959
The application can be accessed at:
6060

61-
* http://yourhost:3000/
6261
* https://yourhost:3001/
6362

64-
### Options in all KasmVNC based GUI containers
63+
### Strict reverse proxies
6564

66-
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.
65+
This image uses a self-signed certificate by default. This naturally means the scheme is `https`.
66+
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).
6767

68-
#### Optional environment variables
68+
**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.**
6969

70-
| Variable | Description |
71-
| :----: | --- |
72-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
73-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
74-
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
75-
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
76-
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
77-
| TITLE | The page title displayed on the web browser, default "KasmVNC Client". |
78-
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
79-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
80-
| 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` |
81-
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
82-
| NO_DECOR | If set the application will run without window borders for use as a PWA. |
83-
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
84-
85-
#### Optional run configurations
70+
### Security
71+
72+
>[!WARNING]
73+
>This container provides privileged access to the host system. Do not expose it to the Internet unless you have secured it properly.
74+
75+
**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.
76+
77+
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.
78+
79+
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.
80+
81+
### Options in all Selkies-based GUI containers
82+
83+
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.
84+
85+
#### Optional Environment Variables
8686

8787
| Variable | Description |
8888
| :----: | --- |
89-
| `--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`. |
90-
| `-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. |
91-
| `--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 appplications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
89+
| `CUSTOM_PORT` | Internal HTTP port. Defaults to `3000`. |
90+
| `CUSTOM_HTTPS_PORT` | Internal HTTPS port. Defaults to `3001`. |
91+
| `CUSTOM_USER` | Username for HTTP Basic Auth. Defaults to `abc`. |
92+
| `PASSWORD` | Password for HTTP Basic Auth. If unset, authentication is disabled. |
93+
| `SUBFOLDER` | Application subfolder for reverse proxy configurations. Must include leading and trailing slashes, e.g., `/subfolder/`. |
94+
| `TITLE` | Page title displayed in the web browser. Defaults to "Selkies". |
95+
| `START_DOCKER` | If set to `false`, the privileged Docker-in-Docker setup will not start automatically. |
96+
| `DISABLE_IPV6` | Set to `true` to disable IPv6 support in the container. |
97+
| `LC_ALL` | Sets the container's locale, e.g., `fr_FR.UTF-8`. |
98+
| `DRINODE` | If mounting in /dev/dri for DRI3 GPU Acceleration allows you to specify the device to use IE `/dev/dri/renderD128` |
99+
| `NO_DECOR` | If set, applications will run without window borders, suitable for PWA usage. |
100+
| `NO_FULL` | If set, applications will not be automatically fullscreened. |
101+
| `DISABLE_ZINK` | If set, Zink-related environment variables will not be configured when a video card is detected. |
102+
| `WATERMARK_PNG` | Full path to a watermark PNG file inside the container, e.g., `/usr/share/selkies/www/icon.png`. |
103+
| `WATERMARK_LOCATION` | Integer specifying the watermark location: `1` (Top Left), `2` (Top Right), `3` (Bottom Left), `4` (Bottom Right), `5` (Centered), `6` (Animated). |
104+
105+
#### Optional Run Configurations
106+
107+
| Argument | Description |
108+
| :----: | --- |
109+
| `--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`. |
110+
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mounts the host's Docker socket to manage host containers from within this container. |
111+
| `--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) |
92112

93113
### Language Support - Internationalization
94114

95-
The environment variable `LC_ALL` can be used to start this image 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. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
115+
To launch the desktop session in a different language, set the `LC_ALL` environment variable. For example:
116+
117+
* `-e LC_ALL=zh_CN.UTF-8` - Chinese
118+
* `-e LC_ALL=ja_JP.UTF-8` - Japanese
119+
* `-e LC_ALL=ko_KR.UTF-8` - Korean
120+
* `-e LC_ALL=ar_AE.UTF-8` - Arabic
121+
* `-e LC_ALL=ru_RU.UTF-8` - Russian
122+
* `-e LC_ALL=es_MX.UTF-8` - Spanish (Latin America)
123+
* `-e LC_ALL=de_DE.UTF-8` - German
124+
* `-e LC_ALL=fr_FR.UTF-8` - French
125+
* `-e LC_ALL=nl_NL.UTF-8` - Netherlands
126+
* `-e LC_ALL=it_IT.UTF-8` - Italian
127+
128+
### DRI3 GPU Acceleration
129+
130+
For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using:
96131

97-
To install cjk fonts on startup as an example pass the environment variables:
132+
`--device /dev/dri:/dev/dri`
133+
134+
This feature only supports **Open Source** GPU drivers:
135+
136+
| Driver | Description |
137+
| :----: | --- |
138+
| Intel | i965 and i915 drivers for Intel iGPU chipsets |
139+
| AMD | AMDGPU, Radeon, and ATI drivers for AMD dedicated or APU chipsets |
140+
| NVIDIA | nouveau2 drivers only, closed source NVIDIA drivers lack DRI3 support |
141+
142+
The `DRINODE` environment variable can be used to point to a specific GPU.
143+
144+
DRI3 will work on aarch64 given the correct drivers are installed inside the container for your chipset.
145+
146+
### Application Management
147+
148+
There are two methods for installing applications inside the container: PRoot Apps (recommended for persistence) and Native Apps.
149+
150+
#### PRoot Apps (Persistent)
151+
152+
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.
153+
154+
To install an application, use the command line inside the container:
98155

99156
```
100-
-e DOCKER_MODS=linuxserver/mods:universal-package-install
101-
-e INSTALL_PACKAGES=fonts-noto-cjk
102-
-e LC_ALL=zh_CN.UTF-8
157+
proot-apps install filezilla
103158
```
104159

105-
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.
160+
A list of supported applications is available [here](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
106161

107-
### Lossless mode
162+
#### Native Apps (Non-Persistent)
108163

109-
This container is capable of delivering a true lossless image at a high framerate to your web browser by changing the Stream Quality preset to "Lossless", more information [here](https://www.kasmweb.com/docs/latest/how_to/lossless.html#technical-background). In order to use this mode from a non localhost endpoint the HTTPS port on 3001 needs to be used. If using a reverse proxy to port 3000 specific headers will need to be set as outlined [here](https://github.com/linuxserver/docker-baseimage-kasmvnc#lossless).
164+
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`:
165+
166+
```yaml
167+
environment:
168+
- DOCKER_MODS=linuxserver/mods:universal-package-install
169+
- INSTALL_PACKAGES=libfuse2|git|gdb
170+
```
110171
111172
## Usage
112173
@@ -159,7 +220,7 @@ Containers are configured using parameters passed at runtime (such as those abov
159220

160221
| Parameter | Function |
161222
| :----: | --- |
162-
| `-p 3000:3000` | RawTherapee desktop gui. |
223+
| `-p 3000:3000` | RawTherapee desktop gui (only for reverse proxy access). |
163224
| `-p 3001:3001` | RawTherapee desktop gui HTTPS. |
164225
| `-e PUID=1000` | for UserID - see below for explanation |
165226
| `-e PGID=1000` | for GroupID - see below for explanation |
@@ -329,4 +390,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
329390

330391
## Versions
331392

393+
* **29.07.25:** - Rebase to selkies. Breaking Change: HTTPS is now required. Either use a reverse proxy with SSL cert or direct connect to port 8181 with HTTPS.
332394
* **24.09.24:** - Initial release.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ repo_vars:
2020
- MULTIARCH = 'false'
2121
- CI = 'true'
2222
- CI_WEB = 'true'
23-
- CI_PORT = '3000'
24-
- CI_SSL = 'false'
23+
- CI_PORT = '3001'
24+
- CI_SSL = 'true'
2525
- CI_DELAY = '120'
2626
- CI_DOCKERENV = ''
2727
- CI_AUTH = ''

readme-vars.yml

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,65 +19,20 @@ param_volumes:
1919
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "User's home directory in the container, stores program settings and files."}
2020
param_usage_include_ports: true
2121
param_ports:
22-
- {external_port: "3000", internal_port: "3000", port_desc: "RawTherapee desktop gui."}
22+
- {external_port: "3000", internal_port: "3000", port_desc: "RawTherapee desktop gui (only for reverse proxy access)."}
2323
- {external_port: "3001", internal_port: "3001", port_desc: "RawTherapee desktop gui HTTPS."}
2424
opt_security_opt_param: true
2525
opt_security_opt_param_vars:
2626
- {run_var: "seccomp=unconfined", compose_var: "seccomp:unconfined", desc: "For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker."}
27+
# Selkies blurb settings
28+
selkies_blurb: true
2729
# application setup block
2830
app_setup_block_enabled: true
2931
app_setup_block: |
3032
The application can be accessed at:
3133
32-
* http://yourhost:3000/
3334
* https://yourhost:3001/
3435
35-
### Options in all KasmVNC based GUI containers
36-
37-
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.
38-
39-
#### Optional environment variables
40-
41-
| Variable | Description |
42-
| :----: | --- |
43-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
44-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
45-
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
46-
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
47-
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
48-
| TITLE | The page title displayed on the web browser, default "KasmVNC Client". |
49-
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
50-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
51-
| 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` |
52-
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
53-
| NO_DECOR | If set the application will run without window borders for use as a PWA. |
54-
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
55-
56-
#### Optional run configurations
57-
58-
| Variable | Description |
59-
| :----: | --- |
60-
| `--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`. |
61-
| `-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. |
62-
| `--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 appplications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
63-
64-
### Language Support - Internationalization
65-
66-
The environment variable `LC_ALL` can be used to start this image 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. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
67-
68-
To install cjk fonts on startup as an example pass the environment variables:
69-
70-
```
71-
-e DOCKER_MODS=linuxserver/mods:universal-package-install
72-
-e INSTALL_PACKAGES=fonts-noto-cjk
73-
-e LC_ALL=zh_CN.UTF-8
74-
```
75-
76-
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.
77-
78-
### Lossless mode
79-
80-
This container is capable of delivering a true lossless image at a high framerate to your web browser by changing the Stream Quality preset to "Lossless", more information [here](https://www.kasmweb.com/docs/latest/how_to/lossless.html#technical-background). In order to use this mode from a non localhost endpoint the HTTPS port on 3001 needs to be used. If using a reverse proxy to port 3000 specific headers will need to be set as outlined [here](https://github.com/linuxserver/docker-baseimage-kasmvnc#lossless).
8136
# init diagram
8237
init_diagram: |
8338
"rawtherapee:latest": {
@@ -140,4 +95,5 @@ init_diagram: |
14095
"rawtherapee:latest" <- Base Images
14196
# changelog
14297
changelogs:
98+
- {date: "29.07.25:", desc: "Rebase to selkies. Breaking Change: HTTPS is now required. Either use a reverse proxy with SSL cert or direct connect to port 8181 with HTTPS."}
14399
- {date: "24.09.24:", desc: "Initial release."}

0 commit comments

Comments
 (0)