#!/usr/bin/env bash
set -e

# TODO make url configuration consistent.
export CHROMA_CLUSTER_TEST_ONLY=1
export CHROMA_SERVER_HOST="${CHROMA_SERVER_HOST:-localhost:8000}"
export CHROMA_COORDINATOR_HOST="${CHROMA_COORDINATOR_HOST:-localhost}"

echo "Chroma Server is running at port $CHROMA_SERVER_HOST"
echo "Chroma Coordinator is running at port $CHROMA_COORDINATOR_HOST"

"$@"
