mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat(devenv): MCP dev hot-reload with image-based approach (#145)
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.
This commit is contained in:
+3
-3
@@ -59,9 +59,9 @@ mise run dev:restart -- server # Restart a specific service
|
||||
## Project Layout
|
||||
|
||||
```
|
||||
conf/ — Configuration templates (app.example.toml, app.dev.toml, app.docker.toml)
|
||||
devenv/ — Containerized development environment (docker-compose)
|
||||
docker/ — Docker build & runtime (Dockerfiles, entrypoints)
|
||||
conf/ — Configuration templates (app.example.toml, app.docker.toml)
|
||||
devenv/ — Dev environment (docker-compose, dev Dockerfiles, app.dev.toml, mcp-build.sh)
|
||||
docker/ — Production Docker build & runtime (Dockerfiles, entrypoints)
|
||||
cmd/ — Go application entry points
|
||||
internal/ — Go backend core code
|
||||
agent/ — Agent Gateway (Bun/Elysia)
|
||||
|
||||
Reference in New Issue
Block a user