Merge pull request #98 from linuxserver/3.21

This commit is contained in:
Roxedus 2025-01-28 15:54:09 +01:00 committed by GitHub
commit 7d05c85f2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 25 additions and 10 deletions

0
.editorconfig Executable file → Normal file
View File

0
.github/CONTRIBUTING.md vendored Executable file → Normal file
View File

0
.github/FUNDING.yml vendored Executable file → Normal file
View File

0
.github/ISSUE_TEMPLATE/config.yml vendored Executable file → Normal file
View File

0
.github/ISSUE_TEMPLATE/issue.bug.yml vendored Executable file → Normal file
View File

0
.github/ISSUE_TEMPLATE/issue.feature.yml vendored Executable file → Normal file
View File

0
.github/workflows/call_issue_pr_tracker.yml vendored Executable file → Normal file
View File

0
.github/workflows/call_issues_cron.yml vendored Executable file → Normal file
View File

0
.github/workflows/external_trigger.yml vendored Executable file → Normal file
View File

0
.github/workflows/external_trigger_scheduler.yml vendored Executable file → Normal file
View File

0
.github/workflows/greetings.yml vendored Executable file → Normal file
View File

0
.github/workflows/package_trigger_scheduler.yml vendored Executable file → Normal file
View File

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
# set version label
ARG BUILD_DATE

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
# set version label
ARG BUILD_DATE

0
LICENSE Executable file → Normal file
View File

View File

@ -75,6 +75,10 @@ This image can be run with a read-only container filesystem. For details please
`/tmp` must also be mounted to tmpfs for this image.
## Non-Root Operation
This image can be run with a non-root user. For details please [read the docs](https://docs.linuxserver.io/misc/non-root/).
## Usage
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@ -123,6 +127,7 @@ Containers are configured using parameters passed at runtime (such as those abov
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
| `-v /config` | Persistent config files |
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
| `--user=1000:1000` | Run container with a non-root user. Please [read the docs](https://docs.linuxserver.io/misc/non-root/). |
## Environment variables from files (Docker secrets)

View File

@ -20,6 +20,7 @@ param_volumes:
readonly_supported: true
readonly_message: |
`/tmp` must also be mounted to tmpfs for this image.
nonroot_supported: true
# application setup block
app_setup_block_enabled: true
app_setup_block: |

View File

@ -11,11 +11,13 @@ if [[ ! -e /config/ddclient.conf ]]; then
cp /defaults/ddclient.conf /config
fi
# permissions
lsiown -R abc:abc \
/config \
/run/ddclient \
/run/ddclient-cache
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
# permissions
lsiown -R abc:abc \
/config \
/run/ddclient \
/run/ddclient-cache
fi
chmod 700 \
/config \

View File

@ -1,5 +1,10 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
exec \
s6-setuidgid abc /usr/bin/ddclient --foreground --file /config/ddclient.conf --cache /run/ddclient-cache/ddclient.cache
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
exec \
s6-setuidgid abc /usr/bin/ddclient --foreground --file /config/ddclient.conf --cache /run/ddclient-cache/ddclient.cache
else
exec \
/usr/bin/ddclient --foreground --file /config/ddclient.conf --cache /run/ddclient-cache/ddclient.cache
fi

View File

@ -3,7 +3,9 @@
# starting inotify to watch /config/ddclient.conf and restart ddclient if changed.
while inotifywait -e modify /config/ddclient.conf; do
lsiown abc:abc /config/ddclient.conf
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
lsiown abc:abc /config/ddclient.conf
fi
chmod 600 /config/ddclient.conf
s6-svc -h /run/service/svc-ddclient
echo "ddclient has been restarted"