- Added build.sh that builds runner_osiris binary in release mode - Added run.sh that builds first, then starts the runner - Fixed binary name from osiris_runner to runner_osiris - Scripts use RUSTFLAGS to suppress warnings - Runner configured via environment variables (RUNNER_ID, REDIS_URL, BASE_DB_ID)
24 lines
532 B
Bash
Executable File
24 lines
532 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
PROJECT_DIR=$(cd "$SCRIPT_DIR/.." && pwd)
|
|
|
|
# Build first
|
|
"$SCRIPT_DIR/build.sh"
|
|
|
|
# Configuration
|
|
RUNNER_ID="${RUNNER_ID:-osiris}"
|
|
REDIS_URL="${REDIS_URL:-redis://localhost:6379}"
|
|
BASE_DB_ID="${BASE_DB_ID:-1}"
|
|
LOG_LEVEL="${LOG_LEVEL:-info}"
|
|
|
|
echo "Starting Osiris Runner..."
|
|
cd "$PROJECT_DIR"
|
|
|
|
RUST_LOG="$LOG_LEVEL" RUST_LOG_STYLE=never \
|
|
exec target/release/runner_osiris \
|
|
--redis-url "$REDIS_URL" \
|
|
--base-db-id "$BASE_DB_ID" \
|
|
"$RUNNER_ID"
|