Skip to content

Commit ac532cb

Browse files
authored
Merge pull request #6 from linuxserver/selkies
selkies branch
2 parents f04eece + b54ee87 commit ac532cb

File tree

7 files changed

+82
-68
lines changed

7 files changed

+82
-68
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
3030
echo "> External trigger running off of master branch. To disable this trigger, add \`keepassxc_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
3131
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
32-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
32+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
3333
&& awk '/^P:'"keepassxc"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
3434
echo "Type is \`alpine_repo\`" >> $GITHUB_STEP_SUMMARY
3535
if grep -q "^keepassxc_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
@@ -107,7 +107,7 @@ jobs:
107107
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then
108108
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
109109
exit 0
110-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"keepassxc"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
110+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"keepassxc"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
111111
echo "New version \`${EXT_RELEASE}\` found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
112112
FAILURE_REASON="New version ${EXT_RELEASE} for keepassxc tag latest is detected, however not all arch repos are updated yet. Will try again later."
113113
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,

Dockerfile

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

33
# set version label
44
ARG BUILD_DATE
@@ -13,11 +13,11 @@ ENV TITLE=KeePassXC
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/keepassxc-logo.png && \
1818
echo "**** install packages ****" && \
1919
if [ -z ${KEEPASSXC_VERSION+x} ]; then \
20-
KEEPASSXC_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
20+
KEEPASSXC_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2121
&& awk '/^P:keepassxc$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2222
fi && \
2323
apk add --no-cache \

Dockerfile.aarch64

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

33
# set version label
44
ARG BUILD_DATE
@@ -13,11 +13,11 @@ ENV TITLE=KeePassXC
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/keepassxc-logo.png && \
1818
echo "**** install packages ****" && \
1919
if [ -z ${KEEPASSXC_VERSION+x} ]; then \
20-
KEEPASSXC_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp \
20+
KEEPASSXC_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2121
&& awk '/^P:keepassxc$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2222
fi && \
2323
apk add --no-cache \

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ pipeline {
2727
DEV_DOCKERHUB_IMAGE = 'lsiodev/keepassxc'
2828
PR_DOCKERHUB_IMAGE = 'lspipepr/keepassxc'
2929
DIST_IMAGE = 'alpine'
30-
DIST_TAG = '3.21'
31-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.21/community/'
30+
DIST_TAG = '3.22'
31+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.22/community/'
3232
DIST_REPO_PACKAGES = 'keepassxc'
3333
MULTIARCH = 'true'
3434
CI = 'true'
3535
CI_WEB = 'true'
36-
CI_PORT = '3000'
37-
CI_SSL = 'false'
36+
CI_PORT = '3001'
37+
CI_SSL = 'true'
3838
CI_DELAY = '120'
3939
CI_DOCKERENV = 'TZ=US/Pacific'
4040
CI_AUTH = 'user:password'

README.md

Lines changed: 62 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -58,63 +58,74 @@ 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-
**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**
63+
### Strict reverse proxies
64+
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).
67+
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.**
6569

6670
### Security
6771

6872
>[!WARNING]
69-
>Do not put this on the Internet if you do not know what you are doing.
73+
>This container provides privileged access to the host system. Do not expose it to the Internet unless you have secured it properly.
7074
71-
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.
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.
7276

73-
### Options in all KasmVNC based GUI containers
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.
7478

75-
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.
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.
7680

77-
#### Optional environment variables
81+
### Options in all Selkies-based GUI containers
7882

79-
| Variable | Description |
80-
| :----: | --- |
81-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
82-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
83-
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
84-
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
85-
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
86-
| TITLE | The page title displayed on the web browser, default "KasmVNC Client". |
87-
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
88-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
89-
| 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` |
90-
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
91-
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
92-
| NO_DECOR | If set the application will run without window borders in openbox for use as a PWA. |
93-
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
94-
95-
#### Optional run configurations
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
9686

9787
| Variable | Description |
9888
| :----: | --- |
99-
| `--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`. |
100-
| `-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. |
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. |
101111
| `--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) |
102112

103113
### Language Support - Internationalization
104114

105-
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.
115+
To launch the desktop session in a different language, set the `LC_ALL` environment variable. For example:
106116

107-
To install cjk fonts on startup as an example pass the environment variables (Alpine base):
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
108127

109-
```
110-
-e DOCKER_MODS=linuxserver/mods:universal-package-install
111-
-e INSTALL_PACKAGES=font-noto-cjk
112-
-e LC_ALL=zh_CN.UTF-8
113-
```
114-
115-
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.
116-
117-
### DRI3 GPU Acceleration (KasmVNC interface)
128+
### DRI3 GPU Acceleration
118129

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

@@ -129,23 +140,28 @@ This feature only supports **Open Source** GPU drivers:
129140
| NVIDIA | nouveau2 drivers only, closed source NVIDIA drivers lack DRI3 support |
130141

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

134-
### Application management
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)
135151

136-
#### PRoot Apps
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.
137153

138-
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:
154+
To install an application, use the command line inside the container:
139155

140156
```
141157
proot-apps install filezilla
142158
```
143159

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

146-
#### Native Apps
162+
#### Native Apps (Non-Persistent)
147163

148-
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.
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`:
149165

