Switch Docker runtime from scratch to alpine:3.19 so kubectl exec works for admin CLI operations. Add `synapbus channels create` and `synapbus channels join` CLI commands with corresponding admin socket handlers. Change default socket path to /data/synapbus.sock (absolute). Also add Helm envFrom support and NodePort configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.8 KiB
1.8 KiB
Tasks: Admin CLI & Docker Fixes
Feature: 006-admin-cli-docker-fixes Created: 2026-03-15 Plan: plan.md
Phase 1: Setup
- T01: Change default socket path from
./data/synapbus.sockto/data/synapbus.sockincmd/synapbus/admin.go(line 922) and update theSYNAPBUS_SOCKETenv var check comparison string.- Files:
cmd/synapbus/admin.go
- Files:
Phase 2: Core — Admin Socket Handlers
-
T02: Add
channels.createhandler tointernal/admin/socket.godispatch table and implementhandleChannelsCreatemethod.- Files:
internal/admin/socket.go - Depends on: T01
- Files:
-
T03: Add
channels.joinhandler tointernal/admin/socket.godispatch table and implementhandleChannelsJoinmethod.- Files:
internal/admin/socket.go - Depends on: T01
- Files:
Phase 3: Core — CLI Commands
-
T04: Add
synapbus channels createcobra command with--name(required) and--description(optional) flags incmd/synapbus/admin.go.- Files:
cmd/synapbus/admin.go - Depends on: T02
- Files:
-
T05: Add
synapbus channels joincobra command with--channel(required) and--agent(required) flags incmd/synapbus/admin.go.- Files:
cmd/synapbus/admin.go - Depends on: T03
- Files:
Phase 4: Docker
- T06: Change Dockerfile runtime stage from
FROM scratchtoFROM alpine:3.19and addRUN apk add --no-cache ca-certificates tzdata(removing COPY of certs/tzdata from builder).- Files:
Dockerfile
- Files:
Phase 5: Tests & Validation
-
T07: Add unit tests for
channels.createandchannels.joinadmin socket handlers.- Files:
cmd/synapbus/admin_test.go - Depends on: T04, T05
- Files:
-
T08: Run
make buildandmake testto verify all changes compile and pass.- Depends on: T01-T07