34 lines
1.3 KiB
Bash
Executable File
34 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
WORKDIR=~/git/git.cleverthis.com/cleveragents
|
|
CONTAINER_NAME=cleverthis-dev-joint
|
|
|
|
docker stop "$CONTAINER_NAME" || true
|
|
docker rm -f "$CONTAINER_NAME" || true
|
|
|
|
docker run -it --rm \
|
|
--network=host \
|
|
--name "$CONTAINER_NAME" \
|
|
--user $(id -u):$(id -g) \
|
|
--group-add 969 \
|
|
--volume "${WORKDIR}:/app:z" \
|
|
--volume "/home/skyblond/opencode/90-rui-init.sh:/docker-entrypoint.d/90-rui-init.sh" \
|
|
--volume "/home/skyblond/cleverthis/cleverrouter/workspace:/workspace" \
|
|
--volume "/home/skyblond/opencode/agents:/home/devuser/.config/opencode/agents" \
|
|
--volume "/home/skyblond/opencode/skills:/home/devuser/.config/opencode/skills" \
|
|
--volume "/home/skyblond/opencode/opencode.json:/home/devuser/.config/opencode/opencode.json" \
|
|
--volume "/home/skyblond/opencode/opencode-data:/home/devuser/.local/share/opencode/" \
|
|
--volume "/home/skyblond/opencode/scripts:/external/opencode/scripts" \
|
|
--volume "/var/run/docker.sock:/var/run/docker.sock" \
|
|
--env-file .env \
|
|
cleverrouter-dev zsh -c "/home/devuser/.opencode/bin/opencode"
|
|
|
|
# anthropic/claude-opus-4.6
|
|
# openrouter/anthropic/claude-opus-4.6
|
|
# openai/gpt-5.3-codex
|
|
|
|
# server: opencode serve --hostname 0.0.0.0 --print-logs --log-level WARN
|
|
# tui: opencode -m anthropic/claude-opus-4.6
|