rowboat/start.sh

41 lines
890 B
Bash
Raw Normal View History

2025-04-30 23:36:49 +05:30
#!/bin/bash
# ensure data dirs exist
mkdir -p data/uploads
mkdir -p data/qdrant
mkdir -p data/mongo
2025-05-06 15:53:27 +05:30
# set the following environment variables
export USE_RAG=true
export USE_RAG_UPLOADS=true
2025-07-03 15:19:48 +05:30
# enable composio tools if API key is set
if [ -n "$COMPOSIO_API_KEY" ]; then
export USE_COMPOSIO_TOOLS=true
fi
2025-07-17 11:41:27 +05:30
# always show klavis tools, even if API key is not set
export USE_KLAVIS_TOOLS=true
# # enable klavis tools if API key is set
# if [ -n "$KLAVIS_API_KEY" ]; then
# export USE_KLAVIS_TOOLS=true
# fi
2025-07-10 08:38:40 +05:30
2025-04-30 23:36:49 +05:30
# Start with the base command and profile flags
2025-07-23 05:47:33 +00:00
CMD="docker compose"
2025-05-06 15:53:27 +05:30
CMD="$CMD --profile setup_qdrant"
CMD="$CMD --profile qdrant"
2025-08-17 08:06:17 +05:30
CMD="$CMD --profile rag-worker"
2025-04-30 23:36:49 +05:30
# Add more mappings as needed
# if [ "$SOME_OTHER_ENV" = "true" ]; then
# CMD="$CMD --profile some_other_profile"
# fi
# Add the up and build flags at the end
CMD="$CMD up --build"
echo "Running: $CMD"
exec $CMD