Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

🔖 Checkpoint: Edit /workspaces/claude-code-flow/examples/litellm/docker/entrypoint.sh

rUv00918fcad8b6
diff --git a/.claude/checkpoints/1754570915.json b/.claude/checkpoints/1754570915.json
new file mode 100644
index 0000000000..0c6c6732a0
--- /dev/null
+++ b/.claude/checkpoints/1754570915.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250807-124835", "file": "/workspaces/claude-code-flow/examples/litellm/.env.example", "timestamp": "2025-08-07T12:48:35Z", "type": "pre-edit", "original_branch": "alpha-88"}
diff --git a/.claude/checkpoints/1754570917.json b/.claude/checkpoints/1754570917.json
new file mode 100644
index 0000000000..612bcadebc
--- /dev/null
+++ b/.claude/checkpoints/1754570917.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250807-124837", "file": "/workspaces/claude-code-flow/examples/litellm/.env.example", "timestamp": "2025-08-07T12:48:37Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 6 +- .claude-flow/metrics/system-metrics.json | 108 +++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 14 +--- .claude/checkpoints/1754570912.json | 1 + .claude/checkpoints/1754570913.json | 1 + examples/litellm/.env.example | 81 +++++++++++++++++++++++ 6 files changed, 197 insertions(+), 14 deletions(-) "}
diff --git a/examples/litellm/docker/entrypoint.sh b/examples/litellm/docker/entrypoint.sh
new file mode 100644
index 0000000000..194d426198
--- /dev/null
+++ b/examples/litellm/docker/entrypoint.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+set -e
+
+echo "Starting LiteLLM Proxy Server..."
+
+# Wait for PostgreSQL to be ready
+until pg_isready -h postgres -p 5432 -U litellm; do
+ echo "Waiting for PostgreSQL to be ready..."
+ sleep 2
+done
+
+# Wait for Redis to be ready
+until redis-cli -h redis ping; do
+ echo "Waiting for Redis to be ready..."
+ sleep 2
+done
+
+# Run database migrations if needed
+if [ "$RUN_MIGRATIONS" = "true" ]; then
+ echo "Running database migrations..."
+ python -c "
+import litellm
+from litellm.proxy.db import init_db
+init_db()
+"
+fi
+
+# Load tenant configurations if directory exists
+if [ -d "/app/tenants" ]; then
+ echo "Loading tenant configurations..."
+ for config in /app/tenants/*.yaml; do
+ if [ -f "$config" ]; then
+ echo " - Loading: $(basename $config)"
+ fi
+ done
+fi
+
+# Start the LiteLLM proxy with provided arguments
+echo "Starting LiteLLM proxy on port ${LITELLM_PORT:-4000}..."
+exec litellm \
+ --host ${LITELLM_HOST:-0.0.0.0} \
+ --port ${LITELLM_PORT:-4000} \
+ --num_workers ${MAX_WORKERS:-4} \
+ --telemetry ${LITELLM_TELEMETRY:-false} \
+ "$@"
\ No newline at end of file