Files
HSAP/docker/entrypoint.sh
Chengfang Lu 7c43b44c57 feat: initial HSAP platform
Huaxu Sentinel Active Safety Platform with embedded algorithm code,
Docker Compose setup, and vendored dataset scaffolds for clone-and-run.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 16:59:59 +08:00

16 lines
393 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
set -euo pipefail
cd /data/hsap
if [[ -d /data/workspace/DMS || -d /data/workspace/LaneDection ]]; then
echo "[entrypoint] 检测到外部 workspace重建软链…"
bash scripts/setup_links.sh || true
else
echo "[entrypoint] 使用仓库内嵌 algorithms/datasets"
fi
python scripts/wait_for_db.py
python scripts/db_migrate_from_sqlite.py 2>/dev/null || true
exec "$@"