fix: bug: edge container missing claude binary and OAuth credentials mount (#553)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
06eb806566
commit
f38e3e0d0d
2 changed files with 8 additions and 2 deletions
|
|
@ -113,8 +113,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /usr/local/bin/claude:/usr/local/bin/claude:ro
|
- /usr/local/bin/claude:/usr/local/bin/claude:ro
|
||||||
- ${HOME}/.claude.json:/root/.claude.json:ro
|
- ${HOME}/.claude:/home/agent/.claude
|
||||||
- ${HOME}/.claude:/root/.claude:ro
|
- ${HOME}/.claude.json:/home/agent/.claude.json:ro
|
||||||
- disinto-logs:/opt/disinto-logs
|
- disinto-logs:/opt/disinto-logs
|
||||||
- ./docker-compose.yml:/opt/docker-compose.yml:ro
|
- ./docker-compose.yml:/opt/docker-compose.yml:ro
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,12 @@ if [ ! -d /opt/disinto/.git ]; then
|
||||||
git clone --depth 1 --branch "${DISINTO_VERSION:-main}" "${_auth_url}/${FORGE_REPO}.git" /opt/disinto
|
git clone --depth 1 --branch "${DISINTO_VERSION:-main}" "${_auth_url}/${FORGE_REPO}.git" /opt/disinto
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set HOME so that claude OAuth credentials and session.lock are found at the
|
||||||
|
# same in-container path as in disinto-agents (/home/agent/.claude), which makes
|
||||||
|
# flock cross-serialize across containers on the same host inode.
|
||||||
|
export HOME=/home/agent
|
||||||
|
mkdir -p "$HOME"
|
||||||
|
|
||||||
# Start dispatcher in background
|
# Start dispatcher in background
|
||||||
bash /opt/disinto/docker/edge/dispatcher.sh &
|
bash /opt/disinto/docker/edge/dispatcher.sh &
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue