1.3 KiB
title, state
| title | state |
|---|---|
| Integrate opencode into Docker image | completed |
Run 16
Note: @Clanker refers to the "ai agent" (you) who is working on this task.
@Clanker when working on this task, make sure to:
- Read context and task section first
- Prepare a list of todos
- Update the todo list while working on the task
Context
Read the AGENTS.md and README.md to get an understanding of the project.
Task
I want to support https://opencode.ai/ in the Docker image. The npm install path is:
npm i -g opencode-ai
Use pnpm to install the opencode cli. I want to make sure that the opencode config can be persisted.
Update the image/README.md file.
Worklog
Added opencode-ai to the taskfile.build Docker image via pnpm (pnpm add -g opencode-ai --allow-build=opencode-ai). Fixed pnpm global bin directory by adding $PNPM_HOME/bin to PATH. Created /root/.config/opencode directory with a VOLUME declaration so the opencode config can be persisted across container restarts by mounting a host directory or named volume.
Updated image/README.md with an OpenCode section documenting how to run opencode inside the container and how to persist its config.
Updated image/entrypoint.sh to log the installed opencode version on startup.
Built and tested the image successfully.