refactor: separate standalone and managed room configs

- veins → shunts rename
- add cfg/standalone/ and cfg/<room>/ structure
- remove old data/*.json (moved to cfg/<room>/data/)
- update build.py and ctrl scripts
This commit is contained in:
buenosairesam
2026-01-02 17:09:58 -03:00
parent 46dc78db0e
commit 9e5cbbad1f
57 changed files with 1788 additions and 150 deletions

View File

@@ -1,28 +1,32 @@
#!/bin/bash
# Start soleprint with Docker (for network access to other services)
# Start soleprint with Docker
#
# Usage:
# ./start.sh # Start in foreground
# ./start.sh -d # Start detached
# ./start.sh --build # Rebuild image first
# ./start.sh # Start standalone
# ./start.sh amar # Start amar
# ./start.sh -d # Detached
# ./start.sh amar -d # Start amar detached
set -e
cd "$(dirname "$0")/.."
# Ensure gen/ exists
if [ ! -d "gen" ]; then
echo "gen/ not found. Run ./ctrl/build.sh first"
exit 1
fi
cd gen
TARGET="standalone"
ARGS=""
for arg in "$@"; do
case $arg in
-d|--detach) ARGS="$ARGS -d" ;;
--build) ARGS="$ARGS --build" ;;
*) TARGET="$arg" ;;
esac
done
GEN_DIR="gen/$TARGET"
if [ ! -d "$GEN_DIR" ]; then
echo "$GEN_DIR not found. Run ./ctrl/build.sh $TARGET first"
exit 1
fi
cd "$GEN_DIR"
docker compose up $ARGS