Some checks are pending
AI PR Review / ai-review (pull_request) Waiting to run
CI / lint (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / security (pull_request) Waiting to run
CI / pre-commit (pull_request) Waiting to run
CI / license (pull_request) Waiting to run
CI / ai-review (pull_request) Waiting to run
#1 requirements.lock was incomplete (missing python-multipart, mcp, chain deps) - Switch Dockerfile to use requirements.txt (loose pins) - Add python-multipart>=0.0.9 and mcp>=1.25.0 to requirements.txt #2 main.py wrong import: AuditTrail does not exist - core/audit.py defines AuditLog, not AuditTrail - Updated import + usage #3 main.py wrong import path: _PersistentStore doesn't exist - Actual class is PersistentStore (no underscore prefix) - Lives in routers/_persistent_store.py (not routers/chain_vault.py) - Updated import path + name #4 DB volume permissions broken - Added entrypoint.sh that chowns /data to walletpress:walletpress as root - Reordered Dockerfile: COPY entrypoint + chmod before USER directive - Added /data mkdir + chown in Dockerfile for build-time setup After fixes: - walletpress-backend container Up (healthy) - 112 API endpoints accessible at /backend/* - Tailscale access works, direct IP requires basic auth
15 lines
404 B
Bash
Executable file
15 lines
404 B
Bash
Executable file
#!/bin/sh
|
|
# Entry runs as root. Chown data dir then exec CMD as walletpress (per Dockerfile USER directive).
|
|
set -e
|
|
|
|
mkdir -p /data
|
|
# chown needs to be done as root (current user)
|
|
chown -R walletpress:walletpress /data
|
|
chmod 755 /data
|
|
|
|
# Print info
|
|
echo "[walletpress] data dir ready: /data"
|
|
echo "[walletpress] starting: $@"
|
|
|
|
# Exec the CMD — runs as walletpress (Dockerfile USER directive)
|
|
exec "$@"
|