mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
feat: Atomic update mcp image
This commit is contained in:
@@ -9,6 +9,8 @@ node = "25"
|
||||
bun = "latest"
|
||||
# pnpm for workspace management
|
||||
pnpm = "10"
|
||||
# Lima for macOS
|
||||
lima = { version = "latest", platform = "darwin" }
|
||||
|
||||
[task_config]
|
||||
dir = "{{cwd}}"
|
||||
@@ -24,6 +26,24 @@ run = "pnpm install"
|
||||
description = "Install Go dependencies"
|
||||
run = "go mod download"
|
||||
|
||||
[tasks.lima-up]
|
||||
run = """
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
limactl start default
|
||||
fi
|
||||
"""
|
||||
|
||||
[tasks.lima-down]
|
||||
run = """
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
limactl stop default
|
||||
fi
|
||||
"""
|
||||
|
||||
[tasks.containerd-install]
|
||||
description = "Install containerd or verify in Lima"
|
||||
run = "scripts/containerd-install.sh"
|
||||
|
||||
[tasks.swagger-generate]
|
||||
description = "Generate Swagger documentation"
|
||||
run = "cd internal/handlers && go generate"
|
||||
@@ -45,6 +65,18 @@ description = "Install CLI"
|
||||
depends = ["//:pnpm-install"]
|
||||
run = "cd packages/cli && npm install -g"
|
||||
|
||||
[tasks.mcp-image-up]
|
||||
description = "Build MCP container image"
|
||||
run = "scripts/mcp-image-up.sh"
|
||||
|
||||
[tasks.mcp-image-down]
|
||||
description = "Remove MCP container image"
|
||||
run = "scripts/mcp-image-down.sh"
|
||||
|
||||
[tasks.compile-mcp]
|
||||
description = "Build MCP binary into /app and signal container"
|
||||
run = "scripts/compile-mcp.sh"
|
||||
|
||||
[tasks.dev]
|
||||
description = "Start development environment"
|
||||
depends = [
|
||||
|
||||
Reference in New Issue
Block a user