mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
Merge 65b87dd8b0 into 2133d7226f
This commit is contained in:
commit
9a893c3327
2 changed files with 57 additions and 0 deletions
30
.devcontainer/devcontainer.json
Normal file
30
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"name": "Row Boat Labs Dev Container Setup",
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.defaultProfile.linux": "bash"
|
||||||
|
},
|
||||||
|
"initializeCommand": "make ensure-dirs && make set-env",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
||||||
|
},
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"ms-vscode.makefile-tools"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteEnv": {
|
||||||
|
"USE_RAG": "true",
|
||||||
|
"USE_RAG_UPLOADS": "true",
|
||||||
|
"USE_KLAVIS_TOOLS": "true",
|
||||||
|
"USE_COMPOSIO_TOOLS": "${localEnv:COMPOSIO_API_KEY:false}"
|
||||||
|
},
|
||||||
|
"mounts": [
|
||||||
|
"type=bind,source=${localWorkspaceFolder}/data/uploads,target=/workspace/data/uploads,consistency=cached",
|
||||||
|
"type=bind,source=${localWorkspaceFolder}/data/qdrant,target=/workspace/data/qdrant,consistency=cached",
|
||||||
|
"type=bind,source=${localWorkspaceFolder}/data/mongo,target=/workspace/data/mongo,consistency=cached"
|
||||||
|
]
|
||||||
|
}
|
||||||
27
Makefile
Normal file
27
Makefile
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Ensure data directories exist
|
||||||
|
.PHONY: ensure-dirs
|
||||||
|
ensure-dirs:
|
||||||
|
mkdir -p data/uploads
|
||||||
|
mkdir -p data/qdrant
|
||||||
|
mkdir -p data/mongo
|
||||||
|
|
||||||
|
# Set environment variables
|
||||||
|
.PHONY: set-env
|
||||||
|
set-env:
|
||||||
|
export USE_RAG=true
|
||||||
|
export USE_RAG_UPLOADS=true
|
||||||
|
@if [ -n "$$COMPOSIO_API_KEY" ]; then \
|
||||||
|
export USE_COMPOSIO_TOOLS=true; \
|
||||||
|
fi
|
||||||
|
export USE_KLAVIS_TOOLS=true
|
||||||
|
|
||||||
|
# Run the Docker Compose command
|
||||||
|
.PHONY: start
|
||||||
|
start: ensure-dirs set-env
|
||||||
|
@CMD="docker compose"; \
|
||||||
|
CMD="$$CMD --profile setup_qdrant"; \
|
||||||
|
CMD="$$CMD --profile qdrant"; \
|
||||||
|
CMD="$$CMD --profile rag-worker"; \
|
||||||
|
CMD="$$CMD up --build"; \
|
||||||
|
echo "Running: $$CMD"; \
|
||||||
|
eval $$CMD
|
||||||
Loading…
Add table
Add a link
Reference in a new issue