add bash, git identity, RUST_LOG env var, OIDC overlay, entrypoint fixes

This commit is contained in:
notplants
2026-04-05 07:52:45 +00:00
parent d99036f113
commit 24d17b312a
4 changed files with 10 additions and 2 deletions

View File

@ -23,5 +23,5 @@ COMPOSE_FILE="compose.yml"
SECRET_ADMIN_PASSWORD_VERSION=v1
# Config versions
ENTRYPOINT_VERSION=v2
ENTRYPOINT_VERSION=v4
CADDYFILE_VERSION=v2

View File

@ -1,4 +1,4 @@
export ENTRYPOINT_VERSION=v2
export ENTRYPOINT_VERSION=v4
export CADDYFILE_VERSION=v2
export LICHEN_TOML_VERSION=v1

View File

@ -12,6 +12,7 @@ services:
- LM_DASHBOARD_DOMAIN=${DOMAIN}
- LM_USE_AUTH=true
- LM_ROOT_DIR=/data
- RUST_LOG=${RUST_LOG:-info}
configs:
- source: entrypoint
target: /entrypoint.sh

View File

@ -4,6 +4,13 @@ set -e
# Disable bubblewrap sandbox — not supported inside Docker
rm -f /usr/bin/bwrap
# Install bash for lichen shell feature
apk add --no-cache bash > /dev/null 2>&1 || true
# Set git identity for auto-commit
git config --global user.email "lichen@${LM_DASHBOARD_DOMAIN:-localhost}"
git config --global user.name "lichen"
ADMIN_PASSWORD=$(cat /run/secrets/admin_password)
# create or update admin user password on every startup