25 lines
815 B
Bash
Executable File
25 lines
815 B
Bash
Executable File
#!/bin/bash
|
|
# OpenHands Server Startup Script
|
|
|
|
# Load API keys
|
|
source /home/bam/openhands/.env
|
|
|
|
# Remove any existing container
|
|
docker rm -f openhands-app 2>/dev/null || true
|
|
|
|
# Start OpenHands with host networking
|
|
# n8n will access via host.docker.internal:3000 (Docker bridge to host)
|
|
exec docker run --rm --pull=always \
|
|
--network=host \
|
|
-e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.openhands.dev/openhands/runtime:latest-nikolaik \
|
|
-e LOG_ALL_EVENTS=true \
|
|
-e LLM_MODEL="openai/MiniMax-M2" \
|
|
-e LLM_API_KEY="${MINIMAX_API_KEY}" \
|
|
-e LLM_BASE_URL="https://api.minimax.io/v1" \
|
|
-e RUNTIME_STARTUP_TIMEOUT=120 \
|
|
-e SANDBOX_TIMEOUT=120 \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
-v /home/bam/.openhands:/.openhands \
|
|
--name openhands-app \
|
|
docker.openhands.dev/openhands/openhands:latest
|