From 954e57cb21ad898b5bd3f50cfdbbb63ed3f8d09a Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Thu, 9 Apr 2026 18:00:00 +0000 Subject: [PATCH] feat: install rtk tool and enhance container tooling and error handling Extend the build toolchain with gpg-agent and procps utilities, introduce RTK integration with telemetry disabled by default, and enforce stricter error propagation throughout the Dockerfile. Refactor the plugin configuration array formatting. --- Dockerfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9cc410..b1aabc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ apt-get install \ libatomic1 \ -y -apt-get install make gpg -y --no-install-recommends +apt-get install make gpg gpg-agent procps -y --no-install-recommends rm -rf /var/lib/apt/lists/* /var/cache/apt @@ -86,6 +86,7 @@ ARG OPENCODE_BUILD_DIR=/usr/local/share/opencode-build ENV OPENCODE_CONFIG_DIR=/etc/opencode ENV OPENCODE_EXPERIMENTAL=1 ENV ENGRAM_DATA_DIR=/home/bun/.local/share/opencode/engram +ENV RTK_TELEMETRY_DISABLED=1 ENV AGENT_BROWSER_ENGINE=lightpanda @@ -157,7 +158,7 @@ engram_url="https://github.com/Gentleman-Programming/engram/releases/download/${ ( curl -fsSL "${engram_url}" | tar -C /usr/local/bin -xvzf - engram \ && curl -fsSL "https://raw.githubusercontent.com/Gentleman-Programming/engram/refs/tags/${engram_resolved_version}/plugin/opencode/engram.ts" -o "${OPENCODE_PLUGINS_DIR}/engram.ts" -) +) || exit 1 ### # UV @@ -170,6 +171,16 @@ curl -fsSL "${uv_url}" | tar -C /usr/local/bin -xvzf - --strip-components=1 --wi # jcodemunch-mcp uv pip install --system jcodemunch-mcp || exit 1 +## +# rtk +( + curl -fsSL "https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh" \ + | RTK_INSTALL_DIR=/usr/local/bin sh +) || exit 1 + +curl -fsSL "https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/hooks/opencode/rtk.ts" -o "${OPENCODE_PLUGINS_DIR}/rtk.ts" \ +|| exit 1 + ### # cleanup rm -rf /root/.bun @@ -194,8 +205,7 @@ cat >"${OPENCODE_CONFIG_DIR}/opencode.json" <<-'EOF' { "$schema": "https://opencode.ai/config.json", "plugin": [ - "engram", - "file:///usr/local/bun/install/global/node_modules/opencode-gemini-auth" + "file:///usr/local/bun/install/global/node_modules/opencode-gemini-auth", ], "mcp": { "engram": {