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>
This commit is contained in:
15
docker/entrypoint.sh
Executable file
15
docker/entrypoint.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user