forked from rowboatlabs/rowboat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·40 lines (31 loc) · 890 Bytes
/
start.sh
File metadata and controls
executable file
·40 lines (31 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# ensure data dirs exist
mkdir -p data/uploads
mkdir -p data/qdrant
mkdir -p data/mongo
# set the following environment variables
export USE_RAG=true
export USE_RAG_UPLOADS=true
# enable composio tools if API key is set
if [ -n "$COMPOSIO_API_KEY" ]; then
export USE_COMPOSIO_TOOLS=true
fi
# 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
# Start with the base command and profile flags
CMD="docker compose"
CMD="$CMD --profile setup_qdrant"
CMD="$CMD --profile qdrant"
CMD="$CMD --profile rag-worker"
# 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