feat: always-on remote node — MCP over HTTP, TLS/token, Docker, CI, sqlc #9

Merged
david merged 14 commits from feat/remote-node into main 2026-11-05 02:14:34 +00:00
2 changed files with 19 additions and 3 deletions
Showing only changes of commit 120f64c3db - Show all commits
+9
View File
@@ -38,6 +38,15 @@ jobs:
- name: Install node for JS actions
run: apk add --no-cache nodejs
- uses: actions/checkout@v4
# act_runner injects ACTIONS_CACHE_URL, so this hits the runner-local
# cache server (config: cache.dir) instead of re-downloading modules.
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-${{ hashFiles('go.sum') }}
restore-keys: go-
- run: go vet ./... && go test ./...
image:
+10 -3
View File
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
# Headless knox node: CLI + MCP stdio + gossip sync, one static binary.
#
# docker build -t docker.notsosm.art/knox:latest .
@@ -9,12 +10,18 @@
FROM golang:1.27-alpine AS build
WORKDIR /src
# Dependencies first so source edits do not invalidate the module cache.
# Dependencies first so source edits do not invalidate the module layer.
COPY go.mod go.sum ./
RUN go mod download
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/knox .
# Cache mounts persist on the build daemon across builds, so a go.sum change no
# longer forces a full re-download and rebuild of every dependency.
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/knox .
FROM alpine:3.22
RUN apk add --no-cache ca-certificates \