spr standalone

This commit is contained in:
buenosairesam
2025-12-31 08:42:03 -03:00
parent 680969ca42
commit 21b8eab3cb
5 changed files with 82 additions and 0 deletions

22
ctrl/build.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Build soleprint for local development
#
# Usage:
# ./build.sh # Build gen/ with default config
# ./build.sh amar # Build gen/ with amar room config
set -e
cd "$(dirname "$0")/.."
CFG="${1:-}"
if [ -n "$CFG" ]; then
echo "Building with --cfg $CFG..."
python build.py dev --cfg "$CFG"
else
echo "Building soleprint..."
python build.py dev
fi
echo ""
echo "Done. Run with: ./ctrl/start.sh"

7
ctrl/logs.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# View soleprint logs
set -e
cd "$(dirname "$0")/../gen"
docker compose logs -f "$@"

28
ctrl/start.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
# Start soleprint with Docker (for network access to other services)
#
# Usage:
# ./start.sh # Start in foreground
# ./start.sh -d # Start detached
# ./start.sh --build # Rebuild image first
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
ARGS=""
for arg in "$@"; do
case $arg in
-d|--detach) ARGS="$ARGS -d" ;;
--build) ARGS="$ARGS --build" ;;
esac
done
docker compose up $ARGS

7
ctrl/stop.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Stop soleprint Docker container
set -e
cd "$(dirname "$0")/../gen"
docker compose down

View File

@@ -1,5 +1,23 @@
# Soleprint core
fastapi>=0.104.0
uvicorn[standard]>=0.24.0
pydantic>=2.5.0
pydantic-settings>=2.0.0
httpx>=0.25.0
jinja2>=3.1.0
# Database (databrowse)
sqlalchemy>=2.0.0
psycopg2-binary>=2.9.0
# Veins - Jira
jira>=3.5.0
# Veins - Slack
slack_sdk>=3.23.0
# Veins - Google
google-auth>=2.23.0
google-auth-oauthlib>=1.1.0
google-auth-httplib2>=0.1.1
google-api-python-client>=2.100.0