feat: add OpenProject 17 docker compose stack and test data seeder
- Configure OpenProject 17 with PostgreSQL 17 and Memcached - Add scripts/seed-test-data.rb for test project, work packages, and API key generation - Add scripts/seed.sh to orchestrate container health check and seed execution - Add scripts/start.sh and scripts/stop.sh stack lifecycle helpers - Provide .env.example with defaults
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# ==============================================================================
|
||||
# OpenProject MCP Companion - Start & Seed Stack
|
||||
# ==============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
|
||||
cd "${ROOT_DIR}"
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
echo "[start.sh] Creating .env from .env.example..."
|
||||
cp .env.example .env
|
||||
fi
|
||||
|
||||
echo "[start.sh] Starting OpenProject docker compose stack..."
|
||||
docker compose up -d
|
||||
|
||||
echo "[start.sh] Running seed script to prepare test data and API token..."
|
||||
"${SCRIPT_DIR}/seed.sh"
|
||||
|
||||
echo "[start.sh] OpenProject MCP test stack is ready!"
|
||||
Reference in New Issue
Block a user