Skip to content

Commit d8b454d

Browse files
authored
Merge pull request #36 from linuxserver/3.21
2 parents f1a9d86 + e2e8eea commit d8b454d

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
lines changed

Dockerfile

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

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
44

55
# set version label
66
ARG BUILD_DATE

Dockerfile.aarch64

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

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
44

55
# set version label
66
ARG BUILD_DATE

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ For more information please see the [official documentation](https://docs.requar
6767

6868
This image can be run with a read-only container filesystem. For details please [read the docs](https://docs.linuxserver.io/misc/read-only/).
6969

70+
## Non-Root Operation
71+
72+
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
73+
7074
## Usage
7175

7276
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -140,6 +144,7 @@ Containers are configured using parameters passed at runtime (such as those abov
140144
| `-v /config` | Persistent config files |
141145
| `-v /data` | Where Wiki.js data is stored. |
142146
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
147+
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
143148

144149
## Environment variables from files (Docker secrets)
145150

@@ -303,6 +308,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
303308

304309
## Versions
305310

311+
* **18.01.25:** - Rebase to Alpine 3.21.
306312
* **01.06.24:** - Rebase to Alpine 3.20.
307313
* **23.12.23:** - Rebase to Alpine 3.19.
308314
* **25.08.22:** - Rebase to Alpine 3.18.

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ opt_param_env_vars:
3030
- {env_var: "DB_USER", env_value: "", desc: "DB username (postgres only)"}
3131
- {env_var: "DB_PASS", env_value: "", desc: "DB password (postgres only)"}
3232
readonly_supported: true
33+
nonroot_supported: true
3334
# application setup block
3435
app_setup_block_enabled: true
3536
app_setup_block: |
@@ -81,6 +82,7 @@ init_diagram: |
8182
"wikijs:latest" <- Base Images
8283
# changelog
8384
changelogs:
85+
- {date: "18.01.25:", desc: "Rebase to Alpine 3.21."}
8486
- {date: "01.06.24:", desc: "Rebase to Alpine 3.20."}
8587
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19."}
8688
- {date: "25.08.22:", desc: "Rebase to Alpine 3.18."}

root/etc/s6-overlay/s6-rc.d/init-wikijs-config/run

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ if [[ ! -f "/config/config.yml" ]]; then
99
cp /defaults/config.yml /config/config.yml
1010
fi
1111

12-
# permissions
13-
lsiown -R abc:abc \
14-
/config
12+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
13+
# permissions
14+
lsiown -R abc:abc \
15+
/config
1516

16-
if grep -qe ' /data ' /proc/mounts; then
17-
lsiown abc:abc \
18-
/data
17+
if grep -qe ' /data ' /proc/mounts; then
18+
lsiown abc:abc \
19+
/data
20+
fi
1921
fi

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
export CONFIG_FILE="/config/config.yml"
55

6-
exec \
7-
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
8-
cd /app/wiki s6-setuidgid abc /usr/bin/node server
6+
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
7+
exec \
8+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
9+
cd /app/wiki s6-setuidgid abc /usr/bin/node server
10+
else
11+
exec \
12+
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3000" \
13+
cd /app/wiki /usr/bin/node server
14+
fi

0 commit comments

Comments
 (0)