Fix deploy build failure and opencode chat execvp error
Add "gitea" to local RepoResult provider type (was missing from UI interface despite being returned by repo-search). Copy opencode binary instead of symlinking — symlink through /root/ is inaccessible to the nextjs user due to directory permissions.
This commit is contained in:
@@ -42,8 +42,8 @@ RUN apk add --no-cache git github-cli curl ca-certificates
|
|||||||
RUN npm install -g @anthropic-ai/claude-code @openai/codex
|
RUN npm install -g @anthropic-ai/claude-code @openai/codex
|
||||||
RUN curl -fsSL https://opencode.ai/install | sh || \
|
RUN curl -fsSL https://opencode.ai/install | sh || \
|
||||||
echo "WARN: opencode install failed, skipping"
|
echo "WARN: opencode install failed, skipping"
|
||||||
# Ensure opencode is on PATH (installer puts it in ~/.local/bin)
|
# Ensure opencode is on PATH (installer puts it in ~/.local/bin which root owns)
|
||||||
RUN if [ -f /root/.local/bin/opencode ]; then ln -s /root/.local/bin/opencode /usr/local/bin/opencode; fi
|
RUN if [ -f /root/.local/bin/opencode ]; then cp /root/.local/bin/opencode /usr/local/bin/opencode; fi
|
||||||
|
|
||||||
# MCP servers: Gitea (Go binary from builder stage)
|
# MCP servers: Gitea (Go binary from builder stage)
|
||||||
COPY --from=gitea-mcp-builder /usr/local/bin/gitea-mcp /usr/local/bin/gitea-mcp
|
COPY --from=gitea-mcp-builder /usr/local/bin/gitea-mcp /usr/local/bin/gitea-mcp
|
||||||
|
|||||||
@@ -613,7 +613,7 @@ function NewTaskTab({ onSubmit, mobile, projects, knowledgeDocs }: {
|
|||||||
// ─── REPO SEARCH COMPONENT ────────────────────────────────────────────────────
|
// ─── REPO SEARCH COMPONENT ────────────────────────────────────────────────────
|
||||||
|
|
||||||
interface RepoResult {
|
interface RepoResult {
|
||||||
provider: "github" | "gitlab";
|
provider: "github" | "gitlab" | "gitea";
|
||||||
fullName: string;
|
fullName: string;
|
||||||
url: string;
|
url: string;
|
||||||
description: string;
|
description: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user