Files
PMOCrazycoder/docker-entrypoint.sh
Eric Coissac c4947e0df9 Setup dev container and MCP infrastructure
Add dev container configuration with docker-compose, Dockerfile, and entrypoint script

- Create .devcontainer/devcontainer.json for VS Code dev container
- Create .devcontainer/docker-compose.yml for container setup
- Add Dockerfile with Python, Go, Rust, R, and jj tools
- Add docker-entrypoint.sh to initialize .ai_index and start mcp-server
- Add Makefile for container management and MCP operations
- Add .gitignore entries for AI index
- Add OpenCode global instructions
- Add basic MCP server and tool for listing Go imports
- Add Zed integration configuration
- Update README with project vision and structure
2026-02-21 13:18:07 +01:00

15 lines
329 B
Bash
Executable File

#!/bin/bash
# docker-entrypoint.sh
if [ ! -d "/workspace/.ai_index" ]; then
mkdir -p /workspace/.ai_index/ast
mkdir -p /workspace/.ai_index/embeddings
touch /workspace/.ai_index/graph.db
fi
/opt/bin/mcp-server > /workspace/.ai_index/mcp.log 2>&1 &
MCP_PID=$!
echo $MCP_PID > /workspace/.ai_index/mcp.pid
exec "$@"