fix: review feedback — cd path in release.sh, compose file access in edge container
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

- formulas/release.sh: cd to $FACTORY_ROOT (not parent) for docker compose build
- docker-compose.yml: mount docker-compose.yml into edge container, pass HOST_PROJECT_DIR
- dispatcher.sh: use -f and --project-directory so compose resolves volume paths
  against the host filesystem when invoked from inside the edge container

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-09 19:23:08 +00:00
parent 3c8b61168d
commit fbf1a6dcc2
3 changed files with 10 additions and 2 deletions

View file

@ -116,6 +116,7 @@ services:
- ${HOME}/.claude.json:/root/.claude.json:ro
- ${HOME}/.claude:/root/.claude:ro
- disinto-logs:/opt/disinto-logs
- ./docker-compose.yml:/opt/docker-compose.yml:ro
environment:
- FORGE_SUPERVISOR_TOKEN=${FORGE_SUPERVISOR_TOKEN:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
@ -123,6 +124,7 @@ services:
- FORGE_TOKEN=${FORGE_TOKEN:-}
- FORGE_URL=http://forgejo:3000
- DISINTO_CONTAINER=1
- HOST_PROJECT_DIR=${HOST_PROJECT_DIR:-.}
ports:
- "80:80"
- "443:443"

View file

@ -411,7 +411,13 @@ launch_runner() {
# Build docker compose run command (delegates to compose runner service)
# The runner service definition handles image, network, volumes, and base env.
# The dispatcher only adds declared secrets and the ops repo mount.
local -a cmd=(docker compose run --rm)
#
# The edge container has docker-compose.yml mounted at /opt/docker-compose.yml.
# --project-directory tells docker compose to resolve relative paths (volumes,
# env_file) against the HOST project root so the Docker daemon finds them.
local compose_file="${COMPOSE_FILE:-/opt/docker-compose.yml}"
local project_dir="${HOST_PROJECT_DIR:-.}"
local -a cmd=(docker compose -f "$compose_file" --project-directory "$project_dir" run --rm)
# Add environment variables for secrets (if any declared)
if [ -n "$secrets_array" ]; then

View file

@ -163,7 +163,7 @@ fi
log "Step 4/6: Building agents Docker image"
cd "$FACTORY_ROOT/.." || exit 1
cd "$FACTORY_ROOT" || exit 1
docker compose build --no-cache agents 2>&1 | tail -5
log "Image built"