more restructuring

This commit is contained in:
buenosairesam
2026-01-20 06:01:27 -03:00
parent e4052374db
commit a9d1e135cb
117 changed files with 86 additions and 928 deletions

View File

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

View File

@@ -1,29 +0,0 @@
#!/bin/bash
# View soleprint logs
#
# Usage:
# ./logs.sh # Logs for standalone
# ./logs.sh amar # Logs for amar
set -e
cd "$(dirname "$0")/.."
TARGET="standalone"
ARGS=""
for arg in "$@"; do
case $arg in
-*) ARGS="$ARGS $arg" ;;
*) TARGET="$arg" ;;
esac
done
GEN_DIR="gen/$TARGET"
if [ ! -d "$GEN_DIR" ]; then
echo "$GEN_DIR not found"
exit 1
fi
cd "$GEN_DIR"
docker compose logs -f $ARGS

View File

@@ -1,32 +0,0 @@
#!/bin/bash
# Start soleprint with Docker
#
# Usage:
# ./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")/.."
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

View File

@@ -1,20 +0,0 @@
#!/bin/bash
# Stop soleprint Docker container
#
# Usage:
# ./stop.sh # Stop standalone
# ./stop.sh amar # Stop amar
set -e
cd "$(dirname "$0")/.."
TARGET="${1:-standalone}"
GEN_DIR="gen/$TARGET"
if [ ! -d "$GEN_DIR" ]; then
echo "$GEN_DIR not found"
exit 1
fi
cd "$GEN_DIR"
docker compose down