359afb3a59
Infrastructure configs for GMKtec K11 (Docker, vLLM, LocalAI, ComfyUI, control-plane, gpu-fan agent, Server UI with CLI/file explorer/GPU fan curve). Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
627 B
Bash
Executable File
32 lines
627 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
STACK_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
cd "${STACK_DIR}"
|
|
|
|
if [[ ! -f .env ]]; then
|
|
echo "ERROR: .env not found. Run: cp .env.example .env"
|
|
exit 1
|
|
fi
|
|
|
|
set -a
|
|
# shellcheck disable=SC1091
|
|
source .env
|
|
set +a
|
|
|
|
if ! docker info &>/dev/null; then
|
|
echo "ERROR: Docker is not running"
|
|
exit 1
|
|
fi
|
|
|
|
echo "=== LocalAI — pull image only (no start) ==="
|
|
echo "Image: ${LOCALAI_IMAGE:-localai/localai:v4.4.3-gpu-nvidia-cuda-13}"
|
|
echo ""
|
|
|
|
docker compose --profile localai pull
|
|
|
|
echo ""
|
|
echo "Done. Start with: ./scripts/start.sh"
|