Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 38 additions & 36 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ ARG PONYTAIL_VERSION=latest
ARG ENGRAM_VERSION=latest
ARG GRAPHIFY_VERSION=latest
ARG OPENCODE_BUILD_DIR=/usr/local/share/opencode-build
ARG OPENCODE_CONFIG_DIR=/etc/opencode

ENV OPENCODE_CONFIG_DIR=/etc/opencode
ENV OPENCODE_EXPERIMENTAL=1
ENV ENGRAM_DATA_DIR="${BUN_HOME}/.local/share/opencode/engram"
ENV RTK_TELEMETRY_DISABLED=1
Expand Down Expand Up @@ -125,7 +125,7 @@ resolve_github_latest_version() {
mkdir -p "${BUN_INSTALL}" "${OPENCODE_CONFIG_DIR}" "${OPENCODE_PLUGINS_DIR}" "${PROVIDER_DIR}"
chmod 0777 "${OPENCODE_CONFIG_DIR}"

bun install -g "opencode-ai@${OPENCODE_VERSION}" || exit 1
bun install -g --trust "@opencode/cli@${OPENCODE_VERSION}" || exit 1

###
# providers
Expand Down Expand Up @@ -325,46 +325,48 @@ rm -rf "${OPENCODE_BUILD_DIR}"
cat >"${OPENCODE_CONFIG_DIR}/opencode.json" <<-EOF
{
"\$schema": "https://opencode.ai/config.json",
"autoupdate": false,
"plugin": [
"update": "disable",
"plugins": [
"file:///usr/local/bun/install/global/node_modules/opencode-gemini-auth",
"file:///etc/opencode/plugins/caveman",
"file:///etc/opencode/plugins/graphify.js"
],
"mcp": {
"engram": {
"type": "local",
"command": [
"engram",
"mcp",
"--tools=agent"
],
"enabled": false
},
"sequential-thinking": {
"type": "local",
"command": [
"bun",
"x",
"@modelcontextprotocol/server-sequential-thinking"
],
"enabled": false
},
"msdocs": {
"type": "remote",
"url": "https://learn.microsoft.com/api/mcp",
"enabled": false
},
"jcodemunch": {
"type": "local",
"command": [
"jcodemunch-mcp", "--log-level", "WARNING", "--log-file", "${BUN_HOME}/.local/share/opencode/log/jcodemunch.log"
],
"environment": {
"JCODEMUNCH_SHARE_SAVINGS": "0",
"JCODEMUNCH_TRUSTED_FOLDERS": "/work"
"servers": {
"engram": {
"type": "local",
"command": [
"engram",
"mcp",
"--tools=agent"
],
"disabled": true
},
"enabled": false
"sequential-thinking": {
"type": "local",
"command": [
"bun",
"x",
"@modelcontextprotocol/server-sequential-thinking"
],
"disabled": true
},
"msdocs": {
"type": "remote",
"url": "https://learn.microsoft.com/api/mcp",
"disabled": true
},
"jcodemunch": {
"type": "local",
"command": [
"jcodemunch-mcp", "--log-level", "WARNING", "--log-file", "${BUN_HOME}/.local/share/opencode/log/jcodemunch.log"
],
"environment": {
"JCODEMUNCH_SHARE_SAVINGS": "0",
"JCODEMUNCH_TRUSTED_FOLDERS": "/work"
},
"disabled": true
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TAG ?= local
IMAGE_REF := $(IMAGE):$(TAG)
DOCKERFILE ?= Dockerfile
CONTEXT ?= .
DOCKER_BUILD_ARGS ?=
OPENCODE_VERSION ?= latest
AZURE_FOUNDRY_PROVIDER_REF ?= latest

Expand All @@ -15,6 +16,7 @@ build:
-f $(DOCKERFILE) \
--build-arg OPENCODE_VERSION=$(OPENCODE_VERSION) \
--build-arg AZURE_FOUNDRY_PROVIDER_REF=$(AZURE_FOUNDRY_PROVIDER_REF) \
$(DOCKER_BUILD_ARGS) \
$(CONTEXT)

run:
Expand Down
Loading