mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
feat: add OpenCode CLI support in Docker
- Install OpenCode CLI in Dockerfile alongside Claude and Cursor - Add automaker-opencode-config volume for persisting auth - Add OpenCode directory setup in docker-entrypoint.sh - Update docker-isolation.md with OpenCode documentation - Add OpenCode bind mount example to docker-compose.override.yml.example
This commit is contained in:
@@ -80,6 +80,16 @@ echo "CURSOR_AUTH_TOKEN=$(./scripts/get-cursor-token.sh)" >> .env
|
||||
- **macOS**: Tokens are stored in Keychain (service: `cursor-access-token`)
|
||||
- **Linux**: Tokens are stored in `~/.config/cursor/auth.json` (not `~/.cursor`)
|
||||
|
||||
### OpenCode CLI
|
||||
|
||||
OpenCode stores its configuration and auth at `~/.local/share/opencode/`. To share your host authentication with the container:
|
||||
|
||||
```yaml
|
||||
# In docker-compose.override.yml
|
||||
volumes:
|
||||
- ~/.local/share/opencode:/home/automaker/.local/share/opencode
|
||||
```
|
||||
|
||||
### Apply to container
|
||||
|
||||
```bash
|
||||
@@ -107,6 +117,7 @@ echo "CURSOR_AUTH_TOKEN=$(jq -r '.accessToken' ~/.config/cursor/auth.json)" >> .
|
||||
volumes:
|
||||
- ~/.claude:/home/automaker/.claude
|
||||
- ~/.config/cursor:/home/automaker/.config/cursor
|
||||
- ~/.local/share/opencode:/home/automaker/.local/share/opencode
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
@@ -117,3 +128,4 @@ volumes:
|
||||
| Can't access web UI | Verify container is running with `docker ps \| grep automaker` |
|
||||
| Need a fresh start | Run `docker-compose down && docker volume rm automaker-data && docker-compose up -d --build` |
|
||||
| Cursor auth fails | Re-extract token with `./scripts/get-cursor-token.sh` - tokens expire periodically. Make sure you've run `cursor-agent login` on your host first. |
|
||||
| OpenCode not detected | Mount `~/.local/share/opencode` to `/home/automaker/.local/share/opencode`. Make sure you've run `opencode auth login` on your host first. |
|
||||
|
||||
Reference in New Issue
Block a user