forked from molecule-ai/molecule-core
fix: restore plugin COPY in Dockerfile — permanently fixes token endpoint
The Dockerfile COPY for molecule-ai-plugin-github-app-auth was lost during a rebase earlier this session. Without it, the platform binary compiled without the TokenProvider interface implementation, causing /admin/github-installation-token to return 'no token provider registered'. This forced hourly rolling restarts to refresh GH_TOKEN (the env var from provision time expires after ~60 min). Each restart also required re-applying 6 manual patches and caused ~2 min of A2A downtime where agents reported peers as 'unresponsive'. With this fix, the gh-wrapper in each container auto-refreshes tokens via the platform endpoint on every gh call. Zero restarts needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cbee9a7237
commit
fe250b256b
@ -5,6 +5,8 @@
|
||||
|
||||
FROM golang:1.25-alpine AS builder
|
||||
WORKDIR /app
|
||||
# Plugin source for replace directive in go.mod
|
||||
COPY molecule-ai-plugin-github-app-auth/ /plugin/
|
||||
COPY platform/go.mod platform/go.sum ./
|
||||
RUN go mod download
|
||||
COPY platform/ .
|
||||
|
||||
@ -90,3 +90,5 @@ require (
|
||||
google.golang.org/protobuf v1.34.2 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
replace github.com/Molecule-AI/molecule-ai-plugin-github-app-auth => /plugin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user