BTHLABS-49: WIP

This commit is contained in:
2025-08-19 08:33:44 +02:00
parent 6b959bb9ea
commit 53fdc8e12e
10 changed files with 27 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ cat <<EOF
|_|
production
HotPocket v1.0.0rc1 [${HOTPOCKET_BACKEND_IMAGE_TAG}] (https://htpocket.app/)
HotPocket v1.0.0rc1 [${HOTPOCKET_BACKEND_IMAGE_ID}] (https://htpocket.app/)
Copyright 2025-present by BTHLabs. All rights reserved. (https://bthlabs.pl/)
Licensed under BTHLabs Source Available License Agreement
EOF
@@ -21,12 +21,12 @@ EOF
export PYTHONPATH="/srv/app:$PYTHONPATH"
if [ -n "${HOTPOCKET_BACKEND_RUN_MIGRATIONS}" ];then
echo; echo "Running migrations..."
echo; echo "--- Running migrations..."
${VIRTUAL_ENV}/bin/python /srv/app/manage.py migrate
fi
if [[ -n "${HOTPOCKET_BACKEND_INITIAL_ACCOUNT_USERNAME}" && -n "${HOTPOCKET_BACKEND_INITIAL_ACCOUNT_PASSWORD}" ]]; then
echo; echo "Creating initial Account..."
echo; echo "--- Creating initial Account..."
${VIRTUAL_ENV}/bin/python /srv/app/manage.py create_initial_account "${HOTPOCKET_BACKEND_INITIAL_ACCOUNT_USERNAME}" "${HOTPOCKET_BACKEND_INITIAL_ACCOUNT_PASSWORD}"
fi
@@ -34,8 +34,8 @@ if [ "${HOTPOCKET_BACKEND_ENV}" = "aio" ];then
mkdir -p "${HOTPOCKET_BACKEND_UPLOADS_PATH:-/srv/run/uploads}"
fi
echo; echo "Running entrypoing.d parts..."
find "/srv/entrypoint.d/" -follow -type f -print | sort -V | while read -r ENTRYPOINT_PART; do
echo; echo "--- Running entrypoint.d parts..."
find "/srv/etc/entrypoint.d/" -follow -type f -print | sort -V | while read -r ENTRYPOINT_PART; do
case "$ENTRYPOINT_PART" in
*.sh)
echo "$0: Executing ${ENTRYPOINT_PART}...";
@@ -48,6 +48,6 @@ find "/srv/entrypoint.d/" -follow -type f -print | sort -V | while read -r ENTRY
esac
done
echo; echo "Setup done, booting the app..."; echo
echo; echo "--- Setup done, booting the app..."; echo
exec /usr/bin/dumb-init "$@"