Skip to content

Commit 2b05b20

Browse files
authored
Merge pull request #8 from linuxserver/3.21
2 parents 8ee4d19 + aa90978 commit 2b05b20

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
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
ARG BUILD_DATE
66
ARG VERSION

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
ARG BUILD_DATE
66
ARG VERSION

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
293293

294294
## Versions
295295

296+
* **12.01.25:** - Rebase to 3.21.
296297
* **23.07.24:** - Initial Release.

readme-vars.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ param_ports:
2828
opt_param_usage_include_vols: true
2929
opt_param_volumes:
3030
- {vol_path: "/libraries", vol_host_path: "/path/to/libraries", desc: "Location of your 3D model libraries."}
31+
readonly_supported: false
32+
nonroot_supported: false
3133
# application setup block
3234
app_setup_block_enabled: true
3335
app_setup_block: |
@@ -83,4 +85,5 @@ init_diagram: |
8385
"manyfold:latest" <- Base Images
8486
# changelog
8587
changelogs:
88+
- {date: "12.01.25:", desc: "Rebase to Alpine 3.21."}
8689
- {date: "23.07.24:", desc: "Initial Release."}

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,35 @@ if [[ ${DB_SCHEME} = "sqlite3" ]]; then
2424
lsiown -R abc:abc \
2525
/config
2626
elif [[ ${DB_SCHEME} = "postgresql" ]]; then
27-
DB_HOST=$(awk -F"@|:" '{print $4}' <<<"${DATABASE_URL}")
28-
DB_PORT=$(awk -F"@|/" '{print $6}' <<<"${DATABASE_URL}")
27+
DB_HOST=$(awk -F '@|:|/' '{print $6}' <<<"${DATABASE_URL}")
28+
DB_PORT=$(awk -F '@|:|/' '{print $7}' <<<"${DATABASE_URL}")
29+
DB_USER=$(awk -F '@|:|/' '{print $4}' <<<"${DATABASE_URL}")
2930
if [[ ! ${DB_PORT} =~ [0-9]+ ]]; then DB_PORT=5432; fi
3031
echo "Waiting for DB to be available"
3132
END=$((SECONDS + 30))
3233
while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
33-
if pg_isready -h "${DB_HOST}" -p "${DB_PORT}" -q; then
34-
if [[ ! -f /dbwait.lock ]]; then
34+
if pg_isready -h "${DB_HOST}" -p "${DB_PORT}" -U "${DB_USER}" -q; then
35+
if [[ ! -f /run/dbwait.lock ]]; then
3536
sleep 5
3637
fi
37-
touch /dbwait.lock
38+
touch /run/dbwait.lock
3839
break
3940
else
4041
sleep 1
4142
fi
4243
done
4344
elif [[ ${DB_SCHEME} = "mysql2" ]]; then
44-
DB_HOST=$(awk -F"@|:" '{print $4}' <<<"${DATABASE_URL}")
45-
DB_PORT=$(awk -F"@|/" '{print $6}' <<<"${DATABASE_URL}")
45+
DB_HOST=$(awk -F '@|:|/' '{print $6}' <<<"${DATABASE_URL}")
46+
DB_PORT=$(awk -F '@|:|/' '{print $7}' <<<"${DATABASE_URL}")
4647
if [[ ! ${DB_PORT} =~ [0-9]+ ]]; then DB_PORT=3306; fi
4748
echo "Waiting for DB to be available"
4849
END=$((SECONDS + 30))
4950
while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
5051
if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then
51-
if [[ ! -f /dbwait.lock ]]; then
52+
if [[ ! -f /run/dbwait.lock ]]; then
5253
sleep 5
5354
fi
54-
touch /dbwait.lock
55+
touch /run/dbwait.lock
5556
break
5657
else
5758
sleep 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
exec \
55
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 3214" \
6-
cd /app/www s6-setuidgid abc foreman start
6+
cd /app/www s6-setuidgid abc foreman start

0 commit comments

Comments
 (0)