Skip to content

Commit 6d87c54

Browse files
authored
add selkies blurb for readmes (#341)
* add selkies blurb for readmes * typo
1 parent 09059fd commit 6d87c54

File tree

3 files changed

+112
-0
lines changed

3 files changed

+112
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
**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**
2+
3+
### Security
4+
5+
{{ "Do not put this on the Internet if you do not know what you are doing." | admonition(flavour=markdown, severity="warning") }}
6+
7+
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.
8+
9+
### Options in all Selkies based GUI containers
10+
11+
This container is based on [Docker Baseimage Selkies](https://github.com/linuxserver/docker-baseimage-selkies) which means there are additional environment variables and run configurations to enable or disable specific functionality.
12+
13+
#### Optional environment variables
14+
15+
| Variable | Description |
16+
| :----: | --- |
17+
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default {% if external_http_port is defined %}{{ external_http_port }}{% else %}3000{% endif %}. |
18+
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default {% if external_https_port is defined %}{{ external_https_port }}{% else %}3001{% endif %}. |
19+
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
20+
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
21+
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
22+
| TITLE | The page title displayed on the web browser, default "Selkies". |
23+
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
24+
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
25+
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
26+
| NO_DECOR | If set the application will run without window borders in openbox for use as a PWA. |
27+
| NO_FULL | Do not automatically fullscreen applications when using openbox. |
28+
29+
#### Optional run configurations
30+
31+
| Variable | Description |
32+
| :----: | --- |
33+
| `--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`. |
34+
| `-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. |
35+
36+
### Language Support - Internationalization
37+
38+
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 supported languages:
39+
40+
* `-e LC_ALL=zh_CN.UTF-8` - Chinese
41+
* `-e LC_ALL=ja_JP.UTF-8` - Japanese
42+
* `-e LC_ALL=ko_KR.UTF-8` - Korean
43+
* `-e LC_ALL=ar_AE.UTF-8` - Arabic
44+
* `-e LC_ALL=ru_RU.UTF-8` - Russian
45+
* `-e LC_ALL=es_MX.UTF-8` - Spanish (Latin America)
46+
* `-e LC_ALL=de_DE.UTF-8` - German
47+
* `-e LC_ALL=fr_FR.UTF-8` - French
48+
* `-e LC_ALL=nl_NL.UTF-8` - Netherlands
49+
* `-e LC_ALL=it_IT.UTF-8` - Italian
50+
51+
{% if show_nvidia is defined %}### Nvidia GPU Support
52+
53+
**Nvidia support is not compatible with Alpine based images as Alpine lacks Nvidia drivers**
54+
55+
Nvidia support is available by leveraging Zink for OpenGL support. This can be enabled with the following run flags:
56+
57+
| Variable | Description |
58+
| :----: | --- |
59+
| --gpus all | This can be filtered down but for most setups this will pass the one Nvidia GPU on the system |
60+
| --runtime nvidia | Specify the Nvidia runtime which mounts drivers and tools in from the host |
61+
62+
The compose syntax is slightly different for this as you will need to set nvidia as the default runtime:
63+
64+
```
65+
sudo nvidia-ctk runtime configure --runtime=docker --set-as-default
66+
sudo service docker restart
67+
```
68+
69+
And to assign the GPU in compose:
70+
71+
```
72+
services:
73+
{{ project_name }}:
74+
image: lscr.io/{{ lsio_project_name_short }}/{{ project_name }}:{{ release_tag }}
75+
deploy:
76+
resources:
77+
reservations:
78+
devices:
79+
- driver: nvidia
80+
count: 1
81+
capabilities: [compute,video,graphics,utility]
82+
```
83+
84+
{% endif %}### Application management
85+
86+
#### PRoot Apps
87+
88+
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 ofSelkiess based containers on the fly. This can be achieved from the command line with:
89+
90+
```
91+
proot-apps install filezilla
92+
```
93+
94+
PRoot Apps is included in all Selkies based containers, a list of linuxserver.io supported applications is located [HERE](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
95+
96+
#### Native Apps
97+
98+
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.
99+
100+
```yaml
101+
environment:
102+
- DOCKER_MODS=linuxserver/mods:universal-package-install
103+
- INSTALL_PACKAGES=libfuse2|git|gdb
104+
```

ansible/roles/documentation/templates/documentation.md.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ description: "{{ noter(project_blurb) | trim }}"
6464
{% if kasm_blurb is defined %}
6565
{% include "README_SNIPPETS/KASM.j2" | trim %}
6666

67+
{% endif %}
68+
{% if selkies_blurb is defined %}
69+
{% include "README_SNIPPETS/SELKIES.j2" | trim %}
70+
6771
{% endif %}
6872
{% if readonly_supported is defined and readonly_supported %}
6973
{% include "README_SNIPPETS/READONLY.j2" | trim %}

ansible/roles/documentation/templates/readme.md.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
{% if kasm_blurb is defined %}
5656
{% include "README_SNIPPETS/KASM.j2" | trim %}
5757

58+
{% endif %}
59+
{% if selkies_blurb is defined %}
60+
{% include "README_SNIPPETS/SELKIES.j2" | trim %}
61+
5862
{% endif %}
5963
{% if readonly_supported is defined and readonly_supported %}
6064
{% include "README_SNIPPETS/READONLY.j2" | trim %}

0 commit comments

Comments
 (0)