150166
```yaml
151167
environment:
@@ -204,7 +220,7 @@ Containers are configured using parameters passed at runtime (such as those abov
204220

205221
| Parameter | Function |
206222
| :----: | --- |
207-
| `-p 3000:3000` | KeePassXC desktop gui. |
223+
| `-p 3000:3000` | KeePassXC desktop gui HTTP, must be proxied. |
208224
| `-p 3001:3001` | KeePassXC desktop gui HTTPS. |
209225
| `-e PUID=1000` | for UserID - see below for explanation |
210226
| `-e PGID=1000` | for GroupID - see below for explanation |
@@ -374,6 +390,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
374390

375391
## Versions
376392

393+
* **12.07.25:** - Rebase to Selkies and Alpine 3.22, HTTPS IS NOW REQUIRED.
377394
* **06.12.24:** - Rebase to Alpine 3.21.
378395
* **23.05.24:** - Rebase to Alpine 3.20.
379396
* **10.04.24:** - Initial release.

jenkins-vars.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ repo_vars:
1616
- DEV_DOCKERHUB_IMAGE = 'lsiodev/keepassxc'
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/keepassxc'
1818
- DIST_IMAGE = 'alpine'
19-
- DIST_TAG = '3.21'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.21/community/'
19+
- DIST_TAG = '3.22'
20+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.22/community/'
2121
- DIST_REPO_PACKAGES = 'keepassxc'
2222
- MULTIARCH = 'true'
2323
- CI = 'true'
2424
- CI_WEB = 'true'
25-
- CI_PORT = '3000'
26-
- CI_SSL = 'false'
25+
- CI_PORT = '3001'
26+
- CI_SSL = 'true'
2727
- CI_DELAY = '120'
2828
- CI_DOCKERENV = 'TZ=US/Pacific'
2929
- CI_AUTH = 'user:password'

readme-vars.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,19 @@ param_volumes:
2525
- {vol_path: "/config", vol_host_path: "/path/to/config", desc: "Users home directory in the container, stores local files and settings"}
2626
param_usage_include_ports: true
2727
param_ports:
28-
- {external_port: "3000", internal_port: "3000", port_desc: "KeePassXC desktop gui."}
28+
- {external_port: "3000", internal_port: "3000", port_desc: "KeePassXC desktop gui HTTP, must be proxied."}
2929
- {external_port: "3001", internal_port: "3001", port_desc: "KeePassXC desktop gui HTTPS."}
3030
# optional variables
3131
opt_security_opt_param: true
3232
opt_security_opt_param_vars:
3333
- {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."}
34-
# Kasm blurb settings
35-
kasm_blurb: true
36-
external_http_port: "3000"
37-
external_https_port: "3001"
38-
noto_fonts: "font-noto-cjk"
34+
# Selkies blurb settings
35+
selkies_blurb: true
3936
# application setup block
4037
app_setup_block_enabled: true
4138
app_setup_block: |
4239
The application can be accessed at:
4340
44-
* http://yourhost:3000/
4541
* https://yourhost:3001/
4642
# init diagram
4743
init_diagram: |
@@ -105,6 +101,7 @@ init_diagram: |
105101
"keepassxc:latest" <- Base Images
106102
# changelog
107103
changelogs:
104+
- {date: "12.07.25:", desc: "Rebase to Selkies and Alpine 3.22, HTTPS IS NOW REQUIRED."}
108105
- {date: "06.12.24:", desc: "Rebase to Alpine 3.21."}
109106
- {date: "23.05.24:", desc: "Rebase to Alpine 3.20."}
110107
- {date: "10.04.24:", desc: "Initial release."}

0 commit comments

Comments
 (0)