| #!/bin/bash |
| set -e |
|
|
| |
| if [ ! -d "/data/chroma" ]; then |
| echo "[DEBUG] Creating /data/chroma" |
| mkdir -p /data/chroma |
| fi |
|
|
| |
| if [ ! -d "/data/.flowise/logs" ]; then |
| echo "[DEBUG] Creating /data/.flowise/logs" |
| mkdir -p /data/.flowise/logs |
| fi |
|
|
| |
| echo "[DEBUG] Starting Chroma..." |
| chroma run --path /data/chroma --host 0.0.0.0 --port 8000 & |
|
|
| |
| echo "--- Waiting for Chroma API ---" |
| until curl -s http://localhost:8000/api/v2/heartbeat >/dev/null; do |
| echo "[DEBUG] Chroma not ready yet. Retrying..." |
| sleep 1 |
| done |
| echo "--- Chroma API is up ---" |
|
|
| |
| echo "[DEBUG] Testing Chroma collections endpoint:" |
| curl -s http://localhost:8000/api/v2/collections || true |
|
|
| |
| echo "[DEBUG] Starting Flowise..." |
| npx flowise start |