Skip to content

Commit da4ccb3

Browse files
author
Bram van Dartel
committed
fix pre_release
1 parent ec98b6b commit da4ccb3

File tree

9 files changed

+21
-12
lines changed

9 files changed

+21
-12
lines changed

CHANGELOG

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
2024.04.04
2+
- Upgrade alpine to 3.19
3+
- Upgrade postgresql to 16.x
4+
15
2024.02.21
26
- Upgrade to DSMR 5.11.0
3-
- Upgrade alpine to 3.19
7+
- Upgrade alpine to 3.17
48
- Upgrade postgresql to 15.x
59

610
2023.11.01

examples/docker-compose.example.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
dsmrdb:
55
# When using Postgres, release 13.x, 14.x and 15.x are supported only
66
# due to the limited availability of client packages, especially for arm32v7
7-
image: postgres:15-alpine
7+
image: postgres:16-alpine
88
container_name: dsmrdb
99
restart: always
1010
volumes:

rootfs/app/cleandb.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

34
if [[ "${DJANGO_DATABASE_ENGINE}" == *"postgres"* ]]; then
45
if [[ $1 = "-v" ]]; then

rootfs/etc/s6-overlay/s6-rc.d/docker-entrypoint/run

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

34
#---------------------------------------------------------------------------------------------------------------------------
45
# VARIABLES
@@ -20,8 +21,8 @@ function _pre_reqs() {
2021
DUID=${DUID:-803}
2122
DGID=${DGID:-803}
2223

23-
groupmod -o -g "${DGID}" app 2>&1 >/dev/null
24-
usermod -o -u "${DUID}" app 2>&1 >/dev/null
24+
groupmod -o -g "${DGID}" app >/dev/null 2>&1
25+
usermod -o -u "${DUID}" app >/dev/null 2>&1
2526

2627
cat /etc/s6-overlay/s6-rc.d/docker-entrypoint/branding
2728
echo "
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

34
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
45
echo "Starting DSMR Reader - backend..."
56
cd /app || exit
6-
exec s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
7-
# exec s6-notifyoncheck -d -n 300 -w 1000 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
7+
exec s6-notifyoncheck -d -n 300 -w 1000 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
88
else
99
sleep infinity
1010
fi
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

34
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone ]]; then
45
echo "Starting DSMR Reader - datalogger..."
56
cd /app || exit
6-
exec s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_datalogger
7+
exec s6-notifyoncheck -d -n 300 -w 1000 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_datalogger
78
else
89
sleep infinity
910
fi
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

34
if [[ "${DSMRREADER_OPERATION_MODE}" = api_client ]]; then
45
echo "Starting DSMR Reader - remote datalogger (api_client)..."
56
cd /app || exit
6-
exec s6-setuidgid app /usr/local/bin/python3 -u /app/dsmr_datalogger_api_client.py
7+
exec s6-notifyoncheck -d -n 300 -w 1000 s6-setuidgid app /usr/local/bin/python3 -u /app/dsmr_datalogger_api_client.py
78
else
89
sleep infinity
910
fi
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/command/with-contenv bash
2+
# shellcheck shell=bash
23

34
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
45
echo "Starting DSMR Reader - webinterface..."
56
cd /app || exit
6-
exec s6-setuidgid app /usr/local/bin/gunicorn dsmrreader.wsgi --timeout 60 --max-requests 500 --bind unix:/tmp/gunicorn--dsmr_webinterface.socket
7+
exec s6-notifyoncheck -d -n 300 -w 1000 s6-setuidgid app /usr/local/bin/gunicorn dsmrreader.wsgi --timeout 60 --max-requests 500 --bind unix:/tmp/gunicorn--dsmr_webinterface.socket
78
else
89
sleep infinity
910
fi
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# shellcheck disable=SC1008
2-
#!/command/with-contenv bash
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
33

44
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
55
echo "Starting DSMR Reader - nginx..."
66
cd /app || exit
7-
exec /usr/sbin/nginx -g 'daemon off;'
7+
exec s6-notifyoncheck -d -n 300 -w 1000 s6-setuidgid app /usr/sbin/nginx -g "daemon off;"
88
else
99
sleep infinity
1010
fi

0 commit comments

Comments
 (0)