You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add OpenCode injector image Dockerfile and registry.json guide
- Replace Gemini/Claude dual-provider example with a single OpenCode
provider using OPENAI_API_KEY
- Add Procedure step with a minimal Dockerfile for building a custom
injector image, based on che-incubator/che-ai-tool-images/dockerfiles/
opencode/Dockerfile; explains multi-stage build, wrapper script for
OpenShift arbitrary UIDs, and multi-arch build command
- Reference che-incubator/che-ai-tool-images for maintained examples
- Document all registry.json fields with numbered callouts
Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Copy file name to clipboardExpand all lines: modules/administration-guide/pages/configuring-ai-providers.adoc
+84-42Lines changed: 84 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
:_content-type: PROCEDURE
2
2
:description: Register AI providers in Eclipse Che so that developers can select and use AI coding assistants when creating workspaces.
3
-
:keywords: administration, ai, ai provider, gemini, claude, configmap, ai-tool-registry, api key
3
+
:keywords: administration, ai, ai provider, opencode, configmap, ai-tool-registry, api key, injector image, dockerfile
4
4
:navtitle: Configuring AI providers
5
5
:page-aliases:
6
6
@@ -22,61 +22,103 @@ The AI tool registry is stored in a {kubernetes} `ConfigMap` with specific label
22
22
23
23
.Procedure
24
24
25
-
. Create a `registry.json` file defining providers, tools, and default selections:
25
+
. Optional: Build and push a custom AI tool injector image.
26
+
+
27
+
The injector image is a container that carries the AI tool binary. During workspace startup, {prod-short} runs it as an init container to copy the binary into a shared volume. The following minimal `Dockerfile` is based on the link:https://github.com/che-incubator/che-ai-tool-images/blob/main/dockerfiles/opencode/Dockerfile[OpenCode injector image]:
** *Multi-stage build*: the `builder` stage downloads the architecture-specific binary; the minimal runtime stage keeps the final image small.
70
+
** *Wrapper script*: redirects `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, and related variables to writable paths under `/tmp`, allowing the tool to run as an arbitrary UID on OpenShift.
71
+
** *Multi-arch*: pass `--platform linux/amd64,linux/arm64` to `docker build` to produce a multi-arch image.
0 commit comments