This commit enhances the Docker setup by: - Creating a dedicated programmer user with UID 1000 - Adding logrotate for log management - Updating the Dockerfile to use the new user and expose port 7860 - Adding a startup script to manage MCP server and Open Code processes - Updating the Makefile to include interactive mode and container naming - Configuring log rotation for server logs
14 lines
357 B
Bash
Executable File
14 lines
357 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Docker Startup Script for MCP Server and Open Code
|
|
# This script launches the MCP server in background and starts Open Code in interactive mode
|
|
|
|
echo "Starting MCP server in background..."
|
|
python3 PMOCrazyCoder.py >/log/server.log 2>&1 &
|
|
|
|
# Give the server a moment to start
|
|
sleep 3
|
|
|
|
echo "Starting Open Code in interactive mode..."
|
|
opencode
|