mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
04bce702b7
Add mcp-build.sh that compiles the MCP binary and packages it as an OCI image layer on top of the base rootfs, imported directly into containerd. Air triggers rebuild on code changes, cleaning stale containers automatically. Consolidate dev-only files (Dockerfiles, entrypoint, config, build script) into devenv/ to separate dev tooling from production artifacts. Skip image pull when already imported to speed up dev startup.
23 lines
536 B
TOML
23 lines
536 B
TOML
root = "."
|
|
tmp_dir = "tmp"
|
|
|
|
[build]
|
|
cmd = "go build -o ./tmp/memoh-server ./cmd/agent/main.go && sh devenv/mcp-build.sh"
|
|
bin = "./tmp/memoh-server"
|
|
args_bin = ["serve"]
|
|
include_ext = ["go", "toml"]
|
|
include_dir = ["cmd", "internal", "conf"]
|
|
exclude_dir = ["tmp", "vendor", "node_modules", "packages", "agent", "docs", "devenv", "docker", "scripts", "db/migrations"]
|
|
exclude_regex = ["_test\\.go$"]
|
|
delay = 1000
|
|
stop_on_error = true
|
|
send_interrupt = true
|
|
kill_delay = 500
|
|
|
|
[log]
|
|
time = false
|
|
main_only = true
|
|
|
|
[misc]
|
|
clean_on_exit = true
